Page MenuHomePhabricator

Gengrid Crashes In Jesus
Closed, ResolvedPublic

Description

Seen this crash several times when using Jesus with elementary 1.17.0. Backtrace below, if you want further info I can probably provide it.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6440ec1 in _item_mouse_down_cb (data=0x1231830,
    evas=<optimized out>, obj=obj@entry=0x800003ad20001d67,
    event_info=event_info@entry=0x7fffffffe230) at elm_gengrid.c:786
786	        eo_do(WIDGET(it),
(gdb) bt
#0  0x00007ffff6440ec1 in _item_mouse_down_cb (data=0x1231830,
    evas=<optimized out>, obj=obj@entry=0x800003ad20001d67,
    event_info=event_info@entry=0x7fffffffe230) at elm_gengrid.c:786
#1  0x00007ffff775f924 in _eo_evas_object_cb (data=0xb1ea90,
    eo_obj=0x800003ad20001d67, desc=<optimized out>, event_info=0x7fffffffe230)
    at lib/evas/canvas/evas_callbacks.c:90
#2  0x00007ffff70d396c in _eo_base_event_callback_call (
    obj_id=0x800003ad20001d67, pd=0xfbb600,
    desc=0x7ffff7b2a450 <_EVAS_OBJECT_EVENT_MOUSE_DOWN>,
    event_info=0x7fffffffe230) at lib/eo/eo_base_class.c:709
#3  0x00007ffff70d2833 in eo_event_callback_call (
    desc=0x7ffff7b2a450 <_EVAS_OBJECT_EVENT_MOUSE_DOWN>,
    event_info=event_info@entry=0x7fffffffe230) at lib/eo/eo_base.eo.c:94
#4  0x00007ffff775ff46 in evas_object_event_callback_call (
    eo_obj=0x800003ad20001d67, obj=0xfbb640, type=EVAS_CALLBACK_MOUSE_DOWN,
    event_info=0x7fffffffe230, event_id=186412)
    at lib/evas/canvas/evas_callbacks.c:262
#5  0x00007ffff775fe30 in evas_object_event_callback_call (
    eo_obj=<optimized out>, obj=0x12010d0, type=EVAS_CALLBACK_MOUSE_DOWN,
    event_info=0x7fffffffe230, event_id=186412)
    at lib/evas/canvas/evas_callbacks.c:282
#6  0x00007ffff775fe30 in evas_object_event_callback_call (
    eo_obj=<optimized out>, obj=0x9e1fc0, type=EVAS_CALLBACK_MOUSE_DOWN,
---Type <return> to continue, or q <return> to quit---
    nfo=0x7fffffffe230, event_id=186412) at lib/evas/canvas/evas_callbacks.c:282
#7  0x00007ffff775fe30 in evas_object_event_callback_call (eo_obj=<optimized out>,
    obj=0xd34100, type=EVAS_CALLBACK_MOUSE_DOWN, event_info=0x7fffffffe230,
    event_id=186412) at lib/evas/canvas/evas_callbacks.c:282
#8  0x00007ffff775fe30 in evas_object_event_callback_call (eo_obj=<optimized out>,
    obj=0x9d10e0, type=EVAS_CALLBACK_MOUSE_DOWN, event_info=0x7fffffffe230,
    event_id=186412) at lib/evas/canvas/evas_callbacks.c:282
#9  0x00007ffff77701f5 in _evas_canvas_event_feed_mouse_down (eo_e=0x80000004a0000026,
    e=<optimized out>, b=<optimized out>, flags=<optimized out>,
    timestamp=<optimized out>, data=<optimized out>) at lib/evas/canvas/evas_events.c:1091
#10 0x00007ffff77764c7 in evas_canvas_event_feed_mouse_down (b=b@entry=1,
    flags=flags@entry=EVAS_BUTTON_DOUBLE_CLICK, timestamp=timestamp@entry=2307530,
    data=data@entry=0x0) at ../src/lib/evas/canvas/evas_canvas.eo.c:264
#11 0x00007ffff7779f23 in evas_event_feed_mouse_down (obj=0x80000004a0000026, b=1,
    flags=flags@entry=EVAS_BUTTON_DOUBLE_CLICK, timestamp=2307530, data=data@entry=0x0)
    at ../src/lib/evas/canvas/evas_canvas.eo.c:1008
#12 0x00007fffed01b975 in _ecore_event_evas_mouse_button (e=0x120bdc0, press=ECORE_DOWN,
    faked=<optimized out>) at lib/ecore_input_evas/ecore_input_evas.c:497
#13 0x00007ffff6a72255 in _ecore_call_handler_cb (event=<optimized out>,
    type=<optimized out>, data=<optimized out>, func=<optimized out>)
    at lib/ecore/ecore_private.h:390
#14 _ecore_event_call () at lib/ecore/ecore_events.c:565
#15 0x00007ffff6a7a040 in _ecore_main_loop_iterate_internal (once_only=once_only@entry=0)
    at lib/ecore/ecore_main.c:2386
#16 0x00007ffff6a7a377 in ecore_main_loop_begin () at lib/ecore/ecore_main.c:1297
#17 0x0000000000406325 in elm_main ()
#18 0x0000000000405e3c in main ()
(gdb)
(gdb) frame 0
#0  0x00007ffff6440ec1 in _item_mouse_down_cb (data=0x1231830, evas=<optimized out>,
    obj=obj@entry=0x800003ad20001d67, event_info=event_info@entry=0x7fffffffe230)
    at elm_gengrid.c:786
786	        eo_do(WIDGET(it),
(gdb) list
781
782	   sd->was_selected = it->selected;
783	   it->highlight_cb(it);
784	   if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
785	     {
786	        eo_do(WIDGET(it),
787	              eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED_DOUBLE,
 EO_OBJ(it)),
788	              eo_event_callback_call(ELM_GENGRID_EVENT_ACTIVATED, EO_OBJ(it)));
789	     }
790
(gdb) frame 1
#1  0x00007ffff775f924 in _eo_evas_object_cb (data=0xb1ea90, eo_obj=0x800003ad20001d67,
    desc=<optimized out>, event_info=0x7fffffffe230)
    at lib/evas/canvas/evas_callbacks.c:90
90	   if (info->func) info->func(info->data, evas_object_evas_get(eo_obj), eo_obj, eve
nt_info);
(gdb) list
85
86	static Eina_Bool
87	_eo_evas_object_cb(void *data, Eo *eo_obj, const Eo_Event_Description *desc EINA_UN
USED, void *event_info)
88	{
89	   _eo_evas_object_cb_info *info = data;
90	   if (info->func) info->func(info->data, evas_object_evas_get(eo_obj), eo_obj, eve
nt_info);
91	   return EINA_TRUE;
92	}
93
94	typedef struct
(gdb) frame 2
#2  0x00007ffff70d396c in _eo_base_event_callback_call (obj_id=0x800003ad20001d67,
    pd=0xfbb600, desc=0x7ffff7b2a450 <_EVAS_OBJECT_EVENT_MOUSE_DOWN>,
    event_info=0x7fffffffe230) at lib/eo/eo_base_class.c:709
709	                  if (!cb->items.item.func((void *) cb->func_data, obj_id, desc,
(gdb) list
704	                  if (!cb->items.item.desc->unfreezable &&
705	                      (event_freeze_count || pd->event_freeze_count))
706	                    continue;
707
708	                  /* Abort callback calling if the func says so. */
709	                  if (!cb->items.item.func((void *) cb->func_data, obj_id, desc,
710	                                           (void *) event_info))
711	                    {
712	                       ret = EINA_FALSE;
713	                       goto end;
(gdb) frame 3 list
#0  0x0000000000000000 in ?? ()
(gdb) frame 1
#1  0x00007ffff775f924 in _eo_evas_object_cb (data=0xb1ea90, eo_obj=0x800003ad20001d67,
    desc=<optimized out>, event_info=0x7fffffffe230)
    at lib/evas/canvas/evas_callbacks.c:90
90	   if (info->func) info->func(info->data, evas_object_evas_get(eo_obj), eo_obj, event_info);
(gdb) frame 0
#0  0x00007ffff6440ec1 in _item_mouse_down_cb (data=0x1231830, evas=<optimized out>,
    obj=obj@entry=0x800003ad20001d67, event_info=event_info@entry=0x7fffffffe230)
    at elm_gengrid.c:786
786	        eo_do(WIDGET(it),
(gdb) p it
$1 = (Elm_Gen_Item *) 0x1231830
(gdb) p *it
$2 = {base = 0x10000001f, __in_list = {next = 0x10, prev = 0x1500000015,
    last = 0x1100000001}, item = 0xd00000000, itc = 0x10000001c, x = 18, y = 0, dx = 13,
  dy = 5, spacer = 0x1300000001, deco_all_view = 0x1d00000000, parent = 0x100000017,
  texts = 0x14, contents = 0x150000000d, states = 0x1500000001,
  content_objs = 0xd00000000, long_timer = 0x100000016, walking = 22, generation = 0,
  mouse_cursor = 0x1b0000000d <error: Cannot access memory at address 0x1b0000000d>,
  item_focus_chain = 0x1700000001, func = {func = 0xd00000000,
    data = 0x800002c92000411b}, tooltip = {data = 0x0, content_cb = 0x0, del_cb = 0x0,
    style = 0x0, free_size = 0 '\000'}, del_cb = 0x7ffff64445a0 <_item_del>,
  unrealize_cb = 0x7ffff6443b20 <_item_unrealize_cb>,
  sel_cb = 0x7ffff6446800 <_item_select>, unsel_cb = 0x7ffff64406c0 <_item_unselect>,
  highlight_cb = 0x7ffff6442c20 <_item_highlight>,
  unhighlight_cb = 0x7ffff64403a0 <_item_unhighlight>, position = 147,
  select_mode = ELM_OBJECT_SELECT_MODE_DEFAULT, position_update = 1 '\001',
  want_unrealize = 0 '\000', realized = 0 '\000', selected = 1 '\001',
  highlighted = 1 '\001', dragging = 0 '\000', down = 1 '\001', group = 0 '\000',
  reorder = 0 '\000', decorate_it_set = 0 '\000', flipped = 0 '\000',
  has_contents = 0 '\000', cursor_engine_only = 0 '\000', hide = 0 '\000',
  filtered = 0 '\000'}
(gdb) list
781
782	   sd->was_selected = it->selected;
783	   it->highlight_cb(it);
784	   if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
785	     {
786	        eo_do(WIDGET(it),
787	              eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED_DOUBLE, EO_OBJ(it)),
788	              eo_event_callback_call(ELM_GENGRID_EVENT_ACTIVATED, EO_OBJ(it)));
789	     }
790
(gdb)
simotek created this task.Feb 16 2016, 3:48 AM
bu5hm4n updated the task description. (Show Details)Feb 16 2016, 3:54 AM
bu5hm4n renamed this task from Genlist Crashes In Jesus to Gengrid Crashes In Jesus.Feb 16 2016, 11:43 PM
simotek raised the priority of this task from High to Showstopper Issues.Apr 25 2016, 2:12 AM
bu5hm4n removed bu5hm4n as the assignee of this task.Apr 25 2016, 2:18 AM

I cannot fix this, one of the gengrid guys should fix it.

bu5hm4n closed this task as Resolved.Apr 25 2016, 2:19 AM
bu5hm4n removed a project: Verne.
bu5hm4n removed bu5hm4n as the assignee of this task.

stop this herald!!!!!

bu5hm4n edited projects, added efl; removed Restricted Project.Apr 25 2016, 2:19 AM
bu5hm4n reopened this task as Open.Apr 25 2016, 3:31 AM

@ami any idea what is happening ? It makes jesus sometimes unusable ...

Heres some nice valgrind output from git master

12650== Invalid read of size 8

12650== at 0x657414E: _item_mouse_down_cb (elm_gengrid.c:780)

12650== by 0x596EA8B: _eo_base_event_callback_call (eo_base_class.c:1128)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0x51002E9: evas_object_event_callback_call (evas_callbacks.c:297)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x5109F68: _canvas_event_feed_mouse_down_internal (evas_events.c:1215)

12650== by 0x596E92D: _eo_base_event_callback_call (eo_base_class.c:1105)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0xF5F7904: _direct_mouse_updown (ecore_evas.c:4381)

12650== by 0xF5F7CCC: _direct_mouse_down_cb (ecore_evas.c:4391)

12650== by 0xF5F7CCC: _ecore_evas_input_direct_cb (ecore_evas.c:4573)

12650== by 0xF812A97: _ecore_event_evas_mouse_button (ecore_input_evas.c:529)

12650== by 0x5FB0BA8: _ecore_call_handler_cb (ecore_private.h:312)

12650== by 0x5FB0BA8: _ecore_event_call (ecore_events.c:518)

12650== by 0x5FB7434: _ecore_main_loop_iterate_internal (ecore_main.c:2342)

12650== by 0x5FB77E6: ecore_main_loop_begin (ecore_main.c:1284)

12650== by 0x4061A4: elm_main (jesus.c:166)

12650== by 0x406200: main (jesus.c:174)

12650== Address 0x1375eb20 is 336 bytes inside a block of size 656 free'd

12650== at 0x4C2A37C: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)

12650== by 0x5964531: _eo_free (eo_private.h:287)

12650== by 0x5964531: _eo_unref.part.13 (eo_private.h:354)

12650== by 0x596B72C: eo_del (in /usr/lib/libeo.so.1.17.99)

12650== by 0x6579BB1: _internal_elm_gengrid_clear (elm_gengrid.c:4085)

12650== by 0x6575EB4: elm_obj_gengrid_clear (in /usr/lib/libelementary.so.1.17.99)

12650== by 0x698C64E: _elm_file_display_view_grid_elm_file_view_file_set (elm_file_display_view_grid.c:125)

12650== by 0x698B146: elm_file_view_file_set (elm_file_view.eo.x:21)

12650== by 0x69853FD: _elm_file_selector_file_set (elm_file_selector.c:266)

12650== by 0x6988989: elm_file_selector_file_set (elm_file_selector.eo.x:102)

12650== by 0x408357: _open (hooks.c:13)

12650== by 0x4083D4: _open_cb (hooks.c:29)

12650== by 0x596EA8B: _eo_base_event_callback_call (eo_base_class.c:1128)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0x6984CC7: _view_choosen_cb (elm_file_selector.c:130)

12650== by 0x596E92D: _eo_base_event_callback_call (eo_base_class.c:1105)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0x698C782: _double_click (elm_file_display_view_grid.c:166)

12650== by 0x596EA8B: _eo_base_event_callback_call (eo_base_class.c:1128)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0x657414D: _item_mouse_down_cb (elm_gengrid.c:779)

12650== by 0x596EA8B: _eo_base_event_callback_call (eo_base_class.c:1128)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0x51002E9: evas_object_event_callback_call (evas_callbacks.c:297)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x51004BB: evas_object_event_callback_call (evas_callbacks.c:321)

12650== by 0x5109F68: _canvas_event_feed_mouse_down_internal (evas_events.c:1215)

12650== by 0x596E92D: _eo_base_event_callback_call (eo_base_class.c:1105)

12650== by 0x596C2AA: eo_event_callback_call (in /usr/lib/libeo.so.1.17.99)

12650== by 0xF5F7904: _direct_mouse_updown (ecore_evas.c:4381)