Issues with Discord Viewing Streams and Streaming
I've been having a lot of problems with Discord today, and I'm not quite sure why.
Problems
If I start viewing someone else's stream, after a minute or two, Discord will restart itself.
If I start sharing my screen, after a couple of minutes, my system freezes and the last second of audio gets stuck in a loop. Only a hard reset by pressing the power button fixes this problem - cannot switch to another tty or anything.
Setup
I'm running lightdm/i3. I also have picom running as a compositor, although it wasn't causing issues before on Discord. I am also running on linux-lts.
What I've Tried
At first, I didn't think it was specifically a Discord issue, but rather my computer itself. I've had issues with random shutdowns and occasional freezes before, although never so consistently and frequently.
I did some digging around and tried a couple of solutions:
-
Setting a kernel parameter:
i915.enable_psr=0. -
Removing the
xf86-video-intelpackage. -
Switching from the
discordpackage to thediscord_arch_electronpackage.
None of the solutions above seemed to have work unfortunately.
Information
Here's the journalctl output from the last boot, where my system froze and went into an audio loop after trying to screenshare.
And here is the journalctl output from the current boot, where Discord crashed and reset after attempting to view a stream.
I also was running MemTest86 for 12 hours overnight last night - finished ~2.75 passes with no errors.
Thanks for your time and consideration!
Edit: /u/Harzerkas seemed to have fix the issue for me. It looks like I was undervolting my CPU too much.
Edited 21 Feb 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 5 · 100% up
- Kind
- Image
- ID
- lonjp1
11 comments
It's your cpu undervolting.
Hmm that actually could be it too - would you mind telling me where you discerned that from the logs? Would like to learn a bit more about debugging these issues.
This line in your log and your problem description just fit with symptoms of too much undervolting/overclocking
Deleted before we saved it.
I saw that the issue was fixed in Electron 11.2.2 - I'm currently on 11.3.0. I'll try downgrading to 11.2.2 and see if that fixes that.
I saw that the reported issue was just a segfault when live streaming, and not a system freeze, but hopefully it fixes the issue. Thanks!
Edit: Unfortunately, that did not work. Discord would still restart.
Deleted before we saved it.
The full system crash is something that's just has been happening with my system for a long time now - never see any relevant output in journalctl so I haven't been able to figure out the root cause. It just seems like sharing screen with Discord can accelerate the issue (also happens if I am recording with OBS).
As for the current issue, perhaps I should rollback electron to an even earlier version then. I'll have to give it a shot.
Deleted before we saved it.
Not sure if it will help, but you can try using the flatpak version of discord.