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

[abrt] shutter: emission_find(): perl killed by SIGSEGV #573

Closed
martinkg opened this issue Mar 30, 2023 · 12 comments
Closed

[abrt] shutter: emission_find(): perl killed by SIGSEGV #573

martinkg opened this issue Mar 30, 2023 · 12 comments
Labels
wontfix This will not be worked on

Comments

@martinkg
Copy link

Brief summary of issue

launch shutter, it loads its plugins but crashes before opening

Version-Release number of selected component:

shutter-0.99.3-1.fc37

Error output

Additional info:
reporter: libreport-2.17.4
backtrace_rating: 4
cgroup: 0::/user.slice/user-1001.slice/[email protected]/app.slice/app-gnome-shutter-56211.scope
cmdline: /usr/bin/perl /usr/bin/shutter
crash_function: emission_find
executable: /usr/bin/perl
journald_cursor: s=9d64cb5670954881b22b9f4220297b14;i=5db2a;b=3c6d01e917864e2792f418f26bb3aa6e;m=2e6210d96;t=5f7a3f205161a;x=f24280d16dcad998
kernel: 6.2.7-200.fc37.x86_64
rootdir: /
runlevel: N 5
type: CCpp
uid: 1001

Truncated backtrace:
Thread no. 1 (10 frames)
#0 emission_find at ../gobject/gsignal.c:895
#1 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3680
#4 gtk_widget_dispose at ../gtk/gtkwidget.c:12166
#7 gtk_container_remove at ../gtk/gtkcontainer.c:1911
#8 gtk_widget_dispose at ../gtk/gtkwidget.c:12155
#11 XS_Glib__Object_DESTROY at /usr/src/debug/perl-Glib-1.3293-9.fc37.x86_64/GObject.xs:1301
#12 Perl_pp_entersub at /usr/src/debug/perl-5.36.0-492.fc37.x86_64/pp_hot.c:5352
#13 Perl_call_sv at /usr/src/debug/perl-5.36.0-492.fc37.x86_64/perl.c:3057
#14 S_curse at /usr/src/debug/perl-5.36.0-492.fc37.x86_64/sv.c:6983
#15 Perl_sv_clear at /usr/src/debug/perl-5.36.0-492.fc37.x86_64/sv.c:6546

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:

Wayland is used on Fedora 37

Backtrace file

backtrace.txt

@martinkg martinkg added the bug Something isn't working label Mar 30, 2023
@Photon89
Copy link
Member

I think, this is fixed in 0.99.4: #568 Would be great if you could bump the Fedora package to 0.99.4!

@martinkg
Copy link
Author

fixed with 0.99.4
Thanks

@Photon89 Photon89 added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 12, 2023
@martinkg
Copy link
Author

martinkg commented May 3, 2023

Hi,
a user reported the same issue with the current release 0.99.4 again.
See Fedora Bugzilla

@martinkg martinkg reopened this May 3, 2023
@Photon89 Photon89 added bug Something isn't working and removed duplicate This issue or pull request already exists labels Jun 3, 2023
@Photon89
Copy link
Member

Photon89 commented Jun 3, 2023

@martinkg Sorry for late reply. I looked into the backtrace, there is nothing Shutter specific there, as far as I can see. Looks like some problem with underlying libraries. Are there any details regarding how to reproduce this issue? What is Shutter's own output before the crash?

@martinkg
Copy link
Author

@Photon89:
I have received the following information from the user:
info from user

@Photon89
Copy link
Member

@martinkg So, did this crash happen just once after the system update or is it reproducible if Shutter is started via autostart? Looks like this is some race condition as the user already pointed out, probably the panel, which should show the tray icon isn't loaded fast enough. I will try to set up a Fedora Cinnamon VM to reproduce it, otherwise it will be hard to fix...

@Photon89
Copy link
Member

Another idea: I could reproduce Shutter failing to launch on a Cinnamon install. The reason is that Cinnamon is too slow to load the panel, so Shutter exits after failing to create a tray icon. Butt Cinnamon has a timeout setting in its autostart configuration. I set it to 20s and it solved the problem for me.

@martinkg
Copy link
Author

@martinkg So, did this crash happen just once after the system update or is it reproducible if Shutter is started via autostart? Looks like this is some race condition as the user already pointed out, probably the panel, which should show the tray icon isn't loaded fast enough. I will try to set up a Fedora Cinnamon VM to reproduce it, otherwise it will be hard to fix...

answer from the user:
Yes, the SIGSEGV only happened once after the system upgrade, afaicr.

@martinkg
Copy link
Author

Another idea: I could reproduce Shutter failing to launch on a Cinnamon install. The reason is that Cinnamon is too slow to load the panel, so Shutter exits after failing to create a tray icon. Butt Cinnamon has a timeout setting in its autostart configuration. I set it to 20s and it solved the problem for me.

answer from the user:
I can confirm, that setting a timeout fixes the issue. I set mine to 7s and it works.

However, I feel it would be better if Shutter handles this gracefully by either checking the panel is loaded or by retrying using an internal timer. But I'm no expert on these matters and can live with setting a timeout. I did so in the past as well.

@Photon89
Copy link
Member

Many apps that have tray icons suffer from this issue, it looks to me like there is no good solution for it... I tried to find some workaround to check programmatically whether the tray has started, but couldn't find anything so far.

@martinkg
Copy link
Author

thanks for the info.

@Photon89
Copy link
Member

Closing, as there seems to be nothing we can do about the issue.

@Photon89 Photon89 added wontfix This will not be worked on and removed bug Something isn't working labels Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants