O
OpenDeck•5w ago
Johan E

Crash on start when discord soundboard is used on a button

I have used OpenDeck for months without problem (Aside for not being able to change the button images, but that's beside the point here). Since a few weeks back OpenDeck crashes as soon as the buttons are loaded. without any error. Nothing in the system journal or the dedicated OpenDeck log. The app starts and only shows the yellow "!" icon on all buttons for a second, then just crashes. If i remove the profile it starts fine. If i re-add the discord soundboard buttons, it also works fine until i quit the app entirely. But when i start it again, after a reboot or just after manually closing OpenDeck the same crash behavior as before is back. This only seems to happend when i have Soundboard buttons active through the discord plugin. I have also tried unintalling OpenDeck and manually removed all config files after the fact. Then reinstalled, but the same thing happends. Any ideas? (I'm on CachyOS with Hyprland)
Solution:
in any case its pretty clear that its my system thats the problem i think, so you can close this issue. Thanks alot for the help!...
Jump to solution
59 Replies
Terrorwolf
Terrorwolf•5w ago
what Version of the Discord Plugin do you have installed? How did you install OpenDeck? Does it also happen with OpenDeck 2.7.0?
Johan E
Johan EOP•5w ago
I have tried both AUR versions (opendeck and opendeck-git) plugin is 2.0.3 currently on the non-git version 2.6.1 but i see that the aur version is 2.7 now. tho i reinstalled it through the aur just an hour ago and got 2.6. Will try to reinstall with version 2.7 now
Terrorwolf
Terrorwolf•5w ago
yeah. Update for 2.7.0 was pushed about 3h ago by me.
Johan E
Johan EOP•5w ago
hmm same problem. Although it seem to work as long as i dont add to many buttons. Tested with 4 Disacord soundboard buttons now. and that works fine after restarting opendeck. Then added 10 in total and the crashes starts again. All was with the same sound.
Terrorwolf
Terrorwolf•5w ago
will try a bit later if the same happens for me
Johan E
Johan EOP•5w ago
very much appreciated! ill try to find out if it stops working on any special number of buttons meanwhile
Terrorwolf
Terrorwolf•5w ago
to reproduce: I should make a profile, add 10-15 soundboards, configure them with for example the duck sound and then stop opendeck via try and start it again?
Johan E
Johan EOP•5w ago
yeah
Terrorwolf
Terrorwolf•5w ago
ok. so for me, it takes a bit longer to load, yes, but it isn't crashing for me.
Terrorwolf
Terrorwolf•5w ago
No description
Johan E
Johan EOP•5w ago
i have added 10 again now and its working. When i add a new button all the other buttons loose their icons and the default yellow "!" is shown. this time i selected all of those at the time and did a right-click->reload.
Terrorwolf
Terrorwolf•5w ago
ok. even filled the rest of the profile now, still working. this with turning to a yellow ! is a known issue, but if I remember right, its nothing we can do since its the plugin behaviour which is causing this
Johan E
Johan EOP•5w ago
now i didnt fix those before closing and it crashed. so looks like there is something happening with the profile data when closing while an icon has the yellow "!"
Terrorwolf
Terrorwolf•5w ago
don't think so, since I hav this often and it isn't crashing for me. to be honest, had the yellow ! on a few buttons veen during my tests right now.
Johan E
Johan EOP•5w ago
wierd. but if i can get around it by always making sure i reload any ! buttons when adding new thats good enough =).
nekename
nekename•5w ago
exclamation buttons are weird, if I remember correctly you can fix it by adding a line of code somewhere in the plugin maybe I'll patch the version that is available in OpenDeck with that fix
Johan E
Johan EOP•5w ago
looks like it was just random that it worked one time for me now. Even if i just add empty soundboard buttons (in any number) and restart opendeck it still just crashes
Johan E
Johan EOP•5w ago
this is what i am able to see before it crashes
No description
nekename
nekename•5w ago
@Johan E please send over the logs after a crash because the logs probably indicate the cause
Johan E
Johan EOP•5w ago
these? ~/.config/opendeck/logs/
Terrorwolf
Terrorwolf•5w ago
~/.local/share/opendeck/logs/
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
restarted a bunch of times, all with crashes:
No description
Johan E
Johan EOP•5w ago
plugin log only contains
No description
nekename
nekename•5w ago
uhh @Johan E could you run OpenDeck from the terminal? like /bin/opendeck?
Johan E
Johan EOP•5w ago
same thing happens log also looks the same oh it started one time now. But failed when i started it again
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
when it runs it keeps outputing "Info - HANDSHAKE" rows in the terminal untill i cancel looks like it starts 1 in 10 or there abouts Hmm, when i get it to start it looks like the discord auth is no longer valid
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
no sounds can be found
nekename
nekename•5w ago
I'm interested in the terminated by signal SIGKILL line
Johan E
Johan EOP•5w ago
yeah that one looked strange. I didnt manually close anything then
nekename
nekename•5w ago
can you check the memory usage of OpenDeck in a system monitor before it crashes?
Johan E
Johan EOP•5w ago
i crashes in about a second after start but ill check
nekename
nekename•5w ago
and of the wine Discord.exe process
Johan E
Johan EOP•5w ago
to be able to add soundboard buttons again looks like i need to delete the profile to get the authentication to work again
nekename
nekename•5w ago
🤨
Johan E
Johan EOP•5w ago
yeah, thats about my face now ^^
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
thats all i get before the processes terminate 1Gig memory seems alot
nekename
nekename•5w ago
yes exactly
Johan E
Johan EOP•5w ago
No description
nekename
nekename•5w ago
and the sigkill is likely due to your system's OOM killing the process due to high memory usage
Johan E
Johan EOP•5w ago
when i get it to not crash, the sounds are never able to load and it settles on about 500mb ram although i have 64gb ram on this computer Also, if i remove all the buttons in this state and add one new soundboard button, it never loads the sounds or shows the discord auth button so it seems like something breaks in the trust between opendeck and discord maybe
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
now all of a sudden, i got a new auth button after 8 min and "AUTHORIZATION NOT GRANTED" and if i allow in discord all buttons are loaded normally
nekename
nekename•5w ago
I'm not convinced this issue is so closely to do with the Discord plugin is there any way you can check the memory usage of OpenDeck's subprocesses individually? as in, each plugin?
Johan E
Johan EOP•5w ago
not that i know of at least. tried a few utilities but nothing gives me more granularity oh wait. im an idiot
Johan E
Johan EOP•5w ago
No description
Johan E
Johan EOP•5w ago
when running and constantly sending handshakes
Johan E
Johan EOP•5w ago
before crashing
No description
Johan E
Johan EOP•4w ago
Dont know if this is just because its crashing or if its relevant. Token resets to an empty string after a crash.
No description
nekename
nekename•4w ago
are you sure that its related to the discord plugin?
Johan E
Johan EOP•4w ago
if i remove any discord plugin buttons everything works normally
nekename
nekename•4w ago
because SIGKILL being randomly sent is normally for high memory stuff and the Discord plugin doesnt look like its using much memory I also dont have a clue how a plugin could possibly crash the whole of opendeck because it runs as a subprocess, not part of the opendeck process, and communicates over websocket
Johan E
Johan EOP•4w ago
since no one else seem to have this problem i guess its something wonky with my system Deleting the pluggin without removing any of the buttons makes it work again as well deleteing as in deleteing the plugin folder
nekename
nekename•4w ago
well, deleting the plugin deletes all its actions automatically
Johan E
Johan EOP•4w ago
Tried to create a separate profile now and put all my soundboard buttons there but keep the "Default" empty profile as the selected one. Then i can start opendeck no problem. but as soon as i change profile it crashes and i can still add soundboard buttons to the default profile. if i only add one soundboard button it never crashes, but it takes a long time for the button to load (around 1 min). I assume this gets multiplied by the number of buttons i have and perhaps that is whats triggering the SIGKILL
Solution
Johan E
Johan E•4w ago
in any case its pretty clear that its my system thats the problem i think, so you can close this issue. Thanks alot for the help!

Did you find this page helpful?