Page MenuHomePhabricator

[bug] segfault on open style 'genlist_top' and 'genlist_arrow' from default.edc
Closed, ResolvedPublic

Description

run eflete, import edc-file with path to edc - efl/data/elementary/themes/default.edc
path to img - efl/data/elementary/themes/img and efl/data/elementary/themes/fdo
path to sound - efl/data/elementary/themes/snd
press Import and open genlist_top or genlist_arrow style

Process: eflete [64360]
Path: /usr/local/bin/eflete
Identifier: eflete
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [95809]
Responsible: Terminal [229]
User ID: 501

Date/Time: 2016-06-22 14:21:05.734 +0300
OS Version: Mac OS X 10.9.5 (13F1808)
Report Version: 11
Anonymous UUID: E4F93FF4-4CC1-A8C9-CEC0-E95BAC7A4B09

Sleep/Wake UUID: 28FFEB8A-4025-457B-9CEE-0287DDCC8AF6

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010

VM Regions Near 0x10:
-->

__TEXT                 0000000105b28000-0000000105c1d000 [  980K] r-x/rwx SM=COW  /usr/local/bin/eflete

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 module.so 0x000000010992d764 evas_gl_common_context_target_surface_set + 340
1 module.so 0x0000000109925cd8 eng_rectangle_draw + 88
2 libevas.1.dylib 0x00000001063eb88c evas_render_proxy_subrender + 668
3 libevas.1.dylib 0x0000000106364d83 _evas_image_render + 1331
4 libevas.1.dylib 0x0000000106369790 evas_object_image_render + 1376
5 libevas.1.dylib 0x00000001063e9219 evas_render_mapped + 8297
6 libevas.1.dylib 0x00000001063f3ec1 evas_render_updates_internal_loop + 3649
7 libevas.1.dylib 0x00000001063ed521 evas_render_updates_internal + 5841
8 libevas.1.dylib 0x00000001063ee801 evas_render_updates_internal_wait + 145
9 libevas.1.dylib 0x00000001063ee6d4 _evas_canvas_render_updates + 180
10 libevas.1.dylib 0x000000010635679d evas_canvas_render_updates + 237
11 libevas.1.dylib 0x0000000106350ee5 evas_render_updates + 21
12 module.so 0x00000001098b0140 _ecore_evas_cocoa_render + 736
13 libecore_evas.1.dylib 0x00000001062cdbe3 _ecore_evas_idle_enter + 1971
14 libecore.1.dylib 0x0000000106a5373a _ecore_call_task_cb + 26
15 libecore.1.dylib 0x0000000106a536ac _ecore_factorized_idle_process + 60
16 libeo.1.dylib 0x0000000106c1329b _eo_base_event_callback_call + 715
17 libeo.1.dylib 0x0000000106c17fe8 eo_event_callback_call + 248
18 libecore.1.dylib 0x0000000106a53456 _ecore_idle_enterer_call + 38
19 libecore.1.dylib 0x0000000106a54552 _ecore_main_loop_iterate_internal + 98
20 libecore.1.dylib 0x0000000106a548a3 ecore_main_loop_begin + 211
21 libelementary.1.dylib 0x0000000105e04369 elm_run + 9
22 eflete 0x0000000105b2aa01 elm_main + 3809
23 eflete 0x0000000105b2ada1 main + 65
24 libdyld.dylib 0x00007fff917d95fd start + 1

ERR<56237>:evas-gl_common modules/evas/engines/gl_common/evas_gl_texture.c:341 _tex_2d() Fail tex alloc 0x0, intfmt: 1908 intfmtret: 1

we have segfault due to NULL texture:
surface->tex->pt->fb - we can't take this, because surface->tex = NULL
we can adding check for fix this segfault but need investigate why we have NULL texture

se.osadchy added a comment.EditedJul 12 2016, 6:32 AM

can't create texture because we have 0x0 size (w x h)
and after call

glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_INTERNAL_FORMAT, &intfmtret);
intfmtret = 1

in others textures of genlist style intfmtret = 32856, and have not NULL size

in ecore_render we have check of size
NULL size we have when use invisible texture:
run effete, open bg.edc, change default visible to 0 - segfault

For fix this bug need adding check like as check in render

jpeg added a subscriber: jpeg.Jul 18 2016, 8:17 PM

I can not reproduce this issue.