You are not logged in.
Hello everyone. I've had an issue with discord for a while now. At seemingly random intervals, I might return to my desktop and find that polybar as well as sxhkd have crashed, and the cause seems to be that discord crashes and takes them with it. Since sxhkd crashes it means I can't do anything, not even shutdown normally, so I need to hard shutdown using the case power button.
This might not happen for a few weeks, and then it can happen a couple times in the same day for example.
It only pops up the following error message, which I had to take a photo of and manually write down the error message:
A JavaScript Error occurred in the main process
Uncaught exception:
Error: EROFS: read-only file system, write
at writeSync (node:fs:923:3)
at SyncWriteStream._write (node:internal/fs/sync._write_stream:275)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writeable.write (node:internal/streams/writable:510:10)
at console.value (node:internal/console/constructor:298:16)
at console.warn (node:internal/console/constructor:405:26)
at transport.writeFn (/opt/discord/resources/app.asar/node_modules/electron-log/src/node/transports/console.js:45:7)
at transport (/opt/discord/resources/app.asar/node_modules/electron-log/src/node/transports/console.js:51:15)
at Logger.processMessage (/opt/discord/resources/app.asar/node_modules/electron-log/src/core/Logger.js:175:11)What's weird is the directory
/opt/discord/resources/app.asar/doesnt exist, but it is instead a file:
$ ls -al /opt/discord/resources/app.asar
-rw-r--r-- 1 root root 7.6M Nov 25 00:11 /opt/discord/resources/app.asarI asked on a reddit style forum as well, and some people mentioned it looked like drive failure to them, so I tested the drive (NVMe drive around 3 years old) and didn't see any indication of drive failure:
$ sudo smartctl -t short /dev/nvme0n1p3
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.17.8-arch1-1] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
Self-test has begun (NSID 0x1)
Use smartctl -X to abort test
$ sudo smartctl -H /dev/nvme0n1p3
smartctl 7.5 2025-04-30 r5714 [x86_64-linux-6.17.8-arch1-1] (local build)
Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
$ sudo nvme smart-log /dev/nvme0n1
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning : 0 <<<<======================= Seems good!
temperature : 45 °C (318 K, 113 °F)
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 1%
endurance group critical warning summary: 0
Data Units Read : 8034527 (4.11 TB)
Data Units Written : 70423529 (36.06 TB)
host_read_commands : 58265590
host_write_commands : 901798802
controller_busy_time : 10039
power_cycles : 340
power_on_hours : 1500
unsafe_shutdowns : 63
media_errors : 0
num_err_log_entries : 0
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1 : 45 °C (318 K, 113 °F)
Temperature Sensor 2 : 48 °C (321 K, 118 °F)
Thermal Management T1 Trans Count : 0
Thermal Management T2 Trans Count : 0
Thermal Management T1 Total Time : 0
Thermal Management T2 Total Time : 0I've also installed discord from the official repositories.
Here's some more info:
$ uname -r
6.17.8-arch1-1
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
└─sda1 8:1 0 465.8G 0 part /mnt/hdd_500gb
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 16M 0 part
└─sdb2 8:18 0 931.5G 0 part /mnt/hdd_1tb
sdc 8:32 0 223.6G 0 disk
└─sdc1 8:33 0 223.6G 0 part /mnt/ssd_250gb
sdd 8:48 0 3.6T 0 disk
└─sdd1 8:49 0 3.6T 0 part /mnt/hdd_4tb
nvme0n1 259:0 0 1.8T 0 disk
├─nvme0n1p1 259:1 0 954M 0 part /boot
├─nvme0n1p2 259:2 0 119.2G 0 part [SWAP]
├─nvme0n1p3 259:3 0 279.4G 0 part /
└─nvme0n1p4 259:4 0 1.4T 0 part /home
$ pacman -Qi discord
Name : discord
Version : 1:0.0.116-1
Description : All-in-one voice and text chat for gamers
Architecture : x86_64
URL : https://discord.com
Licenses : custom
Groups : None
Provides : None
Depends On : libnotify libxss nspr nss gtk3
Optional Deps : libpulse: PulseAudio support [installed]
libappindicator-gtk3: Systray indicator support [installed]
xdg-utils: For opening URLs and files [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 266.66 MiB
Packager : Robin Candau <antiz@archlinux.org>
Build Date : Tue 25 Nov 2025 00:11:20 EET
Install Date : Tue 25 Nov 2025 17:00:09 EET
Install Reason : Explicitly installed
Install Script : No
Validated By : SignatureAny ideas how I can begin to troubleshoot this issue given I never have any idea of when it will happen? I usually always have discord open while the PC is on, but as I said it might be fine for weeks and then I return to the PC and find it in the state I described above. I've actually never had this happen to me while I was using the PC actively, which might also be a clue.
If you need more info of course please ask and I'll provide. Thanks in advance
Offline