Skip to content

Crash on sleep #27

Closed
Closed

Description

@romainreignier

Hi,
Thanks for this AppImage of Ghostty allowing us, users of old distributions, to use Ghostty.
I am on Kubuntu 22.04 and when I close the lid of my laptop, the computer goes into sleep but when I open the lid, Ghostty has crashed and returned error code 135.

Here is the logs:

$ GDK_BACKEND=x11 ./Ghostty-1.1.0-x86_64.AppImage 
info: ghostty version=1.1.0
info: ghostty build optimize=ReleaseFast
info: runtime=apprt.Runtime.gtk
info: font_backend=font.main.Backend.fontconfig_freetype
info: dependency harfbuzz=8.3.0
info: dependency fontconfig=21500
info: renderer=renderer.OpenGL
info: libxev backend=main.Backend.io_uring
info(os): setlocale from env result=LC_CTYPE=en_US.UTF-8;LC_NUMERIC=fr_FR.UTF-8;LC_TIME=fr_FR.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=fr_FR.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=fr_FR.UTF-8;LC_ADDRESS=fr_FR.UTF-8;LC_TELEPHONE=fr_FR.UTF-8;LC_MEASUREMENT=fr_FR.UTF-8;LC_IDENTIFICATION=fr_FR.UTF-8
info(gtk): GTK version build=4.14.2 runtime=4.14.2
info: reading configuration file path=/home/rre/.config/ghostty/config
info(config): default shell source=env value=/bin/bash
warning(gtk): setting GDK_DEBUG=gl-disable-gles,gl-no-fractional,vulkan-disable
warning(gtk): setting GDK_DISABLE=
warning(gtk): setting GSK_RENDERER=opengl
info(gtk): libadwaita version build=1.5.0 runtime=1.5.0
info(grid): loaded OpenGL 4.6
info(io_exec): found Ghostty resources dir: /tmp/.mount_GhosttjEMJja/usr/share/ghostty
info(io_exec): shell integration automatically injected shell=termio.shell_integration.Shell.bash
warning(gtk): unimplemented action=apprt.action.Action.Key.cell_size
info(io_exec): started subcommand path=/bin/sh pid=1101529
info(io_exec): subcommand cgroup=-
info(grid): reallocating GPU buffer old=0 new=8
info(grid): reallocating GPU buffer old=8 new=20
warning(stream): unimplemented OSC callback: terminal.osc.Command{ .end_of_command = terminal.osc.Command.Command__struct_95798{ .exit_code = 0 } }
warning(stream): unimplemented OSC command: end_of_command
info(grid): reallocating GPU buffer old=20 new=38
info(grid): loaded OpenGL 4.6
info(io_exec): found Ghostty resources dir: /tmp/.mount_GhosttjEMJja/usr/share/ghostty
info(io_exec): shell integration automatically injected shell=termio.shell_integration.Shell.bash
warning(gtk): unimplemented action=apprt.action.Action.Key.cell_size
warning(gtk): unimplemented action=apprt.action.Action.Key.cell_size
info(io_exec): started subcommand path=/bin/sh pid=1101680
info(io_exec): subcommand cgroup=-
info(grid): reallocating GPU buffer old=0 new=8
info(io_exec): pty fd closed, read thread exiting
info(surface): surface closed addr=55557fc75550
Bus error (core dumped)

As you can see, I have set the GDK_BACKENDenvironment variable to x11 from #12 and #18.

Activity

  1. added
    bug
    help wanted
    on Feb 12, 2025
  2. Samueru-sama commented on Feb 13, 2025

    @Samueru-sama
    Member

    Do you have the crash if you use this appimage?

  3. romainreignier commented on Feb 13, 2025

    @romainreignier
    Author

    I still have crashes with this version but not after each sleep. It even crashed while starting htop.
    But always with the return code 135.

  4. psadi commented on Feb 13, 2025

    @psadi
    Collaborator

    try to run the above version without GDK_BACKEND and let us know, also try if any logs are being captured

  5. romainreignier commented on Feb 13, 2025

    @romainreignier
    Author

    My first tries were without the GDK_BACKEND=x11. I have also tried with it and I have no new crash so far. I will keep testing and get you updated. Thanks.

  6. psadi commented on Feb 13, 2025

    @psadi
    Collaborator

    Thanks for the update, Please look out for releases (planned shortly). New patches are being made to keep the appimage as compatible and poratable as possible for all linux distros.

  7. Samueru-sama commented on Feb 14, 2025

    @Samueru-sama
    Member
  8. romainreignier commented on Feb 14, 2025

    @romainreignier
    Author

    Hi still have crash with the AppImage from yesterday. But I am on X11 (KDE on Ubuntu 22.04).
    I will try this new version.

  9. psadi commented on Feb 16, 2025

    @psadi
    Collaborator

    Hi @romainreignier - Do you still face the issue ?

  10. Samueru-sama commented on Feb 16, 2025

    @Samueru-sama
    Member

    @romainreignier Please let us know if you have the bug, because it seems this is way deeper than we thought and looks like to be a bug with the appimage runtime.

    We can actually fix it, but we need to know if you still have it.

  11. romainreignier commented on Feb 16, 2025

    @romainreignier
    Author

    Hi, I am on holidays for a week, I will test the laetst version next week and report it.

  12. Samueru-sama commented on Feb 17, 2025

    @Samueru-sama
    Member

    Hi, I am on holidays for a week, I will test the laetst version next week and report it.

    Leaving this here for when you try.

    If the crash still happens, then:

    • Extracting the AppImage with --appimage-extract

    • Run the ./squashfs-root/AppRun

    • Do you still have the crash on sleep?

  13. romainreignier commented on Feb 26, 2025

    @romainreignier
    Author

    Hi, I have tried the v1.1.2+1 version yesterday and this morning, when resuming the PC, the App had crashed.

    I have extracted the AppImage to try, I will keep your updated.

  14. psadi commented on Feb 26, 2025

    @psadi
    Collaborator

    @romainreignier - thanks for letting us know, additionally please test this build and let us know if the issue still persists

  15. romainreignier commented on Feb 27, 2025

    @romainreignier
    Author

    I have tried the mentioned build and this morning when I woke up my PC, Ghostty did not crash.
    This is promising, I will keep testing it.
    Thanks for the efforts.

  16. Samueru-sama commented on Feb 27, 2025

    @Samueru-sama
    Member

    I have tried the mentioned build and this morning when I woke up my PC, Ghostty did not crash. This is promising, I will keep testing it. Thanks for the efforts.

    Please I need to know if the build that crashes on sleep does dot crash if you extract and run the appimage directly.

    Because if true you found a very serious bug on the type2-runtime and I will raise it personally to the appimage maintainers.

  17. psadi commented on Feb 27, 2025

    @psadi
    Collaborator

    I have tried the mentioned build and this morning

    A new stable release has been released, you could test/daily-drive it and report back on any anomalies.

  18. romainreignier commented on Mar 3, 2025

    @romainreignier
    Author

    I can confirm that the released version v1.1.2+1 version crash when using with ./Ghostty-1.1.2-x86_64.AppImage but has not crashed yet when extracted.

  19. psadi commented on Mar 3, 2025

    @psadi
    Collaborator

    Hi @romainreignier -Additionally, we requested you to test 1.1.2+2 version with possible combinations as this version has a lot of bugfixes.

    Please share us the outcome.

  20. Samueru-sama commented on Mar 3, 2025

    @Samueru-sama
    Member

    @romainreignier Thanks for letting me know that the AppImage that crashes does not crash when extracted, that confirms my suspition that the type2-runtime has quite a serious bug.

    99.99% of bugs in AppImages are an issue with the payload (what's inside of it), this is not such case.

    Thank you once again, I was on the phone about to sleep and noticed the email and decided to reply at once. I will be raising this to the type2-runtime repo since I had already seen a previous weird report in another repo related to sleep and had the suspicion from the beginning.

    We switched to an alternative runtime that does not seem to have this issue since you already reported no crashes with the CI build that uses that runtime and it has other advantages on top, so this issue is pretty much solved.

  21. romainreignier commented on Mar 4, 2025

    @romainreignier
    Author

    Hi @romainreignier -Additionally, we requested you to test 1.1.2+2 version with possible combinations as this version has a lot of bugfixes.

    Please share us the outcome.

    I have been using this version for several days and I have not encountered any crash. I could even use the meld tool that failed to crash on previous versions with this error:

    $ meld
    /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR' not found (required by /tmp/.mount_GhosttpAKBEh/shared/lib/gio/modules/libdconfsettings.so)
    Failed to load module: /tmp/.mount_GhosttpAKBEh/shared/lib/gio/modules/libdconfsettings.so
    **
    Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/breeze/status/16/image-missing.svg: Unable to load image-loading module: libpixbufloader_svg.so: libpixbufloader_svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
    Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/breeze/status/16/image-missing.svg: Unable to load image-loading module: libpixbufloader_svg.so: libpixbufloader_svg.so: cannot open shared object file: No such file or directory (gdk-pixbuf-error-quark, 5)
    Aborted (core dumped)
    
  22. Samueru-sama commented on Mar 4, 2025

    @Samueru-sama
    Member

    Yeah that crash you were having was this which was fixed in a separate PR.

    In your case meld was trying to use the libpixbufloader_svg.so from the AppImage due to the GDK_PIXBUF_MODULEDIR env variable propagating to child processes. Fixing that was quite tricky lol

  23. psadi commented on Mar 4, 2025

    @psadi
    Collaborator

    @romainreignier thanks for the confirmation. Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions