Genlist decorate modes crash
Closed, ResolvedPublic

Description

Hi,

I noted the Genlist Decorate Modes test crashes with a certain scenario:

  • Sweep first item to the right
  • Click on "Set Decorate All Mode"
  • Click on X of the first item
  • Click on "Unset Decorate All Mode"
  • Sweep first item to the right -> crash

Following the backtrace:
#0 0x00007ffff5f267b1 in _decorate_item_unset (sd=0x555555d601f0) at lib/elementary/elm_genlist.c:5516
#1 0x00007ffff5f3080b in _elm_genlist_item_decorate_mode_set (eo_it=0x8000000954d9893c, it=0x555555dd1180, decorate_it_type=0x555555661250 "slide", decorate_it_set=1 '\001') at lib/elementary/elm_genlist.c:8014
#2 0x00007ffff5f39ebb in elm_obj_genlist_item_decorate_mode_set (obj=0x8000000954d9893c, decorate_it_type=0x555555661250 "slide", decorate_it_set=1 '\001') at lib/elementary/elm_genlist_item.eo.c:112
#3 0x00007ffff5f3a449 in elm_genlist_item_decorate_mode_set (obj=0x8000000954d9893c, decorate_it_type=0x555555661250 "slide", decorate_it_set=1 '\001') at lib/elementary/elm_genlist_item.eo.c:425
#4 0x00005555555d77b3 in _my_gl_mode_right (data=0x8000000514d988b4, obj=0x80000006a4d988e6, event_info=0x8000000954d9893c) at bin/elementary/test_genlist.c:2213
#5 0x00007ffff69065de in _eo_evas_smart_cb (data=0x555555da0ed0, event=0x7fffffffd2f0) at lib/evas/canvas/evas_object_smart.c:77
#6 0x00007ffff6656897 in _event_callback_call (obj_id=0x80000006a4d988e6, pd=0x555555d5fe20, desc=0x7ffff323f520 <_EFL_UI_EVENT_DRAG_START_RIGHT>, event_info=0x8000000954d9893c, legacy_compare=1 '\001')

at lib/eo/eo_base_class.c:1542

#7 0x00007ffff6656ca7 in _efl_object_event_callback_legacy_call (obj_id=0x80000006a4d988e6, pd=0x555555d5fe20, desc=0x7ffff323f520 <_EFL_UI_EVENT_DRAG_START_RIGHT>, event_info=0x8000000954d9893c) at lib/eo/eo_base_class.c:1615
#8 0x00007ffff6656d87 in efl_event_callback_legacy_call (obj=0x80000006a4d988e6, desc=0x7ffff323f520 <_EFL_UI_EVENT_DRAG_START_RIGHT>, event_info=0x8000000954d9893c) at lib/eo/eo_base_class.c:1618

Regards
JackDanielZ

SanghyeonLee closed this task as Resolved.Sep 12 2017, 2:51 AM

decorate mode item was being dangling pointer after deletion.
solved.

Thanks

I will check