Page showing but keep reloading over and over
Acknowledgements
-
[x] I have checked that there is no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.
-
[ ] This bug affects Discord website.
-
[ ] This issue is confirmed to be reproducible when WebCord is packaged on at least all three latest supported Electron major releases.
-
[ ] This issue is reproducible in Chrome, Chromium or any Chromium-based browser, e.g Brave or Edge (please write in Additional Context which browser you have used if it is neither Chrome nor unmodified Chromium).
-
[ ] There are no fixes done to
masterwhich resolves this issue. -
[ ] My issue describes one of the unstable and/or not fully implemented features.
-
[ ] I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).
Operating System / Platform
🐧️ Linux
Operating system architecture
aarch64 (64-bit ARM)
Electron version
34.2.0
Application version
4.10.4
Bug description
The page of Webcord is loading, but then it suddently do like a new reloading of WebCord over and over which make the application unsuable.
Additional context
Notice: This issue was automatically generated by WebCord.
Logs (shown when running in the console)?
I just updated webcord, and I got the same problem
here is a log for this bug, running from a Rpi5 with Raspberry pi OS (aarch64) webcord 4.10.4 electron 34.2.0
cissou@RPi5:~$ webcord
[MISE À JOUR] L'application est à jour !
[WebSocket] Écoute du port 6463.
[258623:0223/101433.082734:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.083085:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.083972:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.084125:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.084788:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.084892:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.085564:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.085672:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.086245:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.086322:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.086833:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.086896:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.087367:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.087437:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.094279:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.094423:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.094943:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.095082:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.095592:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.095679:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.096180:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.096276:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.096741:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.096812:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.097236:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.097302:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.097718:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: Aucun fichier ou dossier de ce type (2)
[258623:0223/101433.097785:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: Aucun fichier ou dossier de ce type (2)
[ATTENTION] https://discord.com/app : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/app : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/@me : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/814403433289351220/814403434958028822 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1322550134877323294 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
[WC_6:5] crashed
[ATTENTION] https://discord.com/channels/1322549988307243028/1324384432207040532 : vérification des autorisations pour geolocation refusée.
Crash count exceeded (>10), relaunching in safe mode...
Looks like the bug with driver+electron combo, causing renderer (website) to crash. On my side, the only thing I can do about this is to use different Electron version (or drivers, if any available) and hope for the best. Given I don't have RPi5, it is probably better for someone having this kind of bug to test anf switch Electron version by himself, plus I have no clue how many people the eventual downgrade will affect.
Downgrading Electron is rather easy with NPM, you probably should find official NPM docs for consumers online how to use it in general (npm-install section).
Thanks SpacingBat3, it seems like you have worked out what maybe causing this issue. I have a RPi5 and I'm happy to try a few things, but I am a noob. I understand we need to change the Electron version and see if it works, I would just goi back one version at a time until it works.
I don't know NPM, I didn't even know I had it.
I found a helpfile for checking versions and I ran npm -v to find the version number, but it seems npm is not installed. Maybe I did something wrong, so if anyone has some advice, please share.
Thanks, Lisa x
I don't know NPM, I didn't even know I had it. (…)
@LisaSocks97 Ah, apologies for the unnecessary confusion on my side. I think I just forgot some dev stuff ain't common knowledge 😅️.
I just gave a scenario that anyone who encounters it might need to try the app from sources and use NPM to downgrade/upgrade Electron (that's probably the quickest way to bulk-try different Electron versions). On Arch ARM tho things are more optimistic, I've explained it fairly recently on some other thread that running WebCord on different version of Electron is as easy as installing it with pacman and running electron [app.asar] with [app.asar] being proper path. I think you might as well get Electron from GitHub and try it the same way as Arch users can.
I'm having the same issue on Raspberry Pi 5 running Raspberry Pi OS.
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
I tried installing with Pi-Apps, uninstalled and reinstalled with snap. Both installs have the same result of regular refreshes every minute or less at an even interval.
Here are the console logs:
webcord
close object 1: Invalid argument
close object 2: Invalid argument
close object 3: Invalid argument
[UPDATE] New application version is available! (v4.10.4 → v4.11.0)
(webcord:26382): libnotify-WARNING **: 08:56:22.266: Failed to connect to proxy
(webcord:26382): libnotify-WARNING **: 08:56:22.273: Failed to connect to proxy
(webcord:26382): libnotify-WARNING **: 08:56:22.275: Failed to connect to proxy
[WebSocket] Listening at port 6463.
close object 1: Invalid argument
close object 3: Invalid argument
close object 4: Invalid argument
[WARNING] https://discord.com/app: Permission check to geolocation denied.
[WARNING] https://discord.com/app: Permission check to geolocation denied.
close object 1: Invalid argument
close object 2: Invalid argument
close object 4: Invalid argument
[WC_6:5] crashed
[WARNING] https://discord.com/channels/@me: Permission check to geolocation denied.
[WARNING] https://discord.com/channels/@me: Permission check to geolocation denied.
close object 2: Invalid argument
close object 3: Invalid argument
close object 4: Invalid argument
[WC_6:5] crashed
[WARNING] https://discord.com/channels/@me: Permission check to geolocation denied.
[WARNING] https://discord.com/channels/@me: Permission check to geolocation denied.
Thanks for taking a look. :)
Web context crashes, not my fault, it's bug with Electron/Chromium or at worst: GPU driver. Modern builds of WebCord should've auto-restart with software rendering to try running under conditions that won't be related to GPU driver. But if that also doesn't help, then ¯\_(ツ)_/¯.
Thank you for the super fast response! I haven't used WebCord until super recently (awesome project). Is there a folder or some place I can go to start hacking at electron or should I install from source to play with it? No rush to respond and thanks again!
Switching Electron is probably as simple as getting Electron from GitHub, getting current app.asar from where WebCord has it placed when installed and place it relatively to electron binary to match the WebCord's structure (resources/ folder).
That's at least for Linux in general, Arch has it a bit easier as they provide electron as a package, hence you usually only need to tweak it during the build or in the script that runs it.
I have tried a few times to install different versions of electron, but I have failed to work out how to do it to be honest. I am clearly not a unix expert! If anyone else has managed it, please do share the steps you were able to follow please!
I have noticed with recent updates to the Pi OS the problem is less frequent, you get a minutue or so now before each reload.
This weekend I am going to try an older build of the RasberryPi OS, pre the electron updates, and then see if WebCord runs then. If it does I'll post here which build I used and then just disable updates and we should be good to go! Lets see!