mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[GH-ISSUE #1045] Stuck on black screen no matter what game i try #317
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#317
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 @powerpuffboysz on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1045
Game Name
Bloodborne
Game code
CUSA00900
Game version
1.09
Used emulator's version (only released versions are acceptable)
0.3.0
Current status
Boots
Error
black screen on startup with 0 fps
Description
this game is reported as able to get ingame but this and any other game get stuck on a black screen
OS: EndeavourOS
Kernel: 6.10.10-arch1-1
Desktop: KDE Plasma 6.1.5
Session: Wayland
CPU: Ryzen 9 5900X
RAM: 32GB
GPU: NVIDIA 1080 TI Founders Edition
GPU Driver: Proprietary 560.35.03-6
Executable: Linux-QT AppImage
nvidia-drm.modeset=1 is set if that matters
mangohud reports as Gpu using anywhere from 10 to 17% and cpu as anywhere from 4 to 8% on any given launch with 0fps
shad_log.txt
@fhilipecrash commented on GitHub (Sep 23, 2024):
The same thing is happening to me using the same version of Bloodborne on shadps4 0.3.0, nvidia-drm.modeset=1 is also set. When I tested it on Windows 11 it worked normally. I thought it might be because of using Nvidia + Wayland but it didn't work on X11 either.
OS: Arch Linux
Kernel: 6.10.10-arch1-1
Desktop: GNOME 47
Session: Wayland
CPU: Intel Core i3-9100F
RAM: 16GB
GPU: NVIDIA GeForce GTX 1650
GPU Driver: Open 560.35.03
Executable: Linux-QT AppImage
output.txt
@ngoquang2708 commented on GitHub (Sep 24, 2024):
Use gamescope as a workaround.
@powerpuffboysz commented on GitHub (Sep 24, 2024):
Ah yes, gamescope. The compositor famous for working on nvidia gpus, especially using the proprietary driver.
@ngoquang2708 commented on GitHub (Sep 24, 2024):
It works with latest driver now
@7oxicshadow commented on GitHub (Sep 24, 2024):
Same here. Looking at the logs people have posted in this thread, we all seem to get stuck at the same place. Not sure of the significance of the [Kernal.Vmm] area but I assume its some sort of memory management issue. Oh i tried gamescope as well, made no difference.
The only thing i can add is that my main PC is a 12700k, 32gb ram, GTX 3070ti running Fedora 40 KDE (Wayland) and it doesn't work..... But i have a laptop also running Fedora 40 KDE / 8GB ram / Intel Integrated Graphics (Nouveau) and it does boot fine on that.... Maybe an Nvidia driver issue? Anyone here using Nouveau drivers on NVIDIA?
@srrobo92 commented on GitHub (Sep 24, 2024):
Also same issue for me, tried using gamescope as well and still black screen
@Oroborius commented on GitHub (Oct 2, 2024):
Yeah only specific builds seem to launch games under Wayland even with gamescope using XWayland env.
@ngoquang2708 commented on GitHub (Oct 3, 2024):
All games is black screen under native Wayland because because the emulator uses XWayland.
BB requires a Linux hack to boot even in X11.
My PR https://github.com/shadps4-emu/shadPS4/pull/1184 aim to enable the support to run the emulator in native Wayland without the need of Gamescope. But you have to force the emulator to use Wayland for now.
Under Wayland, run it with:
Please try it and report to the PR.
For BB, I have a build which includes Wayland support and the Linux hack for BB so you guy can try: https://github.com/ngoquang2708/shadPS4/actions.
@Oroborius commented on GitHub (Oct 4, 2024):
@ngoquang2708 Unfortunately this does not fix the issue for many different builds and versions including the latest version when running it on Wayland DE including forcing it to run X11 with gamescope.
In fact the only actual solution I found was from an issue somewhere that I can't actually find but editing the
thread_management.cppto this actually entirely resolves the issue and allows games to boot.Bless the soul who found it out because it causes builds to run just fine. Unfortunately it also means I need to build manually every time I want to update shadps4.
Also to clarify, this allows latest build to boot into the game for me as well as from any version I had a repository saved of.
For reference:
Fully up to date
KDE Plasma
Wayland
Arch
Also Nvidia proprietary dkms if that matters.
@ngoquang2708 commented on GitHub (Oct 4, 2024):
@Oroborius If you use my builds, it don't need Gamescope to run under Wayland, just need to run with
env -u DISPLAY ./Shadps4.qt.AppImage. It also included your patch.@Oroborius commented on GitHub (Oct 4, 2024):
Can confirm these do run and do not need to be ran under X11 through arguments
and run about the same as the scissor rect patch.They actually suffer the same performance impact in many places due to an obscure bug that causes the framerate to tank to 10FPS. The pull request from here actually grants a significant performance uplift in areas where this bug occurs and allows me to run the game at a stable 1440p60 with no issue beside odd polygon tearing post-death.@LionHeartP commented on GitHub (Oct 4, 2024):
Sadly none of your builds work for me.
fish: Job 1, 'env -u DISPLAY ./Shadps4-qt.App…' terminated by signal SIGSEGV (Address boundary error)And when I try with bash I just get a coredump
Nobara 40
Kernel 6.11.2
GPU 7900XTX
@Oroborius commented on GitHub (Oct 4, 2024):
I actually just did some further testing and actually found this build has the same issues as main branch and other older builds. You're better off using this build and patching the
thread_management.cppwith the patch above and running with the commandenv -u WAYLAND_DISPLAY env XDG_SESSION_TYPE=x11 gamescope ./path/to/shadps4as it grants more performance and fixes the performance tanking bug.@LionHeartP commented on GitHub (Oct 5, 2024):
Got it running following these instructions, sadly radv can't render Bloodborne properly yet.
@LV99VIVI commented on GitHub (Oct 5, 2024):
thx i was able to get past black screen on latest linux mint cinnamon using quangs build with just doubleclicking. pretty sure i dont have wayland
@Oroborius commented on GitHub (Oct 8, 2024):
Latest pre-release actually appears to fully address the random lag issue for the most part, however I believe the lag issue is more prone to uncleared resources on the system due to the nature of how shadps4 closes/crashes when ran through the terminal like this, possibly due to the XDG environment. However crashes seem to be effectively gone from the latest pre-releases so I don't think this pull request is needed anymore as everything in pre-release has the fixes from this PR in some form or another. However the same patch to
thread_management.cppis required to boot under Wayland (or at least Arch KDE Wayland) from my testing. Hope they start including this patch or at least a form of it in the AppImages soon.@ngoquang2708 commented on GitHub (Oct 9, 2024):
@Oroborius Do you mean you can boot BB on Wayland, via XWayland, using "main + thread_management patch"?
@Oroborius commented on GitHub (Oct 9, 2024):
Yes, thread_management patch is required for Linux or at least arch wayland. Then we use a Wayland display in an XWayland xdg environment with gamescope to properly boot. Even if we have the thread_management patch it wont boot unless we have the gamescope/XDG environment
Even works for latest pre-release.
@C0rn3j commented on GitHub (Dec 7, 2024):
Bloodborne CUSA00900 1.09 black screen on Arch Linux with Plasma Wayland session with Nvidia on
github.com/shadps4-emu/shadPS4@dad5953e8cbuilt from AUR/shadps4-git.The pthread patches mentioned above should no longer be needed after https://github.com/shadps4-emu/shadPS4/pull/1440
shad_log.txt
EDIT: Judging by the log, I am missing some modules, will retry later...
EDIT2: Still a black screen, new log with all the required modules -
shad_log.txt
EDIT3: With CUSA03173 1.00 I instead get in a 100% CPU on one thread loop that spams 100MB of logs in a minute -
shad_log.txt
@7oxicshadow commented on GitHub (Dec 8, 2024):
Have you tried launching using the following command:
env -u DISPLAY ./name of binary here
@C0rn3j commented on GitHub (Dec 8, 2024):
unset DISPLAY; shadps4Awesome, unsetting DISPLAY does work!
I did see it mentioned here but to be frank my brain just skipped it as an AppImage solution.
The sound gets looped like an early 2000s techno music at times(most of the time except cutscenes pretty much), but it does run, thanks again!
@ngoquang2708 commented on GitHub (Dec 8, 2024):
@C0rn3j Are your GPU Nvidia?
@C0rn3j commented on GitHub (Dec 8, 2024):
@ngoquang2708 yup, you can get my system specifics from the logs I posted above or from any of my recently opened issues i.e. https://github.com/shadps4-emu/shadPS4/issues/1703
@ngoquang2708 commented on GitHub (Dec 8, 2024):
Seem like NVidia specific issue.
@C0rn3j commented on GitHub (Dec 8, 2024):
Tried on
github.com/shadps4-emu/shadPS4@fea2593ab4, game freezes when first cutscene finishes playing, I am able to get a couple lagged frames in before it freezes for sure.shad_log.txt
Should I open a new bug report for the freeze and possibly for the audio being buggy, since it's not exactly this black screen issue with DISPLAY anymore?
Couldn't find a relevant one.
@7oxicshadow commented on GitHub (Dec 8, 2024):
noticed you have already posted in #1704 but it is worth rebuilding with the flag mentioned in that bug disabled to see if it solves your issue
@C0rn3j commented on GitHub (Dec 8, 2024):
@7oxicshadow good guess, I get past the character creator now.
Audio is still buggy as hell.
I wanted to just do this through the PKGBUILD so I ended up saving this as
cmake.patchAdding
"cmake.patch"to sources in the PKGBUILDAn extra
'SKIP'to theb2sums array.And adding
patch -Rp1 -i "${srcdir}"/cmake.patchto prepare() to reverse patch it in.@Hermiten commented on GitHub (Dec 14, 2024):
This issue is outdated.
To answer the first post, many games don't work on Linux, especially before version 0.4, which is why you were stuck on black screen.
@C0rn3j commented on GitHub (Dec 14, 2024):
I've opened #1781 to track the Wayland blackscreen issue when DISPLAY is set then.