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

Vulkan crashes #1846

Open
Triticum0 opened this issue Jan 6, 2025 · 5 comments
Open

Vulkan crashes #1846

Triticum0 opened this issue Jan 6, 2025 · 5 comments
Labels
bug Something isn't working vulkan

Comments

@Triticum0
Copy link

Triticum0 commented Jan 6, 2025

Bug Description

Some game crash on vulkan with this assertion.
xemu-v0.8.5-x86_64.appimage:`` ../hw/xbox/nv2a/pgraph/glsl/vsh.c:105: pgraph_gen_vsh_glsl: Assertion !(is_uniform && is_swizzled)' failed.

Games affected
Beyond Good And Evil
Nascar 05 Chase for the cup 2005
Nascar 06 Total Team Control
Nascar 07
Nascar Thunder 2004

Expected Behavior

Should'nt crash

xemu Version

v8.5

System Information

OS | Bazzite 41
CPU | AMD Ryzen 5 5700x Eight-Core Processoe
Graphics Device | NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
Graphics Driver | 4.0.0 NVIDIA 565.308.0

Additional Context

No response

@Triticum0 Triticum0 added the bug Something isn't working label Jan 6, 2025
@mborgerson
Copy link
Member

Nice, thanks

@neakmenter
Copy link

neakmenter commented Jan 7, 2025

Similar also happens on the cerbios bootscreen for me. (xemu 0.8.5, previous version 0.7.something? worked fine) on intel iris xe graphics driver 32.0.101.5989. Windows 11 23H2. I've tried removing shader caches etc. Only crashes on Vulkan, OpenGL is fine.

Assertion failed!
Program:
xemu.exe
File: ../hw/xbox/nv2a/pgraph/vk/texture.c
Line:1244

Expression: vk_result == VL_SUCCESS && "vk check failed"

However, it boots and seems to run fine for me on the suggested Complex_4627v1.03 BIOS. even booting to XBMC4Gamers (720p) seems okay on this. goes in game and plays fine on Crash TWOC.

(Side note: I've always had screen corruption on XE MAX discrete laptop GPU on all versions of xemu so I lock windows settings for "power saving" and it's usually fine on the integrated GPU.)

@aderumier
Copy link

have this one too on linux with amd igpu. (I'm using cerbios indeed, for chihiro games)

xemu_commit: 8f478e017a0f7bac7d72d4abe23e77233f221bce
xemu_date: Wed Jan  1 01:17:31 AM UTC 2025
xemu_settings_set_path: config path: /userdata/system/configs/xemu/xemu.toml
CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics     
OS_Version: Buildroot 2024.05.2
GL_VENDOR: AMD
GL_RENDERER: AMD Radeon 780M (radeonsi, gfx1103_r1, LLVM 18.1.2, DRM 3.59, 6.11.10)
GL_VERSION: 4.6 (Core Profile) Mesa 24.2.8
GL_SHADING_LANGUAGE_VERSION: 4.60
Enabled instance extensions:
- VK_KHR_surface
- VK_KHR_xlib_surface
- VK_KHR_get_physical_device_properties2
- VK_KHR_external_semaphore_capabilities
- VK_KHR_external_memory_capabilities
Available physical devices:
- AMD Radeon 780M (RADV GFX1103_R1)
Selected physical device: AMD Radeon 780M (RADV GFX1103_R1)
- Vendor: 1002, Device: 15bf
- Driver Version: 24.2.8
Enabled device extensions:
- VK_KHR_external_semaphore
- VK_KHR_external_memory
- VK_KHR_external_memory_fd
- VK_KHR_external_semaphore_fd
- VK_EXT_custom_border_color
- VK_EXT_provoking_vertex
- VK_EXT_memory_budget
vk_result = -3
xemu: ../hw/xbox/nv2a/pgraph/vk/texture.c:1242: create_texture: Assertion `vk_result == VK_SUCCESS && "vk check failed"' failed.```

@mborgerson
Copy link
Member

mborgerson commented Jan 13, 2025

I know why xemu is crashing with Vulkan backend when using cerbios and it'll be fixed soon. Until then, you can use another bios or boot with gl then switch to vulkan at runtime. The cerbios boot crash is different than the main issue crash above.

@hannemann
Copy link

I experience something similar but i am not able to switch to vulkan at runtime. I have an intel igpu and a nvidia card.

xemu_version: 0.8.10
xemu_branch: master
xemu_commit: 5896b9dc91d2b8b94b2b30570e1e329b161c1453
xemu_date: Mo 20. Jan 21:38:58 UTC 2025
xemu_settings_get_base_path: base path: /home/default/.local/share/xemu/xemu/
xemu_settings_get_path: config path: /home/default/.local/share/xemu/xemu/xemu.toml
CPU:         Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
OS_Version: Debian GNU/Linux 12 (bookworm)
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce RTX 3050/PCIe/SSE2
GL_VERSION: 4.0.0 NVIDIA 565.57.01
GL_SHADING_LANGUAGE_VERSION: 4.00 NVIDIA via Cg compiler
Created QEMU launch parameters: dist/xemu -machine xbox,bootrom=/home/default/.var/app/app.xemu.xemu/data/xemu/xemu/mcpx_1.0.bin,kernel-irqchip=off,avpack=hdtv -device smbus-storage,file=/home/default/.local/share/xemu/xemu/eeprom.bin -bios /home/default/.var/app/app.xemu.xemu/data/xemu/xemu/Complex_4627v1.03.bin -m 64 -drive index=0,media=disk,file=/home/default/.var/app/app.xemu.xemu/data/xemu/xemu/xbox_hdd.qcow2,locked=on -drive index=1,media=cdrom,file= -display xemu -device usb-hub,port=1,ports=4 
[default@SteamHeadless xemu]$ dist/xemu
xemu_version: 0.8.10
xemu_branch: master
xemu_commit: 5896b9dc91d2b8b94b2b30570e1e329b161c1453
xemu_date: Mo 20. Jan 21:38:58 UTC 2025
xemu_settings_get_base_path: base path: /home/default/.local/share/xemu/xemu/
xemu_settings_get_path: config path: /home/default/.local/share/xemu/xemu/xemu.toml
CPU:         Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
OS_Version: Debian GNU/Linux 12 (bookworm)
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce RTX 3050/PCIe/SSE2
GL_VERSION: 4.0.0 NVIDIA 565.57.01
GL_SHADING_LANGUAGE_VERSION: 4.00 NVIDIA via Cg compiler
Created QEMU launch parameters: dist/xemu -machine xbox,bootrom=/home/default/.var/app/app.xemu.xemu/data/xemu/xemu/mcpx_1.0.bin,kernel-irqchip=off,avpack=hdtv -device smbus-storage,file=/home/default/.local/share/xemu/xemu/eeprom.bin -bios /home/default/.var/app/app.xemu.xemu/data/xemu/xemu/Complex_4627v1.03.bin -m 64 -drive index=0,media=disk,file=/home/default/.var/app/app.xemu.xemu/data/xemu/xemu/xbox_hdd.qcow2,locked=on -drive index=1,media=cdrom,file= -display xemu -device usb-hub,port=1,ports=4 
xemu: warning: dbind: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
xemu: warning: GVFS-RemoteVolumeMonitor: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
Enabled instance extensions:
- VK_KHR_surface
- VK_KHR_xlib_surface
- VK_KHR_get_physical_device_properties2
- VK_KHR_external_semaphore_capabilities
- VK_KHR_external_memory_capabilities
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
Available physical devices:
- Intel(R) HD Graphics 4000 (IVB GT2)
- NVIDIA GeForce RTX 3050
- llvmpipe (LLVM 15.0.6, 256 bits)
Selected physical device: Intel(R) HD Graphics 4000 (IVB GT2)
- Vendor: 8086, Device: 162
- Driver Version: 22.3.6
Warning: extension not available: VK_EXT_custom_border_color
Enabled device extensions:
- VK_KHR_external_semaphore
- VK_KHR_external_memory
- VK_KHR_external_memory_fd
- VK_KHR_external_semaphore_fd
- VK_EXT_provoking_vertex
- VK_EXT_memory_budget
vk_result = -2
xemu: ../hw/xbox/nv2a/pgraph/vk/buffer.c:33: create_buffer: Assertion `vk_result == VK_SUCCESS && "vk check failed"' failed.
Aborted (core dumped)

This happens with a v1.03 bios and with another one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vulkan
Projects
None yet
Development

No branches or pull requests

5 participants