On Tue, Aug 14, 2012 at 2:20 AM, Carsten Haitzler <ras...@rasterman.com> wrote:
>
> can you put a printf in find_subst() in embryo_cc_sclist.c before the asserts
> and printf name and length ?

before that, i tried a much more simple test (without embryo), which
segfault. I've attached the source code, the edc and the edj.

back trace:

#0  0x7c92b21a in ntdll!RtlpWaitForCriticalSection () from
C:\WINDOWS\system32\ntdll.dll
#1  0x7c911046 in ntdll!RtlEnumerateGenericTableLikeADirectory () from
C:\WINDOWS\system32\ntdll.dll
#2  0x002e4da8 in ?? ()
#3  0x6fdc9f0c in eina_lock_take (mutex=0x12e4da8)
    at 
C:/MinGW_PKG/msys/1.0/opt/efl/include/eina-1/eina/eina_inline_lock_win32.x:92
#4  0x6fdca516 in eet_dictionary_string_get_char (ed=0x12e4da0,
idx=22) at eet_dictionary.c:230
#5  0x6fdc26a4 in eet_data_get_string (ed=0x12e4da0, src=0x12ea080,
src_end=0x12ea1cc, dst=0x226b68) at eet_data.c:807
#6  0x6fdc30e3 in eet_data_get_type (ed=0x12e4da0, type=11,
src=0x12ea080, src_end=0x12ea1cc, dest=0x226b68)
    at eet_data.c:1244
#7  0x6fdc3383 in eet_data_chunk_get (ed=0x12e4da0, chnk=0x226b68,
src=0x12ea078, size=340) at eet_data.c:1378
#8  0x6fdc6de5 in _eet_data_descriptor_decode (context=0x226be8,
ed=0x12e4da0, edd=0x3ec948, data_in=0x12ea078,
    size_in=340, data_out=0x0, size_out=0) at eet_data.c:3321
#9  0x6fdc44b9 in eet_data_read_cipher (ef=0x12e3d18, edd=0x3ec948,
name=0x639f915e "edje/file", cipher_key=0x0)
    at eet_data.c:2087
#10 0x6fdc460f in eet_data_read (ef=0x12e3d18, edd=0x3ec948,
name=0x639f915e "edje/file") at eet_data.c:2136
#11 0x63982efc in _edje_file_open (file=0x12e36b0 "test.edj",
coll=0x12e3700 "my_group", error_ret=0x12e35d4,
    edc_ret=0x12e3558, mtime=1344923750) at edje_cache.c:191
#12 0x639833e0 in _edje_cache_file_coll_open (file=0x12e36b0
"test.edj", coll=0x12e3700 "my_group",
    error_ret=0x12e35d4, edc_ret=0x12e3558, ed=0x12e3510) at edje_cache.c:321
#13 0x639ce0d0 in _edje_file_add (ed=0x12e3510) at edje_load.c:985
#14 0x639cc361 in _edje_object_file_set_internal (obj=0x12dbe98,
file=0x404057 "test.edj", group=0x40404e "my_group",
    parent=0x0, group_path=0x0) at edje_load.c:346
#15 0x639e22bd in _edje_smart_file_set (obj=0x12dbe98, file=0x404057
"test.edj", group=0x40404e "my_group")
    at edje_smart.c:347
#16 0x639cb7c2 in edje_object_file_set (obj=0x12dbe98, file=0x404057
"test.edj", group=0x40404e "my_group")
    at edje_load.c:48
#17 0x0040188d in main () at ecore_evas.c:39

several questions:

0) does someone have an idea of the problem ?
1) with the edj attached, can someone test the program to see if the
edc file has correctly been compiled on Windows ?
2) can someone send me the edj compiled on linux, to see if there's a
problem with edje_cc on Windows with such simple edc ?

thank you

Vincent
/* gcc -g -Wall -o ecore_evas.exe ecore_evas.c `pkg-config --cflags --libs edje ecore-evas ecore evas eina` */

#include <stdio.h>

#include <Eina.h>
#include <Evas.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <Edje.h>

void
_quit_cb(Ecore_Evas *ee)
{
  ecore_main_loop_quit();
}

int main()
{
  Ecore_Evas *ee;
  Evas *evas;
  Evas_Object *o;

  ecore_evas_init();
  edje_init();

  ee = ecore_evas_new(NULL, 10, 10, 0, 0, NULL);
  ecore_evas_callback_delete_request_set(ee, _quit_cb);
  ecore_evas_title_set(ee, "Test Edje");

  evas = ecore_evas_get(ee);

  o = evas_object_rectangle_add(evas);
  evas_object_move(o, 0, 0);
  evas_object_resize(o, 320, 200);
  evas_object_color_set(o, 255, 255, 255, 255);
  evas_object_show(o);

  o = edje_object_add(evas);
  edje_object_file_set(o, "test.edj", "my_group");
  edje_object_part_text_set(o, "text", "un message");
  evas_object_move(o, 0, 0);
  evas_object_resize(o, 320, 200);
  evas_object_show(o);

  ecore_evas_resize(ee, 320, 200);
  ecore_evas_show(ee);

  ecore_main_loop_begin();

  edje_shutdown();
  ecore_evas_shutdown();

  return 0;
}

Attachment: test.edc
Description: Binary data

Attachment: test.edj
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to