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:Jump to 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!...
59 Replies
what Version of the Discord Plugin do you have installed?
How did you install OpenDeck?
Does it also happen with OpenDeck 2.7.0?
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
yeah. Update for 2.7.0 was pushed about 3h ago by me.
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.
will try a bit later if the same happens for me
very much appreciated!
ill try to find out if it stops working on any special number of buttons meanwhile
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?
yeah
ok. so for me, it takes a bit longer to load, yes, but it isn't crashing for me.

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.
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
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 "!"
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.
wierd. but if i can get around it by always making sure i reload any ! buttons when adding new thats good enough =).
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
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
this is what i am able to see before it crashes

@Johan E please send over the logs after a crash
because the logs probably indicate the cause
these?
~/.config/opendeck/logs/
~/.local/share/opendeck/logs/

restarted a bunch of times, all with crashes:

plugin log only contains

uhh @Johan E could you run OpenDeck from the terminal? like
/bin/opendeck?same thing happens
log also looks the same
oh it started one time now. But failed when i started it again

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

no sounds can be found
I'm interested in the
terminated by signal SIGKILL lineyeah that one looked strange.
I didnt manually close anything then
can you check the memory usage of OpenDeck in a system monitor before it crashes?
i crashes in about a second after start but ill check
and of the
wine Discord.exe processto be able to add soundboard buttons again looks like i need to delete the profile to get the authentication to work again
🤨
yeah, thats about my face now ^^

thats all i get before the processes terminate
1Gig memory seems alot
yes exactly

and the sigkill is likely due to your system's OOM killing the process due to high memory usage
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

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
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?
not that i know of at least. tried a few utilities but nothing gives me more granularity
oh wait. im an idiot

when running and constantly sending handshakes
before crashing

Dont know if this is just because its crashing or if its relevant.
Token resets to an empty string after a crash.

are you sure that its related to the discord plugin?
if i remove any discord plugin buttons everything works normally
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
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
well, deleting the plugin deletes all its actions automatically
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
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!