desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Zen reliably crashes on my laptop when I resume from suspend

Open akkartik opened this issue 1 year ago • 18 comments

Captchas

  • [X] I have read the instructions.
  • [X] I have searched existing issues and avoided creating duplicates.
  • [X] I am not filing an enhancement request.

What happened?

I have Zen Browser running fine on my laptop. I close the lid to suspend my laptop. I wait for it to go to sleep then open the lid to resume from shutdown. Zen crashes within a few seconds, or the first time I try to interact with its window.

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.2-b.5

What platform are you seeing the problem on?

Linux

Relevant log output

I don't know where to look for logs, but when I run Zen from the terminal I see just the following output on resume:


Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=34.0139) Exiting due to channel error.
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=34.498) Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
zsh: bus error (core dumped)  ./browser/zen-x86_64.AppImage

akkartik avatar Dec 31 '24 02:12 akkartik

I found 1 similar issue that might be helpful:

  • No solution found in the comments.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Dec 31 '24 02:12 dosubot[bot]

Could you try disabling this? https://support.mozilla.org/en-US/questions/994164

mr-cheffy avatar Jan 01 '25 15:01 mr-cheffy

Thanks for the suggestion, but I'm afraid that didn't improve matters..

akkartik avatar Jan 01 '25 18:01 akkartik

I'm also experiencing this on the latest Zen. If there's any telemetry I can gather that might help diagnose the issue, absolutely let me know.

fancypantalons avatar Jan 07 '25 00:01 fancypantalons

This looks like it could be the same issue as in #3732

JohnnyWulgaru avatar Jan 21 '25 12:01 JohnnyWulgaru

I am also experiencing a similar issue and noticing after latest update crashes after a few seconds usage after suspend. these are some of the logs:

Journalctl logs


[email protected] Unable to find file for pid 69900 expected at "kcrash-metadata/zen.09414c8288d248e696023830dfd79826.69900.ini"
Nothing handled the dump :O
abrtd.service Executable '/zen' doesn't belong to any package and ProcessUnpackaged is set to 'no'
abrtd.service 'post-create' on '/var/spool/abrt/ccpp-2025-01-22-23:37:34.307795-69900' exited with 1
abrtd.service Deleting problem directory '/var/spool/abrt/ccpp-2025-01-22-23:37:34.307795-69900'
[email protected] Process 66698 (zen) of user 1000 dumped core.
........
Stack trace of thread 81306:
#0  0x00007f47795990f4 __pthread_kill_implementation (libc.so.6 + 0x730f4)
#1  0x00007f477953ffde raise (libc.so.6 + 0x19fde)
#2  0x00007f47737c94f3 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64

manu68-debugs avatar Jan 22 '25 19:01 manu68-debugs

I am also facing the same issue in linux (Ubuntu 22).

nijin26 avatar Jan 23 '25 16:01 nijin26

Is it only on the appimage version?

mr-cheffy avatar Jan 26 '25 13:01 mr-cheffy

I've been using the AppImage version only so far. I'll switch to the tar ball version for the next few days and report back.

JohnnyWulgaru avatar Jan 26 '25 14:01 JohnnyWulgaru

I also have this problem

scabidi avatar Jan 26 '25 15:01 scabidi

This looks like it could be the same issue as in #3732

It is

scabidi avatar Jan 26 '25 15:01 scabidi

This indeed looks like an AppImage issue. I've switched to the tar.bz2 version of 1.7.2b and didn't have a single crash even though my laptop went to sleep many times.

However my application icon is now a Wayland icon instead. 👉 #3578 (Using KDE as DM, Gnome seems to be unaffected)

JohnnyWulgaru avatar Jan 28 '25 09:01 JohnnyWulgaru

This indeed looks like an AppImage issue. I've switched to the tar.bz2 version of 1.7.2b and didn't have a single crash even though my laptop went to sleep many times.

However my application icon is now a Wayland icon instead. 👉 #3578 (Using KDE as DM, Gnome seems to be unaffected)

Looks like this fixed the problem moving to AUR zen-browser-bin

scabidi avatar Jan 29 '25 22:01 scabidi

Is it only on the appimage version?

Ys. Now I've moved to Flatpak version of Zen. Now there is no issues.

nijin26 avatar Jan 30 '25 09:01 nijin26

Please fix this issue with the AppImage. I've been living with it, but now that Restore Session is broken too, this issue is a showstopper for using Zen. I can't use a browser where I will lose my session every time my computer goes to sleep.

siraht avatar Feb 03 '25 23:02 siraht

I'm experiencing the same issue (Zen 1.7.4b, AppImage). For now, disabling Wayland (env MOZ_ENABLE_WAYLAND=0 ./ZenBrowser.AppImage %u) serves as a simple workaround.

Edit: Never mind, it still crashes.

NoelClick avatar Feb 07 '25 11:02 NoelClick

This is likely related to this issue.

It can be fixed, but I need a confirmation first, so please try the following:

  • Download or take the existing Zen AppImage and run the appimage in the terminal with --appimage-extractflag this will make a squashfs-root directory with the contents of the appimage extracted.

  • Delete the AppImage

  • Then download appimagetool and this runtime, the file you have to download is named uruntime-appimage-squashfs-lite-xxx with the last 3 "x" being your cpu arch, likely x86_64 for most of you.

  • now use the appimagetool to turn the squashfs-root directory back into an appimage with the different runtime, that is:

./appimagetool-x86_64.AppImage ./squashfs-root --runtime-file ./uruntime-appimage-squashfs-lite-x86_64   

  • This will make a Zen_Browser-x86_64.AppImage appimage, now test this and let me know if you still have the crash.

Samueru-sama avatar Mar 06 '25 08:03 Samueru-sama

This is likely related to this issue.

It can be fixed, but I need a confirmation first, so please try the following:

* Download or take the existing Zen AppImage and run the appimage in the terminal with `--appimage-extract`flag  this will make a `squashfs-root` directory with the contents of the appimage extracted.

* Delete the AppImage

* Then download [appimagetool](https://github.com/AppImage/appimagetool/releases/tag/continuous) and [this runtime](https://github.com/VHSgunzo/uruntime/releases/tag/v0.1.8), the file you have to download is named **uruntime-appimage-squashfs-lite-xxx** with the last 3 "x" being your cpu arch, likely x86_64 for most of you.

* now  use the appimagetool to turn the `squashfs-root` directory back into an appimage with the different runtime, that is:
./appimagetool-x86_64.AppImage ./squashfs-root --runtime-file ./uruntime-appimage-squashfs-lite-x86_64   
* This will make a `Zen_Browser-x86_64.AppImage` appimage, now test this and let me know if you still have the crash.

After following this, Zen has stayed open, after many times suspending and waking, without any crashes of the app or any tabs. Tabs and, eventually, the whole app, used to crash for me, but this seems to have fixed the problem on my system.

pixlxip avatar Mar 07 '25 02:03 pixlxip