#[0.0.8-rc2] Linux - Crash to Desktop on Focus Switch (ie Alt-Tab)

201 messages · Page 1 of 1 (latest)

stable fable
#

Testing out 0.0.8-rc2 today and I'm still getting the crash-to-desktop when I alt-tab, or click on another window on my other monitor. This happens on both regular native, and Sniper Runtime.

Operating System: openSUSE Tumbleweed 20240819
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D70
System Version: 1.0

#

Quick edit: this does not happen in Window mode. Only Fullscreen and Borderless.

stable fable
#

Additional Testing.

Using the Steam Launch Options:

SDL_VIDEODRIVER=wayland %command%

Completely solves this issue.

wise steppe
#

Thanks for reporting, did you encounter any crash prior to 0.0.8-rc2?

stable fable
#

There were no crashes on 0.0.7

On 0.0.8-rc1 I didn't try (or think of) the Steam Launch option so gave up on it and went back to 0.0.7 when the alt+tab crashing was happening.

pliant gulch
#

I have run into this same issue and it is a new problem as of 0.0.8-rc2

#

at first I thought it was an issue with kde because I literally just switched but it happens on gnome too :P

turbid trellis
#

I am still completely unable to replicate this with any combination of launch options, and my software is near identical to the ones listed in the report

pliant gulch
#

heh

#

crashes every time on my pc

turbid trellis
#

Yeah, I can't replicate this whatsoever

#

My system

Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
Memory: 27.2 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 16 (AMD Ryzen 7040 Series)
System Version: AG

#

Only meaningful differences are the distro and specific kernel

wise steppe
pliant gulch
turbid trellis
#

Interesting. Can you try running with Steam Runtime 3.0?

pliant gulch
#

one sec

#

still crashes

turbid trellis
#

Can you upload that player log as well?

pliant gulch
#

lemme open web discord

turbid trellis
#

Wait, is this flatpak steam?

pliant gulch
#

yes

turbid trellis
#

Flatpak steam has plenty of problems by itself

pliant gulch
#

heh

turbid trellis
#

Would it be possible to install native steam and try that?

pliant gulch
#

is there an easy way to move games so don't have to redownload shapez?

turbid trellis
#

You should be able to copy game files over

#

Or move, your choice

pliant gulch
#

alright

turbid trellis
#

I'm sure you understand, but for clarity I do mean ctrl-c/ctrl-v in your system's file manger

pliant gulch
#

yeah ofc

#

I don't think I'd be on linux if I didn't understand that :P

turbid trellis
#

I work in IT, some of the stuff I've seen...

pliant gulch
#

lol fair

#

tbh I probably wouldn't be on linux if I hadn't used rpis for several years

pliant gulch
#

native steam seems to not function

#

maybe I'm doing something wrong but its just sitting there logging in

#

where does steam store user data like who's logged in?

turbid trellis
#

No idea tbh

pliant gulch
#

I think I've found it

#

we'll see if it works now

mental vigil
#

This happens for me in 0.0.8-rc3 under x11 as well.

#

Native steam

valid rivet
#

also encountering this, ubuntu 22.04 with x11, native steam

sick dove
#

yeah, seems like a regression in rc3

#

for me, rc1 crashed, rc2 was working, rc3 crashes on alt-tab too

#

again, running the game in a window seems to make it work
(fullscreen/borderless -> crash, windowed -> works)

#

(although running the game in a fullscreen-sized window is a bit annoying because of the window edges so not really a preferable solution long-term.....)

gilded hull
#

Same for me, with the rc3, wayland and native steam

dreamy granite
#

Same here, no issue with rc2 but rc3 now crashes on focus change (alt+tab, mod key and selecting another window). Arch with Wayland in my case.

turbid trellis
#

@stable fable Out of curiosity, what's your window manager?

stable fable
#

Either Kwin or sddm. Can never remember which is which. I have them both.

turbid trellis
#

Can you check?

#

I'm wondering if this is window manager related

#

I'm on kwin without issues, if you're on SDDM can you try that?

stable fable
#

I log in with sddm. Kwin is just there as part of plasma.

#

Let me boot up the pc.

turbid trellis
#

No rush, just whenever you get the chance

#

Thanks

stable fable
#

According to neofetch, it's kwin

turbid trellis
#

Well there goes my last idea

#

I genuinely cannot think of any other avenues to approach

stable fable
#

I'm running a system update right now (it's been about 10 days since the last) let's see if anything changes.

turbid trellis
#

To be perfectly honest, I would be surprised. But it's worth a shot

stable fable
#

As expected, no change.

turbid trellis
#

:/

stable fable
#

Currently configured to play on XWayland in Window mode. This is the best of both worlds. No crashing to desktop on focus switch, and no crashing from a bad clipboard interaction.

#

This is how I play my most-played game: Factorio

turbid trellis
#

It's just incredibly frustrating when I can't see any difference in the system but there's such a notable change in behavior

#

This will continue keeping me up at night

stable fable
#

What are all the launch options you are using? Maybe you have an extra one I'm not using?

turbid trellis
#

That's the thing, no combination of having or lacking them has caused me problems

#

All I have now is GDK_BACKEND=x11 to fix importing/exporting saves crashing on Wayland and Steam Linux Runtime 3.0 to fix the website buttons not opening/taking forever to open

#

But alt-tab has never once been problems, with or without that or anything else

stable fable
#

Oh, hey. Just re-read your system setup. You are on a zen kernal. In one of the rabbit-holes I found while researching this, I read that there was a difference between zen and non-zen that was causing instability in a Unity game. Can't remember much more about it. But it's a difference.

turbid trellis
#

Yeah, I thought you tried that

#

Maybe I'm inventing that, who knows

stable fable
#

I've never mucked about with kernals since I moved to tumbleweed from arch

turbid trellis
#

You know what, one sec

#

I do have the normal kernel available, just not default

#

Nothin. It's every time the game loses focus no matter how it does, right?

stable fable
#

For this bug report yes. For my other, it's the specific clipboard interactions under wayland mode

turbid trellis
#

Yeah, that one I could reproduce. That one I'm not obsessing over finding some difference somewhere as to why I'm fine and you're not

thorny copper
#

i also have this problem in 0.0.8, here is my log and my system is

Operating System: Bazzite 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.9.12-205.fsync.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 62,7 GiB of RAM
Graphics Processor: AMD Radeon RX 7800 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0
turbid trellis
#

Yeah, identical crash

celest lagoon
#

What can I do to help? I'm pretty familiar with linux, and I've got a buddy that also would really appreciate being able to multitask and play the game. Honestly, I'm really impressed by the game so far.

#

So GDK_BACKEND=x11 doesn't change the crashes. It was working fine for me prior to rc3. maybe rc2. I was out of town for a bit, so I think I missed an update.

thorny copper
celest lagoon
#

Hey.. So really dumb observation, but this looks like it's built for linux. I have nothing on my end installed through proton. I'm testing to see if there's anything that actually happens when I run it via wine & proton.

#

Also I'll summon my buddy

#

@dreamy wyvern

#

It runs and doesn't crash through ProtonGE 9-11. I can multi-task no problem without even stuttering.

#

So that leads me to believe that it's not up to the devs to fix.

#

The game was built on Unity. If Unity made a patch to something in between their release cycle, it could be causing the issues we're experiencing.

#

I'd say it'd be a good idea to pass this on to Unity, and for the mods to insta-resolve any new issues that are reported by instructing them to switch to using Proton as a temporary fix.

#

I'll also make sure it's stable on the steam version of proton rq

#

Tested and working just fine on Proton Experimental.

#

Bagel tells me that it doesn't start on the steam deck he got about a month ago. It's probably best to report the bugs to Unity, and temporarily take down / disable the linux binaries. If it's crashing on pretty much every linux based device we've got available, it's not worth trying to tell every soul that is willing to find the discord and report an issue to switch to the windows build.

turbid trellis
#

There's also lots of Linux devices where it doesn't crash (namely every single one I've tried)

celest lagoon
#

Can you send specs for your test envs?

turbid trellis
#

I have a few times throughout the various reports, and a couple of them are borderline identical to setups where they are crashing

celest lagoon
turbid trellis
#

I've tried on normal, zen, and hardened. No difference

celest lagoon
#

Solid! The thing is that usually it would be a driver issue on our end, but we're on relatively new hardware with recent drivers. Same goes for ucode, etc.

turbid trellis
#

In fact I'll do you one better - it's running the native version on my steam deck literally right now

celest lagoon
#

I mean we can send videos. I don't think that you're really understanding that we're not critiquing you. We genuinely would love to dump a bunch of hours into this game, and are experiencing issues that aren't constrained to distro, desktop environment, or window manager. I haven't tried x11, due to the fact that I have two monitors with different frame rates. Just to try everything, I'll try native on that later tonight and I'll report back as to whether or not it fixed the issues. But please realize that we're not coming at you, we're looking for help finding a solution to a problem.

turbid trellis
#

Don't get much more uniform hardware than that

#

I don't think anyone's doubting the legitimacy of the issues

#

For the people it's happening to, it is definitely, 100% happening

celest lagoon
#

Which is fine like I assumed it'd be. Nobody really multi-tasks on the deck. I was telling bagel that if it's just an alt-tab issue, it'd be a bad idea to pull the linux binaries from steam. You never really have to do that, so why would it crash? Then he told me it won't even launch on his steam deck. That's as much as I know.

turbid trellis
#

I've run Linux a long time now, I know firsthand how temperamental it can be getting things to run on multiple systems properly

celest lagoon
#

I was just saying that it runs fine through proton as an alternative. barely any performance hit when run with the vulkan launch option.

#

NixOS is a dream. Highly recommended lmao

#

But yeah, it's just crashing consistently enough that we wanted to make sure that everyone can enjoy it. So we reached out. I can test more configurations, but the easiest was just to switch compatibility tools to get it to run for now.

turbid trellis
#

For the people running into crashes, that does seem to be the most reliable option

#

I think analytics is the one potentially important setting I haven't asked about, actually. Enabled or disabled?

#

Oh no, never mind. They're on for my steam deck install, so that rules that out as a common factor

spare parcel
#

Hey, I am also experiencing this crash with flatpack steam on fedora (gnome) - shapez crashes on alt+tab. Setting the game to launch with SDL_VIDEODRIVER=wayland fixed it for me as well. Just letting you know, thanks for finding the fix ✌️

vernal thunder
civic lodge
#

Just as a point of data: I get this crash on my laptop Arch Linux + Wayland + GNOME install running AMD integrated graphics (the RDNA3 kind), but it works fine on my desktop Arch Linux + Wayland + GNOME install running AMD integrated graphics (the RDNA2 kind).

#

They both have roughly the same software installed and are up to date.

#

The only difference I can see is which flavor of integrated graphics I run, but I don't expect everyone here to have this be the cause of their problem.

#

uh

#

actually everyone up seems to be running an RDNA3 GPU

#

This might be the problem

#

@spare parcel @vernal thunder do you have a 7000 series AMD GPU?

turbid trellis
#

You know, other than the Steam Deck user having crashes

civic lodge
#

by the way, setting SDL_VIDEODRIVER=wayland also worked for me

#

maybe having the game set this preemptively when on wayland could be a good workaround

turbid trellis
#

I genuinely have zero ideas because of that

civic lodge
#

but that does not seem to be the same problem, is it?

vestal tide
#

I get this crash on X, so it's not just a wayland thing

civic lodge
#

interesting

#

do you have an RDNA3 GPU?

#

btw, I just realized that SDL_VIDEODRIVER=wayland forces me into 1080p max while I could go to 4K before

#

idk if it's on my end or just a limitation of that

vestal tide
#

(intel)

civic lodge
#

oh well too bad

turbid trellis
#

Genuinely zero clue as to commonalities, I've ruled out everything I can think of

#

Intel, AMD, Wayland, X11, Gnome, KDE, etc, I have nothing left

#

I would love anything to go off of

zinc ermine
unreal pumice
#

Lots of same here, but hopefully this helps even a little bit:
Alt-tab crashes the game on fullscreen and borderless mode.
Even without alt-tabbing the game wiĺl crash after some time. Longest play time has been 14 minutes 30 seconds without a crash.
No errors or hangs, just an instant return to desktop.

-force-wayland does not help.
SDL_VIDEODRIVER=wayland %command% does not help.

Windowed mode works fine.

Also, if I change to a smaller resolution from native 2560x1440 to 2560x1080 in borderless or fullscreen mode, the game does not crash. The downside is that mouse cursor is inaccurate, meaning if I want to press a button I have to aim the mouse way above it to hit it.

Game version 0.0.8-rc3

steam-runtime (as in not steam-native-runtime, "Native replacement for the Steam runtime using system libraries")

Operating System: Arch Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.3 Kernel Version: 6.10.10-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 31,3 GiB of RAM Graphics Processor: AMD Radeon RX 7900 XT Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X570 AORUS ELITE System Version: -CF

solar roost
#

I can confirm having the same issue on Arch running KDE Plasma on Wayland, crashes when tabbing out (or sometimes only when tabbing back in)
I can provide more details if necessary, but my specs are very similar to Murhapuro's.

For now I figured out running the game in gamescope seems to solve the issue, at the expense of breaking steam overlay.
For context, gamescope runs the game in a separate compositor, rendering the output of the game in a window on the actual desktop environment - seems like decoupling the game from handling the actual window management is enough to stop it from crashing.

Setting SDL_VIDEODRIVER=wayland causes an instant crash instead of only crashing on alt-tab.

Since the crash is an instant crash to desktop, with no Unity crash reporter window, I suspect this might be on Unity's side? Would be nice to know for sure, but might not be anything you can do :/

turbid trellis
#

See it's weird because that fixes it for some people

#

Nothing about this makes any sense

solar roost
#

I feel you, and wayland is kinda still semi-experimental

#

So depending on the exact software and versions installed, different things might be available or behaving differently

#

One thing of potential note is that I have GNOME installed as well, and have previously used it in wayland on this same user

turbid trellis
#

There's been quite literally zero consistency I've identified

solar roost
#

In case it's some weird issue where the game is trying to access some oddly specific stuff based on what desktop environment it detects

turbid trellis
#

KDE, Gnome, Proton, Native, Wayland, X11, AMD, Intel, I got nothin

#

Even on the steam deck which has guaranteed uniform hardware

solar roost
#

Could still have different setups on steam deck if you go into desktop mode and mess with it

#

And since the desktop mode is appealing to powerusers who would be inclined to tinker, that could be a genuine cause

#

At least for me so far though, the game only crashed on alt-tab, or when setting the environmental variable - I see mentions of crashing after a while, which doesn't happen to me... Though the game does start stuttering horribly after something like 30-45 minutes (based on my playtime)

vestal tide
#

another data point: in addition to alt-tab, it also crashes whenever i get a notification (withdunst as my notification daemon, and i3 as my window manager)

turbid trellis
#

The data points are a scatter plot with zero association I can see

solar roost
#

Is anybody on, say, Ubuntu reporting this issue?

gray shard
solar roost
gray shard
#

I am on X11

solar roost
#

Oh boy, maybe I'll test a few DEs myself

solar roost
#

So, I tested on Plasma Wayland, Plasma X11, GNOME Wayland, GNOME X11
It only crashes on Plasma Wayland out of those four...

#

Not sure if this is any use, but looks like the steam native runtime version does a gdb dump when crashing, so here's the log from that

turbid trellis
solar roost
#

To be specific, I'm using Arch, and seem to be on version 6.1.5

turbid trellis
#

Yep, same

solar roost
#

Damn

#

Actually, do you maybe have a second screen?

turbid trellis
#

Yes

#

Not that it makes a difference if it's connected or not

#

Alt-tab works fine either way

eternal thicket
merry timber
# turbid trellis

Hey, I'm having the same crash log on 0.0.9-rc6 as sammyapnts, but I don't have an option to select Steam Linux Runtime 3.0. Where can I enable/download it?

I'm on Fedora with Wayland, using the non-flatpak version

merry timber
#

-force-opengl does fix it, but there are some visual glitches, like this one

#

Windowed mode also works

#

this is my hardware for the record

turbid trellis
tulip jay
#

Seems not the case unless they just decide not to come forward but all of them not seeking help? that's unlikely. Sadly my own Linux days are too long in the past to provide help but I am highly interested in the resolution of this, following the thread with interest.

turbid trellis
#

Considering that it's only some people and it works fine for others with similar or identical setups, it's an issue with the particular person's setup

#

Like me who's never run into any crashes, you mean?

#

On my desktop, laptop, or steam deck while someone else on a steam deck had some crashes?

#

It's a setup thing, not a game thing

#

Beauty of linux - there's so many different ways to configure it
Downside of linux - there's so many different ways to configure it devs normally won't bother providing any support

grim oak
#

hey i think ive been getting the same like glitch and it keeps crashing my computer whenever i click anything relatively complicated and idk what to do cause it was fine then i changed my resolution once and now its just horror

compact comet
#

I'm getting the same crash on EndeavourOS (KDE Wayland) for 0.0.9-RC7. Fullscreen and Borderless crash, but setting the game to Windowed solves this.

frail osprey
#

Hello. I joined just to say that I'm having the exact same problem.
NobaraOS with KDE Wayland, AMD cpu & GPU

Trying to run the game natively, the game will start not focused. If I try to click on the game window, it will instantly crash. Game starts fullscreen.

  • "gamemoderun %command%" had the same problem.
  • "SDL_VIDEODRIVER=wayland %command%" just crashes the game on startup, immediately.

My solution was to switch to using proton (proton scout, I believe), with no startup command.
I am not sure if there are other issues I have not seen yet.

turbid trellis
#

FYI Scout isn't proton, it's Steam Linux Runtime 1.0

frail osprey
hearty carbon
#

Still a thing... Game doesn't launch at all with the default settings. --safe-mode makes it open in a window but the game renders at a wrong resolution. Focus changes don't crash the game, but any attempt to resize the window (change tiling axis, move to a different workspace, enter fullscreen) crashes immediately. Enabling borderless mode helps, but the game still crashes when exiting fullscreen. Setting SDL_VIDEODRIVER=wayland makes it possible to resize the game, move to another workspace etc. without issues but NOT enter fullscreen. With the environment variable set, I cannot enter neither borderless nor normal fullscreen at all - changing settings in-game makes it crash and so does the fullscreen sway action :(

thorny copper
#

it does launch for me and work pretty fine but still crash if i alt tab

#

so proton it is for me