Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searchlight causes gnome to crash if used first after boot #82

Open
kugelvlitz opened this issue May 6, 2024 · 9 comments
Open

Searchlight causes gnome to crash if used first after boot #82

kugelvlitz opened this issue May 6, 2024 · 9 comments

Comments

@kugelvlitz
Copy link

If I use search-light after logging in into a new session, right after boot, Gnome will crash and send me back to GDM. If I log back in all extensions will be disabled.

This only occurs in that specific scenario, otherwise it works fine.

I'm using Gnome 46 on ArchLinux, although this bug also occurred to me in 45.

@muerwre
Copy link

muerwre commented May 28, 2024

Experiencing the same on manjaro. Probable journalctl /usr/bin/gnome-shel output:

clutter_actor_set_mapped: assertion '!CLUTTER_ACTOR_IN_MAP_UNMAP (self)' failed
**
Clutter:ERROR:../mutter/clutter/clutter/clutter-actor.c:1946:clutter_actor_real_unrealize: assertion failed: (!clutter_actor_is_mapped (self))
Bail out! Clutter:ERROR:../mutter/clutter/clutter/clutter-actor.c:1946:clutter_actor_real_unrealize: assertion failed: (!clutter_actor_is_mapped (self))
== Stack trace for context 0x643fdb18e8e0 ==
   643fdb25a1b0 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:665 (3a11820ee9c0 @ 60)
   643fdb25a120 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:450 (3a11820ee600 @ 28)
  643fdb25a090 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:908 (3a11820eed80 @ 284)
  643fdb25a000 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:665 (3a11820ee9c0 @ 60)
  643fdb259f70 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:450 (3a11820ee600 @ 28)
  643fdb259ee8 i   file:///home/user/.local/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:937 (3a11820eee70 @ 17)
  643fdb259e58 i   resource:///org/gnome/shell/ui/init.js:21 (1969b2e70bf0 @ 48)

@muerwre
Copy link

muerwre commented May 28, 2024

It is caused by this string:

665 | this._entry.get_parent().remove_child(this._entry);

I can see at string no 633 that this._entry.get_parent() should be checked before calling remove_child on it?

633 |    if (this._entry.get_parent()) {
634 |       this._entry.get_parent().remove_child(this._entry);
635 |    }

icedman added a commit that referenced this issue Jun 15, 2024
@icedman
Copy link
Owner

icedman commented Jun 15, 2024

Added parent check (although I wasn't able to recreate this crash)

@sqwxl
Copy link

sqwxl commented Aug 7, 2024

Can confirm I'm seeing the same on version 27 of this extension with Fedora 40 & Gnome 46.2
Some more log context, in this example the crash happened when starting Slack a few seconds after login, but the bug appears to happen regardless of the application launched:

Aug 07 08:45:24 blackbox gnome-shell[10030]: invalid (NULL) pointer instance
Aug 07 08:45:24 blackbox gnome-shell[10030]: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
# ...
Aug 07 08:45:24 blackbox gnome-shell[10030]: invalid (NULL) pointer instance
Aug 07 08:45:24 blackbox gnome-shell[10030]: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
# ...
Aug 07 08:45:30 blackbox systemd[9587]: Started app-gnome-com.slack.Slack-12390.scope - Application launched by gnome-shell.
Aug 07 08:45:31 blackbox systemd[9587]: Started app-flatpak-com.slack.Slack-12390.scope.
# ...
Aug 07 08:45:32 blackbox gnome-keyring-daemon[9654]: asked to register item /org/freedesktop/secrets/collection/login/3, but it's already registered
Aug 07 08:45:32 blackbox com.slack.Slack.desktop[12559]: LaunchProcess: failed to execvp:
Aug 07 08:45:32 blackbox com.slack.Slack.desktop[12559]: xdg-settings
Aug 07 08:45:32 blackbox gnome-shell[10030]: clutter_actor_set_mapped: assertion '!CLUTTER_ACTOR_IN_MAP_UNMAP (self)' failed
Aug 07 08:45:32 blackbox gnome-shell[10030]: **
Aug 07 08:45:32 blackbox gnome-shell[10030]: Clutter:ERROR:../clutter/clutter/clutter-actor.c:1946:clutter_actor_real_unrealize: assertion failed: (!clutter_actor_is_mapped (self))
Aug 07 08:45:32 blackbox gnome-shell[10030]: Bail out! Clutter:ERROR:../clutter/clutter/clutter-actor.c:1946:clutter_actor_real_unrealize: assertion failed: (!clutter_actor_is_mapped (self))
Aug 07 08:45:32 blackbox gnome-shell[10030]: == Stack trace for context 0x55773b539190 ==
Aug 07 08:45:32 blackbox gnome-shell[10030]: #0   55773b600b20 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:459 (37551311aba0 @ 60)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #1   55773b600a90 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:272 (37551311a830 @ 28)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #2   55773b600a00 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:673 (37551311af60 @ 284)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #3   55773b600970 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:459 (37551311aba0 @ 60)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #4   55773b6008e0 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:272 (37551311a830 @ 28)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #5   55773b600858 i   file:///usr/share/gnome-shell/extensions/search-light@icedman.github.com/extension.js:702 (3755131280b0 @ 17)
Aug 07 08:45:32 blackbox gnome-shell[10030]: #6   55773b6007c8 i   resource:///org/gnome/shell/ui/init.js:21 (1b3ecf770bf0 @ 48)
Aug 07 08:45:32 blackbox audit[10030]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=10030 comm="gnome-shell" exe="/usr/bin/gnome-shell" sig=6 res=1
Aug 07 08:45:32 blackbox systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
Aug 07 08:45:32 blackbox audit: BPF prog-id=84 op=LOAD
Aug 07 08:45:32 blackbox audit: BPF prog-id=85 op=LOAD
Aug 07 08:45:32 blackbox audit: BPF prog-id=86 op=LOAD
Aug 07 08:45:32 blackbox systemd[1]: Started systemd-coredump@0-12606-0.service - Process Core Dump (PID 12606/UID 0).
Aug 07 08:45:32 blackbox audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-12606-0 comm="systemd" exe="/usr/lib/systemd/systemd" h>
Aug 07 08:45:34 blackbox systemd-coredump[12608]: Process 10030 (gnome-shell) of user 1000 dumped core.

@muerwre
Copy link

muerwre commented Sep 1, 2024

Yeah, still facing issue, also with slack most of the times, when launching it after a few seconds after login.

@nickk19
Copy link

nickk19 commented Nov 28, 2024

Yes. I'm still experiencing this even on a fresh Fedora 41 install with GNOME 47 and Search Light v.31.

I noticed it only happens if the user hasn't opened any app yet after logging in. This means that if the user opens any app (even Settings from the quick settings menu) they are free to use the extension without it crashing GNOME.

@muerwre
Copy link

muerwre commented Nov 30, 2024

@nickk19 can you search output of journalctl /usr/bin/gnome-shell for any warnings related to search-light?

@nickk19
Copy link

nickk19 commented Dec 1, 2024

@muerwre yes, this is the output since I opened search-light with my accelerator:

dic 01 12:55:44 orion gnome-shell[5298]: Grabbed <Super>Return
dic 01 12:55:44 orion gnome-shell[5298]: Grabbed <Control><Super>Space
dic 01 12:55:45 orion gnome-shell[5298]: GNOME Shell started at Sun Dec 01 2024 12:55:43 GMT+0100 (Central European Standard Time)
dic 01 12:55:45 orion gnome-shell[5298]: Registering session with GDM
dic 01 12:55:45 orion gnome-shell[4575]: Connection to xwayland lost
dic 01 12:55:45 orion gnome-shell[4575]: Xwayland terminated, exiting since it was mandatory
dic 01 12:55:45 orion gnome-shell[4575]: JS ERROR: Gio.IOErrorEnum: Xwayland exited unexpectedly
                                         @resource:///org/gnome/shell/ui/init.js:21:20
dic 01 12:55:45 orion gnome-shell[4575]: Execution of main.js threw exception: Module resource:///org/gnome/shell/ui/init.js threw an excep>
dic 01 12:55:47 orion gnome-shell[5298]: No listeners 123
dic 01 12:55:50 orion gnome-shell[5298]: clutter_actor_set_mapped: assertion '!CLUTTER_ACTOR_IN_MAP_UNMAP (self)' failed
dic 01 12:55:50 orion audit[5298]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 >
dic 01 12:55:50 orion gnome-shell[5298]: **
dic 01 12:55:50 orion gnome-shell[5298]: Clutter:ERROR:../clutter/clutter/clutter-actor.c:1990:clutter_actor_real_unrealize: assertion fail>
dic 01 12:55:50 orion gnome-shell[5298]: Bail out! Clutter:ERROR:../clutter/clutter/clutter-actor.c:1990:clutter_actor_real_unrealize: asse>
dic 01 12:55:50 orion gnome-shell[5298]: == Stack trace for context 0x564055a1c6e0 ==
dic 01 12:55:50 orion gnome-shell[5298]: #0   564055b2efe0 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #1   564055b2ef50 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #2   564055b2eec0 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #3   564055b2ee30 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #4   564055b2eda0 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #5   564055b2ed18 i   file:///home/nico/.local/share/gnome-shell/extensions/search-light@icedman.g>
dic 01 12:55:50 orion gnome-shell[5298]: #6   564055b2ec88 i   resource:///org/gnome/shell/ui/init.js:21 (1158dd70c90 @ 48)

@muerwre
Copy link

muerwre commented Dec 6, 2024

Seems like you cut important debug info when copying, try to do it like that: journalctl /usr/bin/gnome-shell | less

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants