After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745070 - indexing-notification: Crash caused by miners-changed emission after main window is destroyed
indexing-notification: Crash caused by miners-changed emission after main win...
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
3.14.x
Other All
: Normal normal
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-02-24 09:09 UTC by Debarshi Ray
Modified: 2015-02-25 08:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
indexing-notification: Fix the lifetime of the miners-changed handler (1.88 KB, patch)
2015-02-24 09:10 UTC, Debarshi Ray
committed Details | Review

Description Debarshi Ray 2015-02-24 09:09:16 UTC
If you close the main window soon after launching the application, you get a crash like this:

Program received signal SIGSEGV, Segmentation fault.
g_type_check_instance_cast (type_instance=0xaaaaaaaaaaaaaaaa, 
    iface_type=9933376) at gtype.c:4055
4055	      if (type_instance->g_class)
(gdb) bt
  • #0 g_type_check_instance_cast
    at gtype.c line 4055
  • #1 photos_indexing_notification_destroy
    at photos-indexing-notification.c line 86
  • #2 photos_indexing_notification_check_notification
    at photos-indexing-notification.c line 226
  • #3 _g_closure_invoke_va
    at gclosure.c line 831
  • #4 g_signal_emit_valist
    at gsignal.c line 3214
  • #5 g_signal_emit
    at gsignal.c line 3361
  • #6 photos_application_refresh_db
    at photos-application.c line 412
  • #7 g_simple_async_result_complete
    at gsimpleasyncresult.c line 763
  • #8 reply_cb
    at gdbusproxy.c line 2623
  • #9 g_simple_async_result_complete
    at gsimpleasyncresult.c line 763
  • #10 g_dbus_connection_call_done
    at gdbusconnection.c line 5502
  • #11 g_simple_async_result_complete
    at gsimpleasyncresult.c line 763
  • #12 complete_in_idle_cb
    at gsimpleasyncresult.c line 775
  • #13 g_main_dispatch
    at gmain.c line 3122
  • #14 g_main_context_dispatch
    at gmain.c line 3737
  • #15 g_main_context_iterate
  • #16 g_main_context_iteration
    at gmain.c line 3869
  • #17 g_application_run
    at gapplication.c line 2327
  • #18 main
    at photos-main.c line 60

Comment 1 Debarshi Ray 2015-02-24 09:10:53 UTC
Created attachment 297741 [details] [review]
indexing-notification: Fix the lifetime of the miners-changed handler