gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.36k stars 293 forks source link

Crash when opening the Keyboard Shortcuts entry from the main menu #2178

Open Lesik opened 1 year ago

Lesik commented 1 year ago

Thanks for this great user-friendly tiling terminal! I use it on NixOS and it works great, except when I open the "Keyboard Shortcuts", it crashes (last two lines appear after clicking):

(tilix:101140): GLib-GObject-CRITICAL **: 14:17:43.347: invalid (NULL) pointer instance

(tilix:101140): GLib-GObject-CRITICAL **: 14:17:43.347: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
2023-07-26T14:17:46.380 [error] app.d:166:main Unexpected exception occurred
2023-07-26T14:17:46.380 [error] app.d:167:main Error: .:2:106 Invalid object type 'GtkShortcutsWindow'

Here's some debug info, let me know if I can provide more:

Versions
    Tilix version: 1.9.5
    VTE version: 0.72
    GTK Version: 3.24.37

Tilix Special Features

(tilix:101379): GLib-GObject-CRITICAL **: 14:18:19.596: invalid (NULL) pointer instance

(tilix:101379): GLib-GObject-CRITICAL **: 14:18:19.596: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
    Notifications enabled=0
    Triggers enabled=0
    Badges enabled=1
waldyrious commented 12 months ago

I was about to report exactly the same issue, but fortunately I happened to notice this one by chance. I think if you changed the title to something more intelligible, like what you say in the text:

when I open the "Keyboard Shortcuts", it crashes

...then it would be more discoverable by other people :)

I would suggest the following title: "Crash when opening the Keyboard Shortcuts entry from the main menu".

Lesik commented 12 months ago

@waldyrious Interesting, I purposely chose this title because if I were to look for an existing issue, I would simply search for the crash message, hopefully ending up here, because I used the crash message as title. But I hope having the message in the issue description is enough to get it indexed in the search nonetheless. I agree it's easier for the maintainers of this repo to keep an overview of the tickets if the title is descriptive.

waldyrious commented 11 months ago

Update: I have been having issues starting Tilix by clicking the icon in the dock (I'm on Ubuntu 22.04), and finally decided to uninstall my nix-sourced Tilix, and instead install it via apt. After doing so, it seems that the crash no longer happens. Since you are also using Nix, that may suggest that something is missing or incorrect in the Nix derivation.

However, it can be that this was a regression introduced in 1.9.5, which is the version on nixpkgs; the version in Ubuntu's repositories is 1.9.4.