-
Notifications
You must be signed in to change notification settings - Fork 181
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
Decky Loader XWayland Surface Instability #613
Comments
Got another crash after opening the on-screen keyboard a handful of times. gamescope_13003_bt.log Encountered on SteamOS 3.3.1 (20220812.101) |
Hello, I don't have any logs. Because I wouldn't know where to find them. I'm just an end user. Sooo, since 3 weeks or so, I also experience odd crashes. Mostly when I'm ingame and close quick settings. I can't reproduce it. It's completely random. (happend maybe 4 times in these 3 weeks now in maybe ~30h of gaming) I also have sometimes random Blackscreens in the game mode main menu, it's there, I click something and random blackscreen, controls and sound still working. Good thing i remembered how to restart. because all good after a restart. |
For me, it's happened way more often. I know I'm on an outdated build of the OS, but going on the Main branch leads to the integrated controllers hitching every so often and it maked shooters unplayable for me. |
I'm on the latest beta build (iirc this all started with the current beta update, but could be wrong) What do you mean controllers hitching? Because I don't have any problems. At least I don't notice anything. I know there were performance problems, after the stable build got 3.3 but these are ok now |
This only happens with the integrated controller, but the problem is how every so often the state of the controller seizes up for a split second. I have proof of this. Integrated test: https://youtu.be/ToFnC9TDkbo Notice how in the trackpad demonstration thr pointer freezes up? |
Oh, I see. But I don't think I have that. I would notice it. I'm so sensible to even small frame time stutters. Strange indeed. I would need to test it. Maybe I'll later. |
This only happens under Main (20220830.1000) so I have no clue what the deal is. I'm kinda just waiting out SteamOS 3.4 and hoping for a fix. I don't really know who I can talk to at Valve about this. |
Have been experiencing the same exact issue. |
gamescope_12923_info.log So I tested it under Edit: still happens on |
Seems to be fixed as of 7b51f59. With it, I couldn't replicate the crash in either video. Keeping this open in case something happens though. Update: Not fixed, false alarm. |
How do you get that? Automatically? |
also i just got it to trigger again by accident, so not fixed. blegh. |
Update: It appears to be caused by Decky Loader (https://github.com/SteamDeckHomebrew/decky-loader) |
It isn't as far as they're aware. People in their discord have spoken about encountering it without it installed, and I've had a couple of first hand encounters with people who've never had it installed, ever. |
It's definitely related to Decky, I was in a VC with @Sterophonick and they were going back and forth with it enabled/disabled several times, and it only reproduced with it enabled. It's definitely caused by that. That's not to say its the root cause, or just surfacing an existing problem or something. We probably shouldn't be crashing from a client either way. The backtrace is very strange, there's a
I made an ASAN build of Gamescope and they were still able to reproduce so it's not memory corruption or bad memory, which was my initial hunch. |
I toggled overlay, over 300 times automatically while running HL2 and didnt get any crash. I just installed Decky and ran the same script, and it crashed in several seconds. It's definitely related. :P |
Okay, I may have found something after some more investigating with asan + Decky installed:
NVM, was just good luck, ugh. Was still a problem though! :p |
True, true. Was just talking about some investigations the team has had where they've encountered it on an uninstalled system. Great to see that we're getting somewhere though. |
Please keep myself and the rest of the decky-loader team on what we can do to help out. We're getting close to a full stable release and we'd love to address this issue before we go for the full release. |
I think its just interfering with the timing of things making a bug that has the potential to happen but doesn't end up surfacing. When the overlay opens, two 1x1 windows are created and then destroyed by steamwebhelper:
In the bad case it ends up looking like this:
I think what is happening here is the following:
But that doesn't make sense, because in So I am not too sure right now. |
I also tested if we hadn't processed creation fully either, by flushing wayland stuff before set_wl_id was called and that wasn't it either 🤔 |
This may be caused by Decky's QAM injection causing the SP window to destroy the QAM window and create a new one. I can try and remove the window re-creation from Decky (it is just a side effect of how we inject into it) but this is likely still an issue in Gamescope as I've had it occur while in-game without ever opening menus. |
I have a stashed half-working version of this (the QAM tabs will disappear sometimes but the window is never re-created) that I can build for you if it would be helpful. I can also provide a debug function to cause that window re-creation next time the quick access menu is opened. |
Does #623 fix this issue or is it unrelated? |
Yeah, it seems the most reproducible whilst opening overlays, but it does also crash whilst in game with no menus being displayed. |
It is unrelated. |
This protocol https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/163 This xwayland PR https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/976 and this Gamescope PR https://github.com/Plagman/gamescope/tree/new-surface-association Should properly solve the problem. |
@Joshua-Ashton Is your last comment a fix that I can deploy on my own steam deck? Do I just need to be patient and wait for the Decky Loader to get an update? |
I would just wait, there are a lot of still moving parts. |
i'm having system reboot sometimes after i close a game with a screen that say "verify installation" is problem related to decky? should i just disable cef or uninstall completely decky? |
@infernn I completely uninstalled decky after my last post and I have not experienced a single crash since doing so. |
Can i Just disable cef in the option ti try It or i have to unistall decky completly? |
You can just disable the CEF option. |
Decky Loader has just pushed a commit that fixed their QAM injection. Closing. |
This hasn't fixed the root cause. |
Hello!
On my Steam Deck, I've been experiencing various crashes on Steam Deck when in Game Mode. When these happen, the currently running game stops, and then gamescope and Steam restarts. The power is not cut, as bluetooth devices remain connected.
Most commonly, these crashes occur when using the in-game overlays, but there are a couple of cases where it happened while playing a game (shown in attached video).
I have run a
memtest86
and everything came back as good.20220902_115314_768x432.mp4
i am so good at doom that i crash my deck
Right here, I have some crash dumps and backtraces from two crashes from using the overlays.
(PID:
1142
)gamescope_1142_bt.log
gamescope_1142_info.log
gamescope_1142.zip (dump)
(PID:
3667
)gamescope_3667_bt.log
gamescope_3667_info.log
gamescope_3667.zip (dump)
My Steam Deck is currently on SteamOS 3.3.1 (20220817.1), and the problem, while uncommon, seems to persist even after switching OS branches or even refreshing the OS.
The text was updated successfully, but these errors were encountered: