{"action":"created","issue":{"url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/692","repository_url":"https://api.github.com/repos/mate-desktop/mate-panel","labels_url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/692/comments","events_url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/692/events","html_url":"https://github.com/mate-desktop/mate-panel/issues/692","id":282467918,"number":692,"title":"notification-area-applet segfault","user":{"login":"supermaz","id":25500057,"avatar_url":"https://avatars2.githubusercontent.com/u/25500057?v=4","gravatar_id":"","url":"https://api.github.com/users/supermaz","html_url":"https://github.com/supermaz","followers_url":"https://api.github.com/users/supermaz/followers","following_url":"https://api.github.com/users/supermaz/following{/other_user}","gists_url":"https://api.github.com/users/supermaz/gists{/gist_id}","starred_url":"https://api.github.com/users/supermaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermaz/subscriptions","organizations_url":"https://api.github.com/users/supermaz/orgs","repos_url":"https://api.github.com/users/supermaz/repos","events_url":"https://api.github.com/users/supermaz/events{/privacy}","received_events_url":"https://api.github.com/users/supermaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-15T15:48:17Z","updated_at":"2017-12-19T22:46:10Z","closed_at":null,"author_association":"NONE","body":"#### Expected behaviour\r\nnotification-area-applet can be added to panel\r\n\r\n#### Actual behaviour\r\ncrashes when added to panel\r\n\r\n#### Steps to reproduce the behaviour\r\nadd to panel\r\n\r\n#### MATE general version\r\n1.18\r\n\r\n#### Package version\r\n1.18.3\r\n\r\n#### Linux Distribution\r\nGentoo\r\n\r\nI just did a bit of debugging and the segfault is in line 226 in file applets/notification_area/status-notifier/sn-host-v0.c\r\n\r\nThe items from line 224 are actually 0 here.\r\n\r\nI made a small patch which at least lets me add the notification-area to my panel:\r\n\r\n```\r\ndiff -uNr mate-panel-1.18.3/applets/notification_area/status-notifier/sn-host-v0.c applets/notification_area/status-notifier/sn-host-v0.c\r\n--- mate-panel-1.18.3/applets/notification_area/status-notifier/sn-host-v0.c    2017-03-31 12:14:34.000000000 +0200\r\n+++ mate-panel-1.18.3/applets/notification_area/status-notifier/sn-host-v0.c    2017-12-15 16:22:20.259528200 +0100\r\n@@ -223,8 +223,10 @@\r\n\r\n   items = sn_watcher_v0_gen_dup_registered_items (v0->watcher);\r\n\r\n-  for (i = 0; items[i] != NULL; i++)\r\n-    add_registered_item (v0, items[i]);\r\n+  if (items) {\r\n+    for (i = 0; items[i] != NULL; i++)\r\n+      add_registered_item (v0, items[i]);\r\n+  }\r\n\r\n   g_strfreev (items);\r\n }\r\n```\r\n\r\nBut I'm not sure if this is a valid fix or if items really should be 0 at any time."},"comment":{"url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/comments/352909942","html_url":"https://github.com/mate-desktop/mate-panel/issues/692#issuecomment-352909942","issue_url":"https://api.github.com/repos/mate-desktop/mate-panel/issues/692","id":352909942,"user":{"login":"joakim-tjernlund","id":13720190,"avatar_url":"https://avatars1.githubusercontent.com/u/13720190?v=4","gravatar_id":"","url":"https://api.github.com/users/joakim-tjernlund","html_url":"https://github.com/joakim-tjernlund","followers_url":"https://api.github.com/users/joakim-tjernlund/followers","following_url":"https://api.github.com/users/joakim-tjernlund/following{/other_user}","gists_url":"https://api.github.com/users/joakim-tjernlund/gists{/gist_id}","starred_url":"https://api.github.com/users/joakim-tjernlund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joakim-tjernlund/subscriptions","organizations_url":"https://api.github.com/users/joakim-tjernlund/orgs","repos_url":"https://api.github.com/users/joakim-tjernlund/repos","events_url":"https://api.github.com/users/joakim-tjernlund/events{/privacy}","received_events_url":"https://api.github.com/users/joakim-tjernlund/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T22:46:10Z","updated_at":"2017-12-19T22:46:10Z","author_association":"NONE","body":"Better backtrace:\r\n```\r\n(gdb) bt\r\n#0  0x00007f2e9e87051c in g_variant_get_child_value (value=0x7ffcb05afdf8, index_=0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gvariant-core.c:985\r\n#1  0x00007f2e9e86ed14 in g_variant_iter_next (iter=iter@entry=0x7ffcb05afcd0, format_string=format_string@entry=0x42b585 \"(ii@ay)\") at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gvariant.c:5636\r\n#2  0x00000000004121b3 in icon_pixmap_new (variant=<optimized out>) at sn-item-v0.c:444\r\n#3  0x0000000000412472 in sn_tooltip_new (variant=<optimized out>) at sn-item-v0.c:511\r\n#4  0x0000000000413c9c in get_all_cb (source_object=<optimized out>, res=<optimized out>, user_data=<optimized out>) at sn-item-v0.c:940\r\n#5  0x00007f2e9edda5e3 in g_task_return_now (task=0x6a99d1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1145\r\n#6  0x00007f2e9eddb0ae in g_task_return (task=0x6a99d0, type=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1203\r\n#7  0x00007f2e9ee0df2a in g_dbus_connection_call_done (source=<optimized out>, result=0x6a9830, user_data=0x6a99d0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gdbusconnection.c:5722\r\n#8  0x00007f2e9edda5e3 in g_task_return_now (task=0x6a9830) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1145\r\n#9  0x00007f2e9edda619 in complete_in_idle_cb (task=0x6a9830) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1159\r\n#10 0x00007f2e9e83378a in g_main_dispatch (context=0x67e990) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3234\r\n#11 g_main_context_dispatch (context=context@entry=0x67e990) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3899\r\n#12 0x00007f2e9e833b30 in g_main_context_iterate (context=0x67e990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3972\r\n#13 0x00007f2e9e833e52 in g_main_loop_run (loop=0x8b1030) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4168\r\n#14 0x00007f2e9fd45255 in gtk_main () from /usr/lib64/libgtk-3.so.0\r\n#15 0x00007f2ea0a93713 in mate_panel_applet_factory_main (factory_id=factory_id@entry=0x42b164 \"NotificationAreaAppletFactory\", out_process=out_process@entry=1, applet_type=9112576, callback=callback@entry=0x40fa00 <applet_factory>, \r\n    user_data=user_data@entry=0x0) at mate-panel-applet.c:2321\r\n#16 0x000000000040f43e in main (argc=1, argv=0x7ffcb05b0148) at main.c:422\r\n(gdb) bt full\r\n#0  0x00007f2e9e87051c in g_variant_get_child_value (value=0x7ffcb05afdf8, index_=0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gvariant-core.c:985\r\n        child = <optimized out>\r\n        __func__ = \"g_variant_get_child_value\"\r\n#1  0x00007f2e9e86ed14 in g_variant_iter_next (iter=iter@entry=0x7ffcb05afcd0, format_string=format_string@entry=0x42b585 \"(ii@ay)\") at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gvariant.c:5636\r\n        value = <optimized out>\r\n        __func__ = \"g_variant_iter_next\"\r\n#2  0x00000000004121b3 in icon_pixmap_new (variant=<optimized out>) at sn-item-v0.c:444\r\n        array = 0x779200\r\n        iter = {x = {140723267239416, 6986192, 0, 0, 140723267239352, 17501591648142567168, 206158430240, 3579507750, 4, 139837826967600, 140723267239424, 6985776, 139838204608960, 139838200994980, 139838204608960, \r\n            17501591648142567168}}\r\n        width = -1336214024\r\n        height = 32764\r\n        value = 0xf2e224e0677b2700\r\n#3  0x0000000000412472 in sn_tooltip_new (variant=<optimized out>) at sn-item-v0.c:511\r\n        icon_name = 0x7619a0 \" Y\\222\"\r\n        icon_pixmap = 0x7ffcb05afdf8\r\n        title = 0x7f2e8800a830 \"`\\250\"\r\n        text = 0x7ffcb05afe00 \"p\\232\\205\"\r\n        tooltip = 0x8dc1d0\r\n#4  0x0000000000413c9c in get_all_cb (source_object=<optimized out>, res=<optimized out>, user_data=<optimized out>) at sn-item-v0.c:940\r\n        v0 = 0x7619a0\r\n        properties = 0x7f2e8800a830\r\n        error = 0x0\r\n        iter = 0x7f2e88004400\r\n        key = 0x8ef830 \"ToolTip\"\r\n        value = 0x859a70\r\n#5  0x00007f2e9edda5e3 in g_task_return_now (task=0x6a99d1) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1145\r\nNo locals.\r\n#6  0x00007f2e9eddb0ae in g_task_return (task=0x6a99d0, type=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1203\r\n        source = 0x7f2e88001190\r\n#7  0x00007f2e9ee0df2a in g_dbus_connection_call_done (source=<optimized out>, result=0x6a9830, user_data=0x6a99d0) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gdbusconnection.c:5722\r\n        connection = <optimized out>\r\n        task = 0x6a99d0\r\n        state = 0x779400\r\n        error = 0x0\r\n        reply = 0x845de0\r\n        value = <optimized out>\r\n#8  0x00007f2e9edda5e3 in g_task_return_now (task=0x6a9830) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1145\r\nNo locals.\r\n#9  0x00007f2e9edda619 in complete_in_idle_cb (task=0x6a9830) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/gio/gtask.c:1159\r\nNo locals.\r\n#10 0x00007f2e9e83378a in g_main_dispatch (context=0x67e990) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3234\r\n        dispatch = 0x7f2e9e8301c0 <g_idle_dispatch>\r\n        prev_source = 0x0\r\n        was_in_call = 0\r\n        user_data = 0x6a9830\r\n        callback = 0x7f2e9edda610 <complete_in_idle_cb>\r\n        cb_funcs = <optimized out>\r\n        cb_data = 0x7f2e8800a650\r\n        need_destroy = <optimized out>\r\n        source = 0x7f2e88001190\r\n        current = 0x68da80\r\n        i = 0\r\n#11 g_main_context_dispatch (context=context@entry=0x67e990) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3899\r\nNo locals.\r\n#12 0x00007f2e9e833b30 in g_main_context_iterate (context=0x67e990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:3972\r\n        max_priority = 2147483647\r\n        timeout = 25000\r\n        some_ready = 1\r\n        nfds = <optimized out>\r\n        allocated_nfds = 2\r\n        fds = 0x8b1050\r\n#13 0x00007f2e9e833e52 in g_main_loop_run (loop=0x8b1030) at /var/tmp/portage/dev-libs/glib-2.52.3/work/glib-2.52.3/glib/gmain.c:4168\r\n        __func__ = \"g_main_loop_run\"\r\n#14 0x00007f2e9fd45255 in gtk_main () from /usr/lib64/libgtk-3.so.0\r\nNo symbol table info available.\r\n#15 0x00007f2ea0a93713 in mate_panel_applet_factory_main (factory_id=factory_id@entry=0x42b164 \"NotificationAreaAppletFactory\", out_process=out_process@entry=1, applet_type=9112576, callback=callback@entry=0x40fa00 <applet_factory>, \r\n---Type <return> to continue, or q <return> to quit---\r\n    user_data=user_data@entry=0x0) at mate-panel-applet.c:2321\r\n        factory = 0x89bf00\r\n        closure = 0x8b2a00\r\n        __func__ = \"mate_panel_applet_factory_main\"\r\n#16 0x000000000040f43e in main (argc=1, argv=0x7ffcb05b0148) at main.c:422\r\n        context = 0x649f00\r\n        error = 0x0\r\n        retval = <optimized out>\r\n"}}
{"actor":{"display_login":"joakim-tjernlund"}}