Kernel Warning: "Unpatched return thunk in use. This should not happen!"
It's not just the game, it's the entire computer that slows down. I was on a Discord call at the time, and they said my voice went robotic as soon as it happened. This issue happens intermittently and doesn't appear to have any specific trigger that I can tell.
I can't figure out what's happening. I've checked:
- TDP (ryzenadj)
- Thermals
- RAM
- CPU
- GPU
- btop to see if processes were eating my system capactiy, and it doesn't appear so
150 Replies
@tulip got another one for your "raevenant has weird linux issues" blog you should start writing at this point 😂
oh what a surprise.
LMFAO
check if its not tuned being weird
put ur system on performance mode
just to make sure
yeah, I tried that too 😭
gonna try booting
:1
and see if it's a bazzite update that did this or the game
this doesn't look good:
ok, still doing it. Wasn't a bazzite update
it's possible this is part of the same bug causing the dGPU to bork
or the game is borked on the Linux build, idk
lemme see if another game does it too
gonna run a ujust update
Oh shoot wait @tulip I was on 0206, and 0208 doesn't appear (yet) to be borked
But who knows 😂 I'll have to check later tonight
OK @tulip something is using the entirety of my igpu
even though the game is using the dgpu
is there a way to know what the hell's using my apu?oh my god LOL
like, that thing should be off
mission center should show the utilization
hmmmm
don't have mission center
but
btop
shows the apu at 100%
then the game (and my pc) slow to a crawl until it goes back down
somethings intermittently shitting on my system lmaoooare you sure the game is using ur dgpu??
yeah
it can't run at 120 fps on the apu
plus mangohud says so

but this is the issue

wait hangon
the gpu util is wrong
the util lines up
or maybe GPU0 is the dgpu??
installing mission center rn
hmmmmmmm
it would be the funniest thing if GPU0 was ur igpu
LMFAO
it most likely is not tho
ok no, mission center is showing the dgpu in use
man I wonder if that damn bios update broke it
probably not.......
i hope not!
the Framework 16's latest bios update f-d up the TDP settings, and the dgpu is always on performance mode, even in balanced
I'm gonna try telling the game to limit the fps instead of mangohud and see if that fixes it for whatever reason
man that might be it
like,
the IGPU vram is controlled by the BIOS
maybe you have way too little vram?
no idea
the dgpu has 8gb vram, which isn't great, but it's not horrible either
ok yeah the vram (right now) is at 2G/8G usage
hmmmmm
OK so, I don't know whats causing it, but the symptom (and the actual issue) are that the GPU clock speed drop to like 3-400mhz
out of 2.3Ghz
thermals never got high enough to cause something actually weird
ok so mega weird, it seems to be specific to just that game?
I tried Helldivers 2, which is also quite intense on the GPU, and nothing
no glitches, nothing weird
This happens sometimes. Is the game a Linux native game?
It is yeah
well many games work better on proton layer than native. Many devs don't know how to code for Linux. If possible, try it out with proton and see if it works better
Since it's not a steam game, I haven't figured out how to do that actually. When I tried running the installer via proton, the entire graphics of the game was just completely borked
from what store is it? gog?
Nope, Albion Online does their own thing. Lutris only has the Linux version, and protondb every review says the Linux version is perfect (and honestly they're right. Except for this specific issue, it runs beautifully)
oh, I've heard about this game from a friend. I'll ask him if he ever had this issue
It's only done it the last week or so
he said that he never experienced any issues with it
Been playing perfectly fine for a month or two before that
Which is why I was worried it was the Framework bios update, since it happened around the same time. Easily could've just been a weird patch tho
https://forum.albiononline.com/index.php/Thread/207654-SOLVED-Albion-Online-locked-to-60FPS-on-Linux-using-Wayland-Runs-fine-on-X11/?s=101b0158f0b573deb44d5334e2b2e04e76a69f0c
see if this fixes your problem
seems kinda similar to yours
Nah, it's absolutely running on the dGPU. Thanks for the search tho 🙂
In my case, it runs consistently at like 120fps, then randomly the entire PC (not just the game) has a panic attack. Discord gets garbley, the mouse gets stuttery, and the game drops to like 30fps
Thermals are fine, CPU/GPU usage look normal
It's mega weird
Ram is fine, and disk I/o is also fine
GPU vRAM is also fine
@tulip does this maybe sound like a possible DRM or Mesa issue? I'm wondering if something's causing a GPU reset or something to make the clock speeds tank for whatever reason
you can try out mesa git if ur brave enough...
Not sure if I am 😂
That sounds scary
honestly probably isnt that tho, might be a DRM issue
i wonder what is making ur hardware blow up tho
Yeah straight up tho, none of the normal suspects
https://paste.centos.org/view/e728e1a5 @tulip🌷 thought I fixed it, but I did not
it does appear that there's an AMD DRM stacktrace in there, so I think mesa might've regressed again 😭

I think that's the direct scannout issue tho. I tried removing the env var
A buddy of mine suggested that my issue sounds like a power saver underclock. He suggested going into bios and disabling the "battery preservation" option that was introduced in the latest bios update. I gave it a go and so far I haven't seen the issue come back. Last time it took a day or two to come back tho so idk
ok, it's not the power issue
I think it's DRM. I'll submit a mesa ticket
the problem seems to go away if I disable the laptop screen for whatever reason
just keeps making me think it's DRM
though honestly, since I'm not sure what the actual error is, I'm not sure what to report
@Raevenant Are you a software tester by any chance? You find the most obscure issues ever 😂
I think I'm just cursed 😭
What's weird too is I don't feel like I have that unique of a setup. Framework laptop, monitor connected to dGPU, like that has to be common
So idk why I keep running into problems only I have 😂😭
ignore the thunk
Did something else in the dmesg look more suspicious? I reported a big to Mesa, but I didn't specify any particular error since I didn't know which of them looked most suspicious
everyone got that error
?
The amdgpu stack trace or the thunk one?
thunk one
stacktrace
I don't understand what you're saying. Everyone is getting this issue? The thunk and amdgpu stack trace are the same error? Those things are unrelated to the system failure I'm experiencing?
Feb 13 16:12:31 bazzite kernel: WARNING: CPU: 3 PID: 26149 at drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_replay.c:89
I'm gonna try reinstalling the entire game from scratch and see if it helps
I also found a way to run the game in gamescope so I'll try that too, maybe it's a KDE issue
reinstalling did not work
refreshing/restarting my laptop screen did work
immediately
ok, I've done some more testing
rolling back to a previous version of bazzite did not help, even though the issue wasn't happening back then
however, Albion Onlin is the only game (that I can find so far) taht makes this happen
Albion had an update recently
which means "albion broke it"
however
the issue "magically" resolves itself if I turn off my laptop monitor and only have the external one on
meaning it's DRM or KDE's fault
so here's what I actually think is happening
1. There's been a bug in either Mesa or KDE for a while now
2. It is an edge case
3. Albion Online updated and happens to trip it
If you have a spare SSD drive enclosure and a spare SSD drive. It's maybe worth installing a fresh version of Bazzite on there and see if you can reproduce your issue.
I had a weird issue this week where the machine slowed down to a crawl, it was btrfs and a process writing to very large file. Because btrfs uses copy on write, it was slowing my machine down to crawl. I wonder if Albion writes a lot of info to the disk. You can run
htop
switch to the I/O tab and seei mean that's entirely possible yeah. I do actually have another ssd with bazzite on it tbh, maybe I can try booting into that yeah
I'll try that this week! It's not a fresh bazzite, but It was one that I had before all this was happening
also also, the issue just happened with the monitor off, so that doesn't actually fix it 😭 must've been repeated conicidence
user stuff's gonna be in
/var
right?Might also be worth trying a copy of gnome. then you can see if it's just a kde issue
mostly
gonna try and watch the i/o rn. I'll report back if it happens
wait so why would extreme file i/o make KDE and other apps completely "die" temporarily tho?
(Albion online has a history of high file i/o usage bugs, so this could make a lott of sense actually)
So I was running virtualbox and having COW (copy on write) on the virtualbox VDI files was completely killing every app on my machine while virtualbox was running
If it's I/O reads, you are ok. If it's I/O writes..... it could be related
iirc the albion online bug is a write issue
daaaaang
yeah, I'll keep an eye out for that. I'll reproduce the issue and watch i/o, then try again on the other bazzite installation I've got
hey @wolfyreload here's a question. I know that pipewire deals somewhat in the video pipeline. Is there any chance that EasyEffects could have a bug that would cause something like this?
I don't know enough about pipewire and EasyEffects to have an opinion on it
mm, one more thing before I turn in. What would the difference be between a fresh bazzite install and just re-installing the game from scratch?
because I tried that, and the glitch persisted
in terms of the btrfs thing
You tinker alot. Fresh install doesn't have anything you've changed 😅 .
truuuuuuuuuue
so here's the wild bit
this install is way "fresher" than my other disk where I wasn't having those issues
I actually experienced this first right after doing a fresh install
which I did in order to set up LUKS
But yeah in terms of btrfs no difference really, but this is just something that might and it's a small might be the issue
Oh also LUKS can make writes and reads much slower
You might want to have your games on a partition that isn't encrypted
I mean I'm on WD Black ssd, so idk. I'll take a look at the i/o next time it happens tho to be sure
yeah, this is the eventual plan
just making sure I don't need anything off the old drive first
does the i/o need to be "maxed" for things to slow?
I like system encrypted, if someone can see my save games... meh lol
yeah 100%
If you have one item maxing out I/O your mouse will work but everything you open will take forever and it will seem like your internet is slow... etc etc
hmmm
the system slows so bad sometimes even the cursor dissappears lmao
Might be a memory leak in the game too
yeah but that would show up as maxed ram, no?
I actualy don't know what a memory leak "looks" like
True... so probably not that
on a system monitor
just as a quick recap (from what I remember. I haven't taken screenshots. I really should 😅 )
- GPU usage tanks
- CPU usage is normal
- RAM is normal
- i/o I think is normal
- Battery is not low
- Balanced and Performance power profiles both glitch
it's like every usual suspect isn't the culprit, but idk what it could possibly be if not that
oh, and thermals are fine
well within operating temps
Other solution... play another game...😅
😂
honestly, this is the plan for now once my subscription ends. I've opened bug reports with KDE, Mesa, and Albion, since I've got no clue which one is actually the culprit lmao
unless you see something I don't in the fpaste
it looked like maybe DRM to me, but honestly, idk
If you install Bazzite on something else, I'd try gnome. KDE does weird stuff sometimes
Yyyeeeaaahhh
Is gnome generally more "stable"?
KDE just released 6.3 which broke a whole lot of stuff for me. I need to use some extensions in gnome to make it more usable for me. But overall I've found it more stable. But is it really more "stable" is debatable lol. That's a question that can start a Linux war 😂
Thinking more as a process of elimination
Yeah 100%, I appreciate the suggestion! I'll probably try, in order:
- watch the i/o
- try previous Bazzite
- if previous Bazzite works, I'll probly have to just bite the bullet and wipe that disk so I can install Albion on an unencrypted drive
- last resort, try gnome
Looks good
started crashing for me
as well
fun
(not on bazzite no rollbacks for me bitches)
Are you on Arch antheas?
yes
i updated to fix ppd
i fixed it hopefully it works on gnome now
14gb update
ok, so it appears that my previous installation of bazzite isn't glitching. I'll keep testing tomorrow. That one's still on 0127, so I'm rebasing my current installation to that to see if the problem goes away
I've already tried as far back as 0206, so I'm curious to see if it theoretically broke at that point and I didn't notice
I'll also try putting Albion Online into openGL mode, since the same time I noticed this issue, I noticed that openGL albion online broke mangohud somehow
might be concidence, might be part of the same issue somehow
OOH NEW INFO
rolling back to 0127 fixes the openGL issue
which rolls mangohud back to 0.2.6. I know that's not what's causing this entire issue though, because Albion crashes with or without Mangohud
still interesting tho
well @tulip🌷 that's like 3 hours, and still no glitch! So it seems like rolling back to 0127 worked!
beats me what got added in 0203 that broke it 😂
or actually it went 0131, then 0206, so one of those broke it ig
I'll try 0127 and 0206 tomorrow or later this week to make sure I can pinpoint exactly which update broke it
We bumped mangohud try to update
Few hours ago
To 0215?
Sure
Yeah sure thing, will try tomorrow
What do you mean bumped?
I don't think mangohud is the issue, it breaks even when mangohud is off
We bumped it again
Should be fixed now
Idk what bumped means
I don't recall what your issue is exactly
Updated
Albion online makes my computer completely stall. January Bazzite doesn't do it, Feb Bazzite does
Mangohud might be related or just a coincidence
ok, openGL mangohud is still broken on latest
specifically for the Albion Online launcher
not broken on 0127, broken on 0215
I'll see if the other issue also persists
So far, the other issue is gone
Mangohud still broken, but I've got an issue open with them. If a week goes by without another glitch, I'll mark this thread closed
ope, it did it again
that took a while
maybe it only happpens with Vulkan?? It was working perfectly fine earlier on OpenGL
yeah, I think somehow it's just the Vulkan version
damn, nope happening in opengl now too
ok here's all the info

the issue was happening during this
like, the GPU is at ~100% usage, but the power tanks
30W instead of 95
no dmesg errors
I will also mention that something weird happened with screenshots while it was happening. I was completely unable to properly take a screenshot of my laptop monitor. Clicking and dragging on the laptop monitor was drawing a box on the external monitor
possibly unrelated, but beats me, it was weird
oh shoot maybe it is related somehow
it isn't doing that now
oh yo maybe my monitor disabling script is breaking something???
if I run this twice to turn the monitor off and back on again, the screenshot tool completely borks
AND THE JANUARY BAZZITE DOESNT DO THIS
I think this might actually be related unless it's an insane coincidence
ok yeah Albion runs in an xwayland instance
ah, but its still happening
ok, lemme roll back to 0127
0131 is still borked
hmmmmmmm @tulip any idea why I can't roll back?
probably missing the copr
dnf5 copr enable tulilirockz/fw-fanctrl
i wonderdidn't work
need to run as sudo
ok yep that worked
weird tho, why was it disabled?
LMFAO there you go
honestly no idea
ostree does some crazy stuff to /etc
huh
did Kyle add fw-fanctrl to bazzite image?
I wonder if it disabled the copr for that
whaaaaaa
did he?
probably not
YO
HE DID
POGUS!

@Kyle Gospo hel yeah????? i didnt know you added that!
heck yeah!
dude Albion has never crashed on 0131 before. I'm back to thinking that somehow xwayland is hating my
focus mode
script
testing on 0127
if this breaks after using that script, then I think I'm gonna lean towards that
since 0127 worked for literally weeks
IT HAPPENED
ok reboot, don't touch the monitor, see if it breaks
nope broken immediately after reboot
wtf albion
just tried on un-encrypted drive
still doing it
bro that is all the things I could possibly think of
@tulip happen to have any wild theories? All the normal ones are dead ends now 😭
maybe I can try gamescoping itjust like
descope it all
what is going on?
game causes the system to slow to a crawl
did that ever happen in any other situation?
nope, only the game
which game
albion online?
The FPS drops, the mouse lags, discord starts sounding robotic, keyboard shortcuts get inconsistent
basically all the symptoms of a RAM bottleneck without the RAM actually bottlenecking
yeah Albion Online
and only Albion Online (that I've found)
running it through steam and all this stuff right
not a steam game
Lutris
native Linux
lutris
oooh
maybe run it on the lutris flatpak?
its an entirely different runtime to your host system
I can try that yeah
you know, you can always run it in a VM with virgl if EVERYTHING breaks
LOL
whats virgl?
virtio GPU with openGL enabled
that thing that i told you about on DMs
oh yup yup
windows VM or another Linux one?
another linux one
ok trying flatpak lutris rn
nope, still doing it
ok, definitely not the host/flatpak environment then
running with any extra scripts/options?
I've tried with and without mangohud, but thats it
gamescope crashes the game completely
or at least won't launch
wine game right?
native linux
its always native linux games that do this shit
it doesn't install well with wine/proton
damn
theyv'e had native linux support for like 15 years, but they only "officially" support Ubuntu, so they wouldn't help me when I contacted support 😭
maybe you should try it on a ubuntu distrobox
huh. Ok, now that's getting weird for sure. hell yeah, lets try it lmao
gonna try wine again real quick
ok i mean so far so good ig
the launcher is starting and updating the game files
nice!!!
lets see!
if this works, it'll chalk yet another native linux build to "please just freaking don't. Let proton do the work"
unless you're Wube, then do whatever you damn well please
heyoooooo, it's letting me play
I'll give this a shot for a bit and get back to ya! 😄
les go??? LOL
nooooooooooooo
it's doing it
actually worse than the linux version lmao
man, why is it only this game
are we sure this has nothing to do with it?
d-
doesnt seem like it
hm i wonder why it gets mad like that
dunno, @antheas said it wasn't, but since I've exhausted all other things I can possibly think of, I'm starting to loop back to the begining 😅
the only thing left I can even think of is that the Framework 16 BIOS update actually did screw something over
Framework Laptop 16 BIOS and Driver Releases
Please note that this software is for Framework Laptop 16 AMD Ryzen 7040 Series ONLY For other Framework Laptops please read the article located
but doesnt the old bazzite build work?
nope 😭
what.
All these issues have been on old bazzite
I KNOW
and it was working... when?
like 2-3 weeks ago now
Albion had an update, the BIOS had an update, and Bazzite had an update
I also switched to an encrypted drive
Maybe it is the thunk but I also get the thunk
What's the issue again?
hmm
Albion Online causes my whole PC to freak out. Cursor goes missing, windows get laggy, the game's fps drops lower than what's reported (like 4-10fps, but it's reporting like 80) keyboard shortcuts start getting inconsistent, and discord audio gets "robot-ey"
basically all the symptoms of a RAM bottleneck, but the RAM is nowhere near used up
the GPU powers down though, I have noticed that. When this occurs, the GPU drops from 90W to like 35
but even that's not low enough to really cause this, since "idle" is like 10W
actually, it's lower. Idle (mux is choosing the igpu) the dgpu is at like 4W
Here's the hardware stuff during the issue
it also does this whether the game is in "ultra" or "low" graphics, so it's not throttling
and the power profile is in "balanced" or "performance" (doesn't affect it)
just to record I'm on the bios I think I am 😂
What's really weird is that it's mega inconsistent. Some days it doesn't happen at all, and others it persists across reboots
Completely random feels like
@tulip if the wine one didn't work, do you think the container one world, or does it use enough of the same system libraries that it would likely do the same thing? I assume the VM would probably just crash the VM or smth
I might also try rolling back to like a full 30 days ago or smth since I know for a fact it worked back then
You know what tho I haven't tried chrooting into the unencrypted drive and running that way
jesus christ 😭
try running it on a vm
if it blows up its for sure the game being weird
run it on something like ubuntu
And with the GPU accel, would I even notice the overhead?
yup
absolutely
we just want to know if theres something wrong with the game itself LOL
Yeah sounds good
Problem is, Ubuntu uses gnome, so if it's a KDE thing it won't do it either
And if it's xWayland complaining about multi monitor somehow, the VM wouldn't capture that either
So complicated 😂😭
the signs of madness 😂

@tulip anticheat kicked me for using VM 😭
(no ban tho, don't worry)
the symptoms of the issue right before the issue tho are that the fans spin way up, then they suddenly stop
once they stop, they stay low/off, and the game and the rest of the system run like crap
hey, how do I get gpu passthrough to my distrobox?

hmmmmmmmmmmm
new information. Forcing the game to switch screens by doing
meta+shift+right_arrow_key
straight up crashes the game
gonna try gamescope
@tulip🌷 I figured out how to get gamescope to work and so far it hasn't crashed
ok, it crashed 😭
so gamescope doesn't fix it
I'm gonna roll back to like Jan 01 and try that
Swapping the monitor also didn't work
You know, late night thought. I wonder... If it is a power thing somehow, maybe power saver mode would make it work randomly?
BROOOOOOOOO switching to powersaver
ACTUALLY WORKS
freaking 1am shower thoughts my dude
which means it was the damn BIOS updateWHAT LMFAO
jesus christ
yeah it's crazy, the glitch happens in both
balanced
and performance
, only on Albion Online, and the issue both goes away and stays away when switching to power saver
@Kyle Gospo I know you know TDP stuff, is there something I can do with ryzenadj
maybe to make balanced
work too you think? Even straight guesses would be coolShoot could this be it??? https://github.com/FrameworkComputer/SoftwareFirmwareIssueTracker/issues/43
GitHub
FW16 EC slows the CPU down · Issue #43 · FrameworkComputer/Softwar...
Device Information System Model or SKU [ ] Framework Laptop 16 (AMD Ryzen™ 7040 Series) No dGPU. BIOS VERSION 3.0.5 Windows: N/A Linux: Open a terminal and run the following command sudo dmidecode ...
Ah damn, so switching power profiles mid-issue doesnt work
Managed to get proton version to install btw, and it happens in there too