On Wed, 02 Mar 2005 15:14:57 +0100 Christoph Peltz <[EMAIL PROTECTED]> babbled:

> 
> > first... don't set the viewport or size until you have set up an engine...
evas
> > is only partly initialized. second - you can save a lot of effort and use
> > ecore_evas as a wrapper that sets this all up for you :) third - can you
give us
> > a gdb backtrace? (so i can see where in evas its failing) ?
> 
> Okay, I have now set the viewport AFTER the function, but it still
> occure a segfault. Here is the GDB backtrace:
> #0  0xb7faafb7 in evas_software_x11_outbuf_software_x11_perf_new_x ()
>    from /usr/lib/libevas.so.1
> #1  0xb7fab6cb in evas_software_x11_outbuf_software_x11_perf_restore_x
> ()
>    from /usr/lib/libevas.so.1
> #2  0xb7fa9553 in evas_common_regionbuf_rects_get ()
> from /usr/lib/libevas.so.1
> #3  0xb7f74180 in evas_engine_info_set () from /usr/lib/libevas.so.1
> #4  0x080489c2 in main ()
> 
> I will look at the wrapper for sure ;D
> 
> BTW: I am sorry for double-posting, normally I get my own email when
> send to a list to make sure it has arrived, but here I do not get it so
> i thought the mail does not arrived at the list.

oooh! you should read your code more carefully! :)
the gdb backtrace says u die in evas_engine_info_set() - which makes sense. u
didnt notice this because your printf("test"); has no \n - thus no newline and
it doesnt get flushed and u dont see it. so the reason it dies is you are not
setting up the engine info data at all (no display pointer, etc. etc.) so evas
of course has a very bad day if u dont tell it what to do with the target
rendering surface properly... :) the wrappers set this all up for you correctly
and save effort - but if you want to DIY - make sure u set up the engine info
properly. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多                              [EMAIL PROTECTED]
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to