Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual C++ Assertion Failed! GL_NO_ERROR (video and audio works but it's impossibile to use xemu) #1777

Open
denosys opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@denosys
Copy link

denosys commented Sep 27, 2024

Bug Description

This popup message appears at startup (debug version) :

VisualC++ Runtime Library
Assertion failed!
Program: C:\Users\win7user\Documents\XEMU\xemu.exe
File:../ui/xemu.c
Line:1551
Expression:glGetError() == GL_NO_ERROR

Expected Behavior

No assertion failed message

xemu Version

0.7.132 (debug)

System Information

CPU: AMD A8-3870 APU with Radeon(tm) HD Graphics
OS_Version: Windows 7 Enterprise Service Pack 1
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: AMD Radeon HD 6550D
GL_VERSION: 4.0.12874 Core Profile Context 14.100.0.0
GL_SHADING_LANGUAGE_VERSION: 4.30

Additional Context

If I keep pressing "ignore" I can advance correctly in the startup procedure. I can view the animation (obviously jerky because the video animation only advances by steps every time I press it "ignore") and I also hear the sound in the background.

XEMU 132-1
XEMU 132-2
XEMU 132-3
XEMU 132-4

Unfortunately, it's not possible to proceed further and for example click the menu options (try to access the menus is impossible due to the assertion failed window always in the foreground). I also attach some screenshots where you can see that the video signal is present and works .The integrated GPU supports OpenGL 4 as can be seen from the log.txt.

Created QEMU launch parameters: C:\Users\win7user\Documents\XEMU\xemu.exe -machine xbox,bootrom=C:\Users\win7user\Documents\XEMU\BIOS FLASH\mcpx_1.0.bin,kernel-irqchip=off,avpack=hdtv -device smbus-storage,file=C:\Users\win7user\AppData\Roaming\xemu\xemu\eeprom.bin -bios C:\Users\win7user\Documents\XEMU\BIOS\Complex_4627.bin -m 64 -drive index=0,media=disk,file=C:\Users\win7user\Documents\XEMU\hard disk\xbox_hdd.qcow2,locked=on -drive index=1,media=cdrom,file= -display xemu -device usb-hub,port=1,ports=4 -audiodev none,id=snd0
xemu_version: 0.7.132
xemu_branch: master
xemu_commit: 8707d2a
xemu_date: Wed Aug 21 05:38:39 UTC 2024
xemu_settings_get_base_path: base path: C:\Users\win7user\AppData\Roaming\xemu\xemu
xemu_settings_get_path: config path: C:\Users\win7user\AppData\Roaming\xemu\xemu\xemu.toml
CPU: AMD A8-3870 APU with Radeon(tm) HD Graphics
OS_Version: Windows 7 Enterprise Service Pack 1
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: AMD Radeon HD 6550D
GL_VERSION: 4.0.12874 Core Profile Context 14.100.0.0
GL_SHADING_LANGUAGE_VERSION: 4.30
audio: Device ac97: audiodev default parameter is deprecated, please specify audiodev=snd0

what would be really interesting would be the possibility of have a test version that only bypasses and ignore this message because from what I can see the system would work perfectly if this message didn't appear. The program probably doesn't recognize something and thinks there is a problem but I repeat the video and audio should work perfectly if this message didn't appear. The normal xemu version crash precisely because of this and in fact I ran the debug version to understand the reason for this crash.

Is it possible to do something to fix this bug? It seems an OpenGL (but I have an OpenGL4 iGPU and in fact I have the video as you can see from the screenshots). If it were possible to create a test version that ignores this message to carry out a test I am available to try it. It seems like a strange bug to me since video and audio seem to work but with this popup always in the foreground I can't do nothing and so it's impossible to use xemu. Maybe you just need to ignore something to make the emulator work perfectly even in a system with a similar configuration to mine.

It seems related to the call sdl2_gl_refresh(&sdl2_console[0].dcl) in the while (1) cicle in ui/xemu.c It seems an OpenGL error and sdl2_gl_refresh being called continuously this error occurs continuously. Maybe a change in the code would be useful to print the error code returned by glGetError() before the assertion.

Thanks to the developers of this fantastic xbox emulator for their work and everyone who can help with this bug. THANKS!

@denosys denosys added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant