deltachat-desktop
deltachat-desktop copied to clipboard
Renderer stops working and shows black screen after some time
In the console I see
Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed
at WebFrameMain.send (node:electron/js2c/browser_init:2:94617)
at WebContents.send (node:electron/js2c/browser_init:2:79767)
at Object.send (/home/user/src/deltachat/deltachat-desktop/src/main/windows/main.ts:172:24)
at AccountManager.<anonymous> (/home/user/src/deltachat/deltachat-desktop/src/main/deltachat/controller.ts:99:18)
Menu is still displayed, I can click File->Settings to get more errors like this.
This I select Quit and it shutdowns cleanly:
523.8s [i]main/index: Starting app shutdown process
523.8s [D]main/index: mainWindow.window.on('close')
523.9s [i]main/state: Saving state to /home/user/.config/DeltaChat/config.json
524.4s [i]main/index: Quitting now. Bye.
This is on Linux with Wayland (river wayland compositor).
There are also errors like this:
[1745749:1216/152348.415128:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[1745749:1216/152350.073640:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
There are a lot of issues like this with Electron apps:
- https://github.com/signalapp/Signal-Desktop/issues/5639 (problems when running Signal Desktop in Docker, solved with
--ipc=host
option) - https://forum.arduino.cc/t/ide-2-2-1-main-window-randomly-goes-blank/1166219/7
- https://github.com/RocketChat/Rocket.Chat.Electron/issues/2302 (closed without resolving)
- https://old.reddit.com/r/Gentoo/comments/yr1ccg/electron_programs_magically_dont_work/
- https://discourse.flathub.org/t/slack-not-starting-any-more/2538 (downgrading Slack from 4.26.1 to 4.25.0 solved the issue for Slack)
- https://answers.microsoft.com/en-us/skype/forum/all/skype-failed-to-start/2b72dafb-3746-42b6-9d5f-de92270f9acd (same error reported for Skype on Windows)
Maybe this is related to Electron running in Xwayland rather than native wayland?
Should we add --enable-features=UseOzonePlatform --ozone-platform-hint=auto
to electron
command so it runs natively on Wayland rather than via Xwayland?
With this option killall -9 Xwayland
does not kill the app, and without it by default apparently it runs via Xorg.
With native wayland mode there are no issues so far.
Does this help? https://unix.stackexchange.com/questions/723481/every-electron-application-blank-screen-when-using-wayland
With native wayland mode there are no issues so far.
in flatpak there is a display scaling issue where it gets blurry, I guess it also exists outside of flatpak but haven't tried personally: https://github.com/flathub/chat.delta.desktop/pull/124#issuecomment-1962575127
-
--enable-features=UseOzonePlatform
- this is the default in newer chromium / electron versions, so not needed anymore -
--ozone-platform-hint=auto
- this might still make sense, there is a pr to make it a default on https://github.com/flathub/chat.delta.desktop/pull/124 (which I included in the 1.44 update pr: https://github.com/flathub/chat.delta.desktop/pull/125)
Also we updated electron recently, does this still happen on the newer versions?
let's reopen this when it happens again