Page MenuHomePhabricator

tests: Rework "gfx filters" test case to use eo
Needs ReviewPublic

Authored by jpeg on Tue, Nov 27, 2:10 AM.

Details

Summary

Legacy widgets are not very relevant here, as the gfx API is eo only.

Diff Detail

Repository
rEFL core/efl
Branch
master
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 8233
Build 7517: arc lint + arc unit
jpeg created this revision.Tue, Nov 27, 2:10 AM

It seems that this patch has no reviewers specified. If you are unsure who can review your patch, please check this wiki page and see if anyone can be added: https://phab.enlightenment.org/w/maintainers_reviewers/

jpeg requested review of this revision.Tue, Nov 27, 2:10 AM

This patch (when applied after D7366 and D7367) crashes for me:

CRI<77945>: lib/eina/eina_list.c:771 eina_list_remove() *** Eina Magic Check Failed at 0x7ffff7693fc0 !!!
    Input handle is wrong type.
    Expected: 98761237 - Eina List
    Supplied: f72d2460 - (unknown)

Breaking with gdb on that error gives this backtrace:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff527e801 in __GI_abort () at abort.c:79
#2  0x00007ffff7b6cedd in eina_log_print_unlocked (domain=<optimized out>, level=EINA_LOG_LEVEL_CRITICAL, file=0x7ffff7bb1230 "lib/eina/eina_list.c", 
    fnc=0x7ffff7bb1690 <__FUNCTION__.5119> "eina_list_remove", line=<optimized out>, 
    fmt=0x7ffff7bb25d0 "*** Eina Magic Check Failed at %p !!!\n    Input handle is wrong type.\n    Expected: %08x - %s\n    Supplied: %08x - %s\n\n", args=0x7fffffffd4d0) at lib/eina/eina_log.c:1420
#3  0x00007ffff7b6e293 in eina_log_print (domain=0, level=level@entry=EINA_LOG_LEVEL_CRITICAL, file=file@entry=0x7ffff7bb1230 "lib/eina/eina_list.c", 
    fnc=fnc@entry=0x7ffff7bb1690 <__FUNCTION__.5119> "eina_list_remove", line=line@entry=771, 
    fmt=fmt@entry=0x7ffff7bb25d0 "*** Eina Magic Check Failed at %p !!!\n    Input handle is wrong type.\n    Expected: %08x - %s\n    Supplied: %08x - %s\n\n") at lib/eina/eina_log.c:2259
#4  0x00007ffff7b6f9b9 in eina_magic_fail (d=0x7ffff7693fc0 <object_func>, m=4146930784, req_m=req_m@entry=2557874743, file=file@entry=0x7ffff7bb1230 "lib/eina/eina_list.c", 
    fnc=fnc@entry=0x7ffff7bb1690 <__FUNCTION__.5119> "eina_list_remove", line=line@entry=771) at lib/eina/eina_magic.c:287
#5  0x00007ffff7b6a570 in eina_list_remove (list=0x7ffff7693fc0 <object_func>, data=<optimized out>) at lib/eina/eina_list.c:771
#6  0x00007ffff73468cb in _evas_cache_image_entry_preload_remove (ie=0x555555f39f60, target=<optimized out>, force=<optimized out>) at lib/evas/cache/evas_cache_image.c:542
#7  0x00007ffff7348324 in evas_cache_image_drop (im=0x555555f39f60) at lib/evas/cache/evas_cache_image.c:865
#8  0x00007ffff73e1638 in eng_context_clip_image_unset (data=<optimized out>, context=context@entry=0x555555f32380) at modules/evas/engines/software_generic/evas_engine.c:487
#9  0x00007ffff73e1805 in eng_context_free (data=<optimized out>, context=0x555555f32380) at modules/evas/engines/software_generic/evas_engine.c:547
#10 0x00007ffff72ee312 in _format_unref_free (fmt=0x5555560eb010, evas_o=<optimized out>) at lib/evas/canvas/evas_object_textblock.c:1000
#11 0x00007ffff72efa81 in _format_unref_free (evas_o=0x5555560b56a0, fmt=<optimized out>) at lib/evas/canvas/evas_object_textblock.c:1058
#12 _item_free (evas=evas@entry=0x555555adbb80, evas_o=evas_o@entry=0x5555560b56a0, it=0x5555560ec570, o=0x5555560b57d0, ln=0x0) at lib/evas/canvas/evas_object_textblock.c:1068
#13 0x00007ffff72efc0e in _paragraph_free (evas=0x555555adbb80, o=0x5555560b57d0, obj=0x5555560b56a0, par=par@entry=0x5555560e3820) at lib/evas/canvas/evas_object_textblock.c:3293
#14 0x00007ffff72fe513 in _layout_pre (c=c@entry=0x7fffffffd810) at lib/evas/canvas/evas_object_textblock.c:6306
#15 0x00007ffff72feea0 in _layout (eo_obj=eo_obj@entry=0x400000293007, w=<optimized out>, h=<optimized out>, w_ret=w_ret@entry=0x5555560b59f4, h_ret=h_ret@entry=0x5555560b59f8)
    at lib/evas/canvas/evas_object_textblock.c:6738
#16 0x00007ffff72ff507 in _relayout (eo_obj=0x400000293007) at lib/evas/canvas/evas_object_textblock.c:6754
#17 _relayout_if_needed (eo_obj=0x400000293007, o=<optimized out>, o=<optimized out>) at lib/evas/canvas/evas_object_textblock.c:6797
#18 0x00007ffff73074c3 in _efl_canvas_text_efl_text_cursor_cursor_geometry_get (eo_obj=<optimized out>, o=0x5555560b57d0, cur=0x5555560b5aa0, ctype=EFL_TEXT_CURSOR_TYPE_BEFORE, cx=0x7fffffffdb24, 
    cy=0x7fffffffdb28, cw=0x7fffffffdb2c, ch=0x7fffffffdb30, cx2=0x7fffffffdb34, cy2=0x7fffffffdb38, cw2=0x0, ch2=0x0) at lib/evas/canvas/evas_object_textblock.c:11759
#19 0x00007ffff76e05e3 in efl_text_cursor_geometry_get (obj=obj@entry=0x400000292404, cur=0x5555560b5aa0, ctype=ctype@entry=EFL_TEXT_CURSOR_TYPE_BEFORE, cx=cx@entry=0x7fffffffdb24, 
    cy=cy@entry=0x7fffffffdb28, cw=cw@entry=0x7fffffffdb2c, ch=0x7fffffffdb30, cx2=0x7fffffffdb34, cy2=0x7fffffffdb38, cw2=0x0, ch2=0x0) at ../src/lib/efl/interfaces/efl_text_cursor.eo.c:5
#20 0x00007ffff58d3094 in _update_text_cursors (obj=0x400000292404) at lib/elementary/efl_ui_text.c:3468
#21 _update_decorations (obj=0x400000292404) at lib/elementary/efl_ui_text.c:3862
#22 _deferred_decoration_job (data=0x400000292404) at lib/elementary/efl_ui_text.c:3872
#23 0x00007ffff6fee89b in _ecore_job_event_handler (data=<optimized out>, type=<optimized out>, ev=<optimized out>) at lib/ecore/ecore_job.c:95
#24 0x00007ffff6ff4089 in _ecore_event_message_handler_efl_loop_message_handler_message_call (obj=0x400000001549, pd=0x5555558c9250, message=0x40000029d831) at lib/ecore/ecore_event_message_handler.c:360
#25 0x00007ffff6ffaf0f in efl_loop_message_handler_message_call (obj=0x400000001549, message=0x40000029d831) at lib/ecore/efl_loop_message_handler.eo.c:14
#26 0x00007ffff6ff7059 in _efl_loop_message_process (obj=<optimized out>, pd=0x5555558c1eb0) at lib/ecore/efl_loop.c:633
#27 0x00007ffff6ff5c97 in efl_loop_message_process (obj=obj@entry=0x400000000144) at lib/ecore/efl_loop.c:663
#28 0x00007ffff6ff0849 in _ecore_main_loop_iterate_internal (obj=obj@entry=0x400000000144, pd=pd@entry=0x5555558c1eb0, once_only=once_only@entry=0) at lib/ecore/ecore_main.c:2458
#29 0x00007ffff6ff111d in _ecore_main_loop_begin (obj=0x400000000144, pd=pd@entry=0x5555558c1eb0) at lib/ecore/ecore_main.c:1191
#30 0x00007ffff6ff6f89 in _efl_loop_begin (obj=<optimized out>, pd=0x5555558c1eb0) at lib/ecore/efl_loop.c:83
#31 0x00007ffff6ff5f47 in efl_loop_begin (obj=0x400000000144) at lib/ecore/efl_loop.eo.c:28
#32 0x000055555557c3cf in main (argc=3, argv=0x7fffffffdf68) at bin/elementary/test.c:1369