Repository navigation
Closed
Labels
Description
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.
Reacted by Camille Moatti
Activity
Samueru-sama commentedon Feb 13, 2025
Do you have the crash if you use this appimage?
romainreignier commentedon Feb 13, 2025
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.
psadi commentedon Feb 13, 2025
try to run the above version without
GDK_BACKENDand let us know, also try if any logs are being capturedromainreignier commentedon Feb 13, 2025
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.psadi commentedon Feb 13, 2025
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.
Samueru-sama commentedon Feb 14, 2025
@romainreignier Can you let me know if you still crash on wayland with this one?
https://github.com/Samueru-sama/ghostty-appimage/actions/runs/13329958116
romainreignier commentedon Feb 14, 2025
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.
psadi commentedon Feb 16, 2025
Hi @romainreignier - Do you still face the issue ?
Samueru-sama commentedon Feb 16, 2025
@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.
romainreignier commentedon Feb 16, 2025
Hi, I am on holidays for a week, I will test the laetst version next week and report it.
Samueru-sama commentedon Feb 17, 2025
Leaving this here for when you try.
If the crash still happens, then:
Extracting the AppImage with
--appimage-extractRun the
./squashfs-root/AppRunDo you still have the crash on sleep?
romainreignier commentedon Feb 26, 2025
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.
psadi commentedon Feb 26, 2025
@romainreignier - thanks for letting us know, additionally please test this build and let us know if the issue still persists
romainreignier commentedon Feb 27, 2025
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.
Samueru-sama commentedon Feb 27, 2025
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.
psadi commentedon Feb 27, 2025
A new stable release has been released, you could test/daily-drive it and report back on any anomalies.
romainreignier commentedon Mar 3, 2025
I can confirm that the released version v1.1.2+1 version crash when using with
./Ghostty-1.1.2-x86_64.AppImagebut has not crashed yet when extracted.psadi commentedon Mar 3, 2025
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.
Samueru-sama commentedon Mar 3, 2025
@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.
romainreignier commentedon Mar 4, 2025
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:
Samueru-sama commentedon Mar 4, 2025
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.sofrom the AppImage due to theGDK_PIXBUF_MODULEDIRenv variable propagating to child processes. Fixing that was quite tricky lolpsadi commentedon Mar 4, 2025
@romainreignier thanks for the confirmation. Closing the issue.