PabloMK7 / citra

A Nintendo 3DS Emulator
GNU General Public License v2.0
3.76k stars 638 forks source link

Citra crashes when trying to open a game with graphics mode set to vulcan #141

Open realgamebreaker opened 6 months ago

realgamebreaker commented 6 months ago

Is there an existing issue for this?

Affected Build(s)

64e3e9f / HEAD-64e3e9f (2024-05-15)

Description of Issue

https://github.com/PabloMK7/citra/assets/98226581/d9864855-1ad5-4d5b-9118-9a9c9024bdd5 I changed the graphics mode to vulcan and all games crash on startup

Expected Behavior

I expected it to work fine

Reproduction Steps

Set graphics rendering mode to vulcan on an AMD gpu and start a game.

Log File

citra_log.txt

System Configuration

CPU: AMD Ryzen 7 5700U GPU/Driver: AMD Radeon RAM: 8 GB OS: Windows 11 23H2 x64

manOnWebs commented 6 months ago

AMD issue probably I have an NVIDIA graphics card and Vulkan works fine for me on Tomodachi Life. Just use OpenGL I guess?

SuperSonic472 commented 6 months ago

This also happens on Intel GPU's (Trying to run Pac-Man and the Ghostly Adventures)

BrianAllred commented 5 months ago

This also happens on Linux. Unfortunate, because Mario and Luigi: Paper Jam's paper textures don't render correctly using OpenGL. :cry:

Latest Arch Linux Mesa 24.1.1 Radeon RX 6800 XT

Log below:

[   0.285367] Input <Info> input_common/udp/client.cpp:StartCommunication:206: Starting communication with UDP input server on 127.0.0.1:26760
[   0.299196] Frontend <Info> citra_qt/main.cpp:GMainWindow:215: Citra Version: de1f082 | HEAD-de1f082
[   0.299203] Frontend <Info> citra_qt/main.cpp:GMainWindow:230: Host CPU: AMD Ryzen 7 5800X 8-Core Processor              | AVX2 | FMA
[   0.299218] Frontend <Info> citra_qt/main.cpp:GMainWindow:232: Host OS: Arch Linux
[   0.299225] Frontend <Info> citra_qt/main.cpp:GMainWindow:235: Host RAM: 62.71 GiB
[   0.299226] Frontend <Info> citra_qt/main.cpp:GMainWindow:236: Host Swap: 4.00 GiB
[   0.301192] Frontend <Warning> citra_qt/game_list.cpp:LoadCompatibilityList:821: Game compatibility list is empty
[   0.320925] Frontend <Error> citra_qt/util/graphics_device_info.cpp:GetVulkanPhysicalDevices:45: Error occured while querying for physical devices: vk::createInstanceUnique: ErrorIncompatibleDriver
Hasster1 commented 5 months ago

Also happens on a laptop with Nvidia GeForce 840m. (2 gpus)

BrianAllred commented 5 months ago

Update, if you compile the software yourself, it works (at least on Linux).

AmyRoxwell commented 5 months ago

Same seems to happen while running it through EndeavourOS aka Arch linux with this error: Screenshot_06_07_2024

Log: citra_log.txt

GPU: RX 6600 CPU: ryzen 5600 mesa: 1:24.1.1-1 arch linux

BrianAllred commented 5 months ago

Same seems to happen while running it through EndeavourOS aka Arch linux with this error: Screenshot_06_07_2024

Log: citra_log.txt

GPU: RX 6600 CPU: ryzen 5600 mesa: 1:24.1.1-1 arch linux

If you install citra from the AUR and compile it against the latest packages, it works.

AmyRoxwell commented 5 months ago

Same seems to happen while running it through EndeavourOS aka Arch linux with this error: Screenshot_06_07_2024 Log: citra_log.txt GPU: RX 6600 CPU: ryzen 5600 mesa: 1:24.1.1-1 arch linux

If you install citra from the AUR and compile it against the latest packages, it works.

Nvm, it does works! but here is the tricky part, you have to select your device on the vulkan render part lol

BrianAllred commented 5 months ago

Same seems to happen while running it through EndeavourOS aka Arch linux with this error: Screenshot_06_07_2024 Log: citra_log.txt GPU: RX 6600 CPU: ryzen 5600 mesa: 1:24.1.1-1 arch linux

If you install citra from the AUR and compile it against the latest packages, it works.

Nvm, it does works! but here is the tricky part, you have to select your device on the vulkan render part lol

Awesome, glad it works! For future reference, "latest packages" in Arch-based systems just means to run a full update. Sorry, I could've been more clear.

AmyRoxwell commented 5 months ago

Same seems to happen while running it through EndeavourOS aka Arch linux with this error: Screenshot_06_07_2024 Log: citra_log.txt GPU: RX 6600 CPU: ryzen 5600 mesa: 1:24.1.1-1 arch linux

If you install citra from the AUR and compile it against the latest packages, it works.

Nvm, it does works! but here is the tricky part, you have to select your device on the vulkan render part lol

Awesome, glad it works! For future reference, "latest packages" in Arch-based systems just means to run a full update. Sorry, I could've been more clear.

Yeag, it's fine! thanks for the help, hopefully this can get fixed on current citra by Pablo's team tho...

realgamebreaker commented 5 months ago

Still haven't fixed it. Any news? I really don't wan't to go through the pain of dual booting arch again.

BrianAllred commented 5 months ago

Still haven't fixed it. Any news? I really don't wan't to go through the pain of dual booting arch again.

Are you on another Linux distro? If so, you can compile on that manually. I successfully did this on Nobara. I cloned the repo, went and found the pkgbuild from the AUR, copied the compilation commands from the pkgbuild, and then installed deps one by one until the errors went away and compilation succeeded. You have to manually create a desktop entry if you do this, but it will work.

If you'd rather not do that, you can install distrobox and podman, and use an Arch distrobox. Then you can install citra from the AUR in the distrobox and export it to the host. I do this for a lot of software on my Nobara laptop.

axiel7 commented 5 months ago

Same problem here on android. Not all games are crashing tho

AmyRoxwell commented 4 months ago

Update from the latest version, sadly this is still broken, i wonder if someone like GPUCode could give a look of why linux arch based distros just don't work anymore on vulkan for citra

Miguel-hrvs commented 4 months ago

Tested master in manjaro and vulkan worked in my rx5700

PabloMK7 commented 3 months ago

Please try with the builds from here: https://github.com/PabloMK7/citra/actions/runs/10406563510

BrianAllred commented 3 months ago

Please try with the builds from here: https://github.com/PabloMK7/citra/actions/runs/10406563510

This worked for me on Arch.

AmyRoxwell commented 3 months ago

Please try with the builds from here: https://github.com/PabloMK7/citra/actions/runs/10406563510

Screenshot_08_16_2024 Still spits this message while trying to use vulkan on my rx6600 on endeavourOS (arch based distro) Log from terminal:


[amyroxwell@amyroxwell-b450mds3h head]$ ./citra-qt.AppImage 
qt.qpa.wayland: EGL not available
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1661:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1662:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1663:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1664:1: unrecognized keysym "dead_hamza" on left-hand side
xkbcommon: ERROR: /usr/share/X11/locale/en_US.UTF-8/Compose:1665:1: unrecognized keysym "dead_hamza" on left-hand side
terminate called after throwing an instance of 'vk::IncompatibleDriverError'
  what():  vk::createInstanceUnique: ErrorIncompatibleDriver
Aborted (core dumped)

Citra's log:

[   0.214000] Input <Info> input_common/udp/client.cpp:StartCommunication:206: Starting communication with UDP input server on 127.0.0.1:26760
[   0.236117] Frontend <Info> citra_qt/main.cpp:GMainWindow:215: Citra Version: 2d803bd | HEAD-2d803bd
[   0.236121] Frontend <Info> citra_qt/main.cpp:GMainWindow:230: Host CPU: AMD Ryzen 5 5600 6-Core Processor               | AVX2 | FMA
[   0.236133] Frontend <Info> citra_qt/main.cpp:GMainWindow:232: Host OS: EndeavourOS
[   0.236140] Frontend <Info> citra_qt/main.cpp:GMainWindow:235: Host RAM: 15.54 GiB
[   0.236141] Frontend <Info> citra_qt/main.cpp:GMainWindow:236: Host Swap: 4.00 GiB
[   0.239879] Frontend <Warning> citra_qt/game_list.cpp:LoadCompatibilityList:821: Game compatibility list is empty
[   0.305000] Frontend <Error> citra_qt/util/graphics_device_info.cpp:GetVulkanPhysicalDevices:45: Error occured while querying for physical devices: vk::createInstanceUnique: ErrorIncompatibleDriver
[   1.607125] Frontend <Warning> citra_qt/main.cpp:CheckForUpdates:1018: Unable to start check for updates
[  17.579022] Frontend <Info> citra_qt/main.cpp:BootGame:1264: Citra starting...
[  17.579064] Frontend <Info> citra_qt/main.cpp:BootGame:1287: Loading per game config file for title 0004000000126300
[  17.585534] Config <Info> common/settings.cpp:LogSettings:83: Citra Configuration:
[  17.585537] Config <Info> common/settings.cpp:operator():80: Core_UseCpuJit: true
[  17.585538] Config <Info> common/settings.cpp:operator():80: Core_CPUClockPercentage: 100
[  17.585538] Config <Info> common/settings.cpp:operator():80: Controller_UseArticController: false
[  17.585539] Config <Info> common/settings.cpp:operator():80: Renderer_UseGLES: false
[  17.585539] Config <Info> common/settings.cpp:operator():80: Renderer_GraphicsAPI: Vulkan
[  17.585539] Config <Info> common/settings.cpp:operator():80: Renderer_AsyncShaders: false
[  17.585540] Config <Info> common/settings.cpp:operator():80: Renderer_AsyncPresentation: false
[  17.585540] Config <Info> common/settings.cpp:operator():80: Renderer_SpirvShaderGen: true
[  17.585540] Config <Info> common/settings.cpp:operator():80: Renderer_Debug: false
[  17.585540] Config <Info> common/settings.cpp:operator():80: Renderer_UseHwShader: true
[  17.585541] Config <Info> common/settings.cpp:operator():80: Renderer_ShadersAccurateMul: true
[  17.585544] Config <Info> common/settings.cpp:operator():80: Renderer_UseShaderJit: true
[  17.585544] Config <Info> common/settings.cpp:operator():80: Renderer_UseResolutionFactor: 3
[  17.585544] Config <Info> common/settings.cpp:operator():80: Renderer_FrameLimit: 100
[  17.585545] Config <Info> common/settings.cpp:operator():80: Renderer_VSyncNew: true
[  17.585545] Config <Info> common/settings.cpp:operator():80: Renderer_PostProcessingShader: none (builtin)
[  17.585545] Config <Info> common/settings.cpp:operator():80: Renderer_FilterMode: true
[  17.585546] Config <Info> common/settings.cpp:operator():80: Renderer_TextureFilter: None
[  17.585546] Config <Info> common/settings.cpp:operator():80: Renderer_TextureSampling: GameControlled
[  17.585546] Config <Info> common/settings.cpp:operator():80: Renderer_DelayGameRenderThreasUs: 0
[  17.585548] Config <Info> common/settings.cpp:operator():80: Stereoscopy_Render3d: 0
[  17.585548] Config <Info> common/settings.cpp:operator():80: Stereoscopy_Factor3d: 0
[  17.585548] Config <Info> common/settings.cpp:operator():80: Stereoscopy_MonoRenderOption: 0
[  17.585549] Config <Info> common/settings.cpp:operator():80: Layout_LayoutOption: 2
[  17.585549] Config <Info> common/settings.cpp:operator():80: Layout_SwapScreen: false
[  17.585549] Config <Info> common/settings.cpp:operator():80: Layout_UprightScreen: false
[  17.585550] Config <Info> common/settings.cpp:operator():80: Layout_LargeScreenProportion: 3
[  17.585550] Config <Info> common/settings.cpp:operator():80: Utility_DumpTextures: false
[  17.585551] Config <Info> common/settings.cpp:operator():80: Utility_CustomTextures: false
[  17.585551] Config <Info> common/settings.cpp:operator():80: Utility_PreloadTextures: false
[  17.585551] Config <Info> common/settings.cpp:operator():80: Utility_AsyncCustomLoading: true
[  17.585551] Config <Info> common/settings.cpp:operator():80: Utility_UseDiskShaderCache: true
[  17.585552] Config <Info> common/settings.cpp:operator():80: Audio_Emulation: HLE
[  17.585558] Config <Info> common/settings.cpp:operator():80: Audio_OutputType: 0
[  17.585558] Config <Info> common/settings.cpp:operator():80: Audio_OutputDevice: auto
[  17.585558] Config <Info> common/settings.cpp:operator():80: Audio_InputType: 0
[  17.585559] Config <Info> common/settings.cpp:operator():80: Audio_InputDevice: auto
[  17.585559] Config <Info> common/settings.cpp:operator():80: Audio_EnableAudioStretching: true
[  17.585560] Config <Info> common/settings.cpp:operator():80: Camera_OuterRightName: blank
[  17.585560] Config <Info> common/settings.cpp:operator():80: Camera_OuterRightConfig: 
[  17.585561] Config <Info> common/settings.cpp:operator():80: Camera_OuterRightFlip: 0
[  17.585561] Config <Info> common/settings.cpp:operator():80: Camera_InnerName: blank
[  17.585562] Config <Info> common/settings.cpp:operator():80: Camera_InnerConfig: 
[  17.585562] Config <Info> common/settings.cpp:operator():80: Camera_InnerFlip: 0
[  17.585563] Config <Info> common/settings.cpp:operator():80: Camera_OuterLeftName: blank
[  17.585563] Config <Info> common/settings.cpp:operator():80: Camera_OuterLeftConfig: 
[  17.585563] Config <Info> common/settings.cpp:operator():80: Camera_OuterLeftFlip: 0
[  17.585564] Config <Info> common/settings.cpp:operator():80: DataStorage_UseVirtualSd: true
[  17.585564] Config <Info> common/settings.cpp:operator():80: DataStorage_UseCustomStorage: false
[  17.585565] Config <Info> common/settings.cpp:operator():80: System_IsNew3ds: true
[  17.585565] Config <Info> common/settings.cpp:operator():80: System_LLEApplets: false
[  17.585566] Config <Info> common/settings.cpp:operator():80: System_RegionValue: -1
[  17.585566] Config <Info> common/settings.cpp:operator():80: System_PluginLoader: false
[  17.585566] Config <Info> common/settings.cpp:operator():80: System_PluginLoaderAllowed: true
[  17.585567] Config <Info> common/settings.cpp:operator():80: Debugging_DelayStartForLLEModules: true
[  17.585567] Config <Info> common/settings.cpp:operator():80: Debugging_UseGdbstub: false
[  17.585567] Config <Info> common/settings.cpp:operator():80: Debugging_GdbstubPort: 24689
[  17.585568] Config <Info> common/settings.cpp:operator():80: Debugging_InstantDebugLog: false
[  17.656034] Audio.DSP <Info> audio_core/hle/aac_decoder.cpp:AACDecoder:27: Created FAAD2 AAC decoder.
[  17.670919] Audio.Sink <Info> audio_core/cubeb_sink.cpp:StateCallback:135: Cubeb Audio Stream Started
[  17.670928] RPC_Server <Info> core/rpc/rpc_server.cpp:RPCServer:14: Starting RPC server.
[  17.671003] RPC_Server <Info> core/rpc/rpc_server.cpp:HandleRequestsLoop:104: Request handler started.
[  17.672448] Loader <Info> core/loader/ncch.cpp:Load:270: Program ID: 0004013000003802
[  17.672460] Service.FS <Warning> core/file_sys/ncch_container.cpp:OpenFile:126: Failed to open /home/amyroxwell/.local/share/citra-emu/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004013e/00003802/content/00000000.app
[  17.682434] Service.FS <Info> core/file_sys/ncch_container.cpp:LoadSectionExeFS:506: Attempting to load logo from the ExeFS
[  17.725451] Service.FS <Warning> core/file_sys/ncch_container.cpp:LoadOverrides:475: Loaded NCCH /home/amyroxwell/.local/share/citra-emu/nand/00000000000000000000000000000000/title/0004009b/00014002/content/00000000.app is tainted, application behavior may not be as expected!
[  17.728223] Service.FS <Warning> core/file_sys/ncch_container.cpp:LoadOverrides:475: Loaded NCCH /home/amyroxwell/.local/share/citra-emu/nand/00000000000000000000000000000000/title/0004009b/00010202/content/00000000.app is tainted, application behavior may not be as expected!
[  17.823785] Loader <Info> core/loader/ncch.cpp:Load:270: Program ID: 0004013000003402
[  17.823798] Service.FS <Warning> core/file_sys/ncch_container.cpp:OpenFile:126: Failed to open /home/amyroxwell/.local/share/citra-emu/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004013e/00003402/content/00000000.app
[  17.834579] Service.FS <Info> core/file_sys/ncch_container.cpp:LoadSectionExeFS:506: Attempting to load logo from the ExeFS
[  17.836770] Loader <Info> core/loader/ncch.cpp:Load:270: Program ID: 0004013000003202
[  17.836787] Service.FS <Warning> core/file_sys/ncch_container.cpp:OpenFile:126: Failed to open /home/amyroxwell/.local/share/citra-emu/sdmc/Nintendo 3DS/00000000000000000000000000000000/00000000000000000000000000000000/title/0004013e/00003202/content/00000000.app
[  17.848071] Service.FS <Info> core/file_sys/ncch_container.cpp:LoadSectionExeFS:506: Attempting to load logo from the ExeFS
[  17.848859] Loader <Info> core/loader/ncch.cpp:Load:270: Program ID: 0004013000002C02
[  17.848873] Serv
AmyRoxwell commented 2 months ago

@PabloMK7 @realgamebreaker I have good news, the r5115f64 build finally works for me, so I suggest you contact anyone that may had the issue with vulkan now! I can select vulkan and no longer the emulators stops me with an error

Screenshot_20240904_152206

Sorry for the delay but I was busy!

Hasster1 commented 2 months ago

True, it doesn't crash anymore, but for me (GeForce 840m) it's now stuck at launching the game. Trying to close the emulator leads to it completely freezing.

citra_log.txt