Page MenuHomePhabricator

EFL: Focus Manager SEGV
Closed, DuplicatePublic

Description

EFL latest. Linux (Debian).

Reproduction:

  1. Open an existing project in EDI.
  2. Click the debug panel tab.
  3. Click Run button.
  4. A popup dialogue appears "Close dialogue or Open Settings" (missing debug binary)
  5. Choose Open Settings.
  6. The following SEGV.
Thread 1 "edi" received signal SIGSEGV, Segmentation fault.
0x0000555555568942 in _edi_logpanel_print_cb (domain=0x555555b5c790,
    level=EINA_LOG_LEVEL_ERR, file=0x7ffff3af77c6 "lib/eo/eo_private.h",
    fnc=0x7ffff3af8aa0 <__FUNCTION__.15473> "_efl_unref_internal", line=343,
    fmt=0x7ffff3af7898 "Object %p is still refcounted %i by users, but internal refcount reached 0. This should never happen. Please report a bug and send a backtrace to EFL developer.", data=0x0, args=0x7fffff7ffad8)
    at ../src/bin/edi_logpanel.c:47
47         if (_edi_logpanel_ignore(level, domain->domain_str, fnc))
(gdb) print level
$1 = EINA_LOG_LEVEL_ERR
(gdb) print domain
$2 = (const Eina_Log_Domain *) 0x555555b5c790
(gdb) print domain->domain_str
$3 = 0x5555557b35c0 "eo"
(gdb) print fnv
No symbol "fnv" in current context.
(gdb) print fnc
$4 = 0x7ffff3af8aa0 <__FUNCTION__.15473> "_efl_unref_internal"
(gdb) bt
#0  0x0000555555568942 in _edi_logpanel_print_cb (domain=0x555555b5c790, level=EINA_LOG_LEVEL_ERR,
    file=0x7ffff3af77c6 "lib/eo/eo_private.h", fnc=0x7ffff3af8aa0 <__FUNCTION__.15473> "_efl_unref_internal",
    line=343,
    fmt=0x7ffff3af7898 "Object %p is still refcounted %i by users, but internal refcount reached 0. This should never happen. Please report a bug and send a backtrace to EFL developer.", data=0x0, args=0x7fffff7ffad8)
    at ../src/bin/edi_logpanel.c:47
#1  0x00007ffff70637c6 in eina_log_print_unlocked (domain=33, level=EINA_LOG_LEVEL_ERR,
    file=0x7ffff3af77c6 "lib/eo/eo_private.h", fnc=0x7ffff3af8aa0 <__FUNCTION__.15473> "_efl_unref_internal",
    line=343,
    fmt=0x7ffff3af7898 "Object %p is still refcounted %i by users, but internal refcount reached 0. This should never happen. Please report a bug and send a backtrace to EFL developer.", args=0x7fffff7ffad8)
    at lib/eina/eina_log.c:1454
#2  0x00007ffff7064f1e in eina_log_print (domain=33, level=EINA_LOG_LEVEL_ERR,
    file=0x7ffff3af77c6 "lib/eo/eo_private.h", fnc=0x7ffff3af8aa0 <__FUNCTION__.15473> "_efl_unref_internal",
    line=343,
    fmt=0x7ffff3af7898 "Object %p is still refcounted %i by users, but internal refcount reached 0. This should never happen. Please report a bug and send a backtrace to EFL developer.") at lib/eina/eina_log.c:2259
#3  0x00007ffff3ae4250 in _efl_unref_internal (obj=0x5555573415c0,
    func_name=0x7ffff3af8ae0 <__FUNCTION__.16205> "_efl_object_call_end", file=0x7ffff3af7b5a "lib/eo/eo.c",
    line=651) at lib/eo/eo_private.h:343
#4  0x00007ffff3ae6b8c in _efl_object_call_end (call=0x7fffff7ffc30) at lib/eo/eo.c:651
#5  0x00007ffff788940c in efl_ui_focus_manager_root_get (obj=0x4000000bb442)
    at lib/elementary/efl_ui_focus_manager.eo.c:17
#6  0x00007ffff788b60a in _manager_in_chain_set (obj=0x4000000bb442, pd=0x555557341650)
    at lib/elementary/efl_ui_focus_manager_calc.c:95
#7  0x00007ffff788e832 in _efl_ui_focus_manager_calc_efl_ui_focus_manager_manager_focus_set (obj=0x4000000bb442,
    pd=0x555557341650, focus=0x4000000bb041) at lib/elementary/efl_ui_focus_manager_calc.c:1303
#8  0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb442, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#9  0x00007ffff7891e7c in _efl_ui_focus_manager_root_focus_efl_ui_focus_manager_manager_focus_set (
    obj=0x4000000bb442, pd=0x555557341690, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager_root_focus.c:106
#10 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb041, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#11 0x00007ffff788b6f7 in _manager_in_chain_set (obj=0x4000000bb442, pd=0x555557341650)
    at lib/elementary/efl_ui_focus_manager_calc.c:107
#12 0x00007ffff788e832 in _efl_ui_focus_manager_calc_efl_ui_focus_manager_manager_focus_set (obj=0x4000000bb442,
    pd=0x555557341650, focus=0x4000000bb041) at lib/elementary/efl_ui_focus_manager_calc.c:1303
#13 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb442, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#14 0x00007ffff7891e7c in _efl_ui_focus_manager_root_focus_efl_ui_focus_manager_manager_focus_set (
    obj=0x4000000bb442, pd=0x555557341690, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager_root_focus.c:106
#15 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb041, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#16 0x00007ffff788b6f7 in _manager_in_chain_set (obj=0x4000000bb442, pd=0x555557341650)
    at lib/elementary/efl_ui_focus_manager_calc.c:107
#17 0x00007ffff788e832 in _efl_ui_focus_manager_calc_efl_ui_focus_manager_manager_focus_set (obj=0x4000000bb442,
    pd=0x555557341650, focus=0x4000000bb041) at lib/elementary/efl_ui_focus_manager_calc.c:1303
#18 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb442, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#19 0x00007ffff7891e7c in _efl_ui_focus_manager_root_focus_efl_ui_focus_manager_manager_focus_set (
    obj=0x4000000bb442, pd=0x555557341690, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager_root_focus.c:106
#20 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb041, focus=0x4000000bb041)
    at lib/elementary/efl_ui_focus_manager.eo.c:11
#21 0x00007ffff788b6f7 in _manager_in_chain_set (obj=0x4000000bb442, pd=0x555557341650)
    at lib/elementary/efl_ui_focus_manager_calc.c:107
#22 0x00007ffff788e832 in _efl_ui_focus_manager_calc_efl_ui_focus_manager_manager_focus_set (obj=0x4000000bb442,
    pd=0x555557341650, focus=0x4000000bb041) at lib/elementary/efl_ui_focus_manager_calc.c:1303
#23 0x00007ffff7888da5 in efl_ui_focus_manager_focus_set (obj=0x4000000bb442, focus=0x4000000bb041)
---Type <return> to continue, or q <return> t

This continues for > 10000 frames.

Seems quite recent. Perhaps ~ 1 week since I tested this. Definitely regression.

netstar created this task.Jun 19 2018, 7:29 AM
netstar triaged this task as Showstopper Issues priority.
zmike added a comment.Jun 19 2018, 7:32 AM

Can you valgrind this as well?

This is the parent of elm_popup beeing the popup itself ... YEY And this is as old as the scrollable content in popup regression.

zmike added a comment.Jun 19 2018, 7:34 AM

Oh I misread and thought there were just a lot of errors.

Is this an internal issue or a misuse of popup @bu5hm4n ?