mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[GH-ISSUE #2155] [APP BUG]: Flatpack app not executing games on Arch, EndeavourOS #748
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#748
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 @spartan195 on GitHub (Jan 15, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2155
Checklist
Describe the Bug
After many attempts on running this software using different branches from forks none worked.
It's surprising because it works fine on the steam deck using flatpack that also runs over Arch
Not in my desktop, the application crashes just after clicking play on a game.
Attaching log file:
log.txt
Looks like the file is missing one line that it's displayed on the terminal:
/usr/lib/gcc/x86_64-unknown-linux-gnu/14.2.0/../../../../include/c++/14.2.0/bits/stl_vector.h:1130: reference std::vector<std::array<Common::SlotId, 16384> *>::operator[](size_type): Assertion '__n < this->size()' failed.Reproduction Steps
Install EndeavourOS and give it a try
Expected Behavior
It should work as intended
Specify OS Version
Linux 6.12.8-arch1-1, EndeavourOS x86_64, KDE Plasma 6.2.5, Wayland
EDIT
SOLVED: Just started from the beginning, wiped all data, all games, all saves.
Re-downloaded the game, get rid of the Bloodborne 1.09 patch and looked for another one, this one had to be the patch itself, I noticed playing on my steam deck that it was a 60fps patch and also gave me some problems there too.
So 1.09 patch vanilla it is.
Downloaded the latest 5h ago WIP appImage, installed the PKG, then installed the patch....
Now it works wonders, boots at the first time, renders fast as hell, 60fps no problem with the shadps4 patch list (Gonna switch to 30, I like it more, give a better real hardware feeling) .
So, it looks like some game patches can mess with the emulator.
Thanks everyone that put their time into this, I really appreciate your efforts, and hopefully I also show @ngoquang2708 a good new distro "EndeavourOS" to play around 😆.
Thanks for everything, peace!
@ngoquang2708 commented on GitHub (Jan 15, 2025):
Could you change the log type to
sync, retest, then upload the log again.@ngoquang2708 commented on GitHub (Jan 15, 2025):
When upload log file, choose attach it, not paste the whole file here.
@spartan195 commented on GitHub (Jan 15, 2025):
On it, sorry I though like this would be better
@spartan195 commented on GitHub (Jan 15, 2025):
Log updated, thanks!
@ngoquang2708 commented on GitHub (Jan 15, 2025):
Log got cut off. Can you run it with
flatpak run net.shadps4.shadPS4 > log.txtthen upload it again.
@spartan195 commented on GitHub (Jan 15, 2025):
Sure, I just updated it
@kalaposfos13 commented on GitHub (Jan 15, 2025):
Considering that the log doesn't include the non emulator related assert that was in your previous message, and the log is so short anyway, in my opinion the previous "just pasting it as text" was better, as it included more info, and the error was easily visible without having to download the nth log to my PC.
@spartan195 commented on GitHub (Jan 15, 2025):
Yeah, the application log get cut off, I'll post here the terminal output so you can get all the info from it:
@spartan195 commented on GitHub (Jan 15, 2025):
I have to say that that assertion issue I was able to bypass it by running a forked branch, managed to load the game but it was all broken, not only most of the geometry was missing but textures too. So "deleting" some references from the code do not help by surprise of no one
@kalaposfos13 commented on GitHub (Jan 15, 2025):
Is this locally built? I see that it's a "dirty" version. If so, can you get a backtrace of the assert?
@ngoquang2708 commented on GitHub (Jan 15, 2025):
It not, we have to use the updated
metainfo.xmlfrom main branch.@spartan195 commented on GitHub (Jan 15, 2025):
Not at all, I'm using the flatpak version from the discovery. As I didn't manage to run any other version I'm trying with the flatpak one which is the same as the one I'm using on my steam deck and works out of the box
@kalaposfos13 commented on GitHub (Jan 15, 2025):
Did you try running the appimage directly downloaded from the releases?
@spartan195 commented on GitHub (Jan 15, 2025):
Yes and had the same issues, been a while, gimme some minutes and I'll post the log of the appImg here
@ngoquang2708 commented on GitHub (Jan 15, 2025):
The flatpak is built with
clangnotgccso I don't know why thegccerror?@spartan195 commented on GitHub (Jan 15, 2025):
Using the latest appimg build v0.5.0 - codename squidwars
@kalaposfos13 commented on GitHub (Jan 15, 2025):
Does the game work if you turn on nullgpu? (you can interact, hear sounds etc.) If so, it's most likely a driver issue, and you might want to update them.
@spartan195 commented on GitHub (Jan 15, 2025):
Tried it and crashes just the same. That's quite strange don't you think? is there any dependency on my system missing? Shouldn't be all inside the flatpak itself?
@kalaposfos13 commented on GitHub (Jan 15, 2025):
Well you can try to run the command that gets the dependencies from here, but I don't know if that would help
@ngoquang2708 commented on GitHub (Jan 15, 2025):
It's a flatpak so all deps should included when you install it.
@ngoquang2708 commented on GitHub (Jan 15, 2025):
@spartan195 Can you try update flatpak:
flatpak update.@spartan195 commented on GitHub (Jan 15, 2025):
The exact same issue,
Cool command, I didn't knew that one.
Also a thing I found interesting. The AppImg actually boots a X11 window of the game, a black one that last for lie 3 seconds before crashing.
The flatpack version do not open that window on the foreground but I can see the additional window created on the system task bar.
I'll switch to X11 and run some more tests
@spartan195 commented on GitHub (Jan 15, 2025):
No good news with X11, same issue.
But it does show the game black window before crashing, I'm afraid now that this is not relevant then
@spartan195 commented on GitHub (Jan 15, 2025):
I have them all already installed, I also tried some time back to run it by building it myself, but no luck either.
I was wondering that this should not be related to gamescope as in the steam deck it runs fine in both desktop and gamemode.
@spartan195 commented on GitHub (Jan 15, 2025):
If anyone was wondering, here is the AppImage over gamescope log:
@ngoquang2708 commented on GitHub (Jan 15, 2025):
I'm leaning more towards the exotic EndeavorOS setup. I even try to install it in a VM and it failed to install 🙂.
@spartan195 commented on GitHub (Jan 15, 2025):
For real hardware suits my needs really well, it have some things that I like and some that I dislike but in overall I like it above any other distro.
I would use Arch vanilla but I'm too dumb for that, also this issue is giving me hints of distro hopping but I don't really wanna do that
@Captn138 commented on GitHub (Jan 16, 2025):
I'm on Arch and seeing what I think is the same problem.
When running
flatpak run net.shadps4.shadPS4 > log.txtI have this error appearing in my stderr when I try to launch a game, after that the emulator crashes:I'll attach the generated log file
log.txt
EDIT : forgot to add context
Distro : Arch
Kernel : 6.12.9-zen1-1-zen
Session : Wayland
GPU : AMD RX6750XT
Driver : amdgpu/mesa/RADV (Vulkan 1.3 is supported)
CPU : AMD R7 5800X (with microcode installed)
All my packages are up-to-date
@ngoquang2708 commented on GitHub (Jan 16, 2025):
@Captn138 Is the appimage work for you?
@Captn138 commented on GitHub (Jan 16, 2025):
Using the AppImage in the same conditions, I get no log in stderr and the following log in stdout :
log.txt
This time the behavior was different : the game launched as a black window, and stayed this way until GNOME told me the window was not responding. I left it like that for a few minutes, but nothing more happened so I had to kill the process.
@ngoquang2708 commented on GitHub (Jan 16, 2025):
@Captn138 Was the appimage ever work for you before? There is a recent update to
externals/sdl3cause crashing for some people. But I don't know if it related to this. I made a build before that update. If you want to test you can find it here https://github.com/ngoquang2708/shadPS4/actions/runs/12810970794.@spartan195 commented on GitHub (Jan 16, 2025):
Hello @Captn138 , Installed gnome yesterday just to give it a shot and happens the same to me, could be the way both kde and gnome differ on how to manage windows, but at the end the result is the same, it crashes.
Thanks for bringing your own experience here, make me feel less lonely!
@Captn138 commented on GitHub (Jan 16, 2025):
@ngoquang2708 as far as I can tell, the same behavior happens.
Here is the log :
log.txt
@spartan195 commented on GitHub (Jan 16, 2025):
Hi @ngoquang2708, tested your build, pipelines just finished, here's the log:
@ngoquang2708 commented on GitHub (Jan 16, 2025):
Next test: https://github.com/ngoquang2708/shadPS4/actions/runs/12811591584.
@Captn138 commented on GitHub (Jan 16, 2025):
@ngoquang2708 same behavior, but this time it closed itself with :
[1] 114537 trace trap (core dumped)log.txt
@ngoquang2708 commented on GitHub (Jan 16, 2025):
Hmm, I am out of ideas. Sorry I could not help any further.
@spartan195 commented on GitHub (Jan 16, 2025):
Holy molly it's working!!
@spartan195 commented on GitHub (Jan 16, 2025):
But only once, managed to load my last save, it's just 5 minutes of what I managed to play and it loaded fine, locked at 30 so i tried to exit and enable the 60fps patch for bloodborne.
And now it gives me the same errors as before.
@ngoquang2708 commented on GitHub (Jan 16, 2025):
So don't use patch ?
@spartan195 commented on GitHub (Jan 16, 2025):
it's not the problem, tried with or without, fails on boot, comparing logs the emulator do not even reach to load the eboot of the console
@Captn138 commented on GitHub (Jan 16, 2025):
I can confirm that mine was crashing without patches nor cheats
@spartan195 commented on GitHub (Jan 16, 2025):
So the latest change that made the game to boot was by deleting this flag
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE=ONfrom the cmake command?@spartan195 commented on GitHub (Jan 18, 2025):
SOLVED: Just started from the beginning, wiped all data, all games, all saves.
Re-downloaded the game, get rid of the Bloodborne 1.09 patch and looked for another one, this one had to be the patch itself, I noticed playing on my steam deck that it was a 60fps patch and also gave me some problems there too.
So 1.09 patch vanilla it is.
Downloaded the latest shadps4 version, 5h ago WIP appImage, installed the PKG, then installed the patch....
Now it works wonders, boots at the first time, renders fast as hell, 60fps no problem with the shadps4 patch list (Gonna switch to 30, I like it more, give a better real hardware feeling) .
So, it looks like some game patches can mess with the emulator.
Thanks everyone that put their time into this, I really appreciate your efforts, and hopefully I also show @ngoquang2708 a good new distro "EndeavourOS" to play around 😆.
Thanks for everything, peace!