mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #1584] Emulator crash if "Show Splash" is selected #539
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#539
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ngoquang2708 on GitHub (Nov 23, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1584
I am on Linux.
When I select "Show Splash" in Settings, the emulator crash when I start a game.
Log: shad_log.txt
In Visual Code, it crashes at this location:

@ngoquang2708 commented on GitHub (Nov 23, 2024):
It crashes when I ran my DE using the iGPU (my laptop is Intel/Nvidia Optimus).
It works if I use the dGPU to run my DE.
Emulator use the dGPU in both cases.
@kalaposfos13 commented on GitHub (Nov 23, 2024):
This is the same for me (Linux Mint 22), in fact, in previous versions, the splash screen did not even show up, so I just guessed it wasn't implemented yet.
Commenting out this line: stbi_image_free(img_mem); makes the splash appear (for the first time ever on my computer), but crashes further down the line: as soon as the game tries to write to the screen.
@Hermiten commented on GitHub (Dec 20, 2024):
Can you test again ?
#1832 maybe fix it
@polybiusproxy commented on GitHub (Dec 20, 2024):
That won't fix it, I'm afraid @Hermiten
@Hermiten commented on GitHub (Dec 20, 2024):
Don't be afraid 👌
@setepenre commented on GitHub (Dec 27, 2024):
this hacky patch solves the issue without appearing to cause any problem in menu and in game ; I will not pretend I have any idea why. MultiLevelPageTable doesn´t seem to expect high addresses like the one where splash image gets allocated to on linux? Removing the VideoCore::ImageFlagBits::GpuDirty from img_splash just skips going thru
github.com/shadps4-emu/shadPS4@e40ede5db2/src/video_core/buffer_cache/buffer_cache.cpp (L356)which also expects the address to be lower than it is on linux.EDIT: this is not a proposed solution, this is merely a hack to maybe help someone more knowledgeable find the proper solution
@Hermiten commented on GitHub (Feb 1, 2025):
Any update about this ?
@ngoquang2708 commented on GitHub (Feb 1, 2025):
Still crash on my SteamDeck.
shad_log.txt
@Hermiten commented on GitHub (Feb 1, 2025):
Can you try with the patch from @setepenre 2 messages above ?
@ngoquang2708 commented on GitHub (Feb 1, 2025):
I don't have access to my PC for a week so I cannot try it now.
@Hermiten commented on GitHub (Feb 24, 2025):
Is it still revelant and if so, can someone try to do a PR with the @setepenre suggestion ? Thanks you
@ngoquang2708 commented on GitHub (Feb 24, 2025):
Still crash with latest main.
shad_log.txt
@CkNoSFeRaTU commented on GitHub (Mar 4, 2025):
First change from hack proposed by setepenre is indeed seems to work on latest main. Without it emulator has a big chance of crashing with black screen. BTW rarely if it was lucky it is able to show splash screen without hack but in this case half of the time game successfully boots and another half amdgpu driver crashes instead with [gfxhub] page fault.
@viniciuslrangel commented on GitHub (Mar 13, 2025):
Fixed #2645