On Thu, Nov 12, 2009 at 7:59 AM, Brian Wang <brian.wang.0...@gmail.com> wrote:
> Hello all,
>
> I have some problem with elm_label, which is causing the CPU usage to
> go rocket high (from top: 97+%) and does not show anything.  The test
> program simply freezes and does not handle 'Ctrl+c'.
>
> The problem, which is repeatable, occurs on my ARM board and happens
> with specific text.  I cannot reproduce the problem on my x86 box.
>
> I initially thought there may be problem with the freetype2 library I
> installed.  However, the same string shows up correctly as the label
> of elm_button.  I also wrote a simple program with evas and that also
> shows the string correctly.
>
> The string is in Chinese:
> "追 "
> which is a very common Chinese character.  There's nothing special about it.
>
> The program does not step out of elm_label_label_set(xxx).  The next
> line of code does not run at all.  The last few lines of the eina log:
> DBG:eina_stringshare eina_stringshare.c:1194 eina_stringshare_del()
> str=0x60b74 (style)
> DBG:eina_stringshare eina_stringshare.c:1227 eina_stringshare_del()
> str=0x60b74 (style) refs=0, delete.
> DBG:eina_stringshare eina_stringshare.c:1194 eina_stringshare_del()
> str=0x62824 (tabstops)
> DBG:eina_stringshare eina_stringshare.c:1227 eina_stringshare_del()
> str=0x62824 (tabstops) refs=0, delete.
> DBG:eina_stringshare eina_stringshare.c:1194 eina_stringshare_del()
> str=0x6271c (linesize)
> DBG:eina_stringshare eina_stringshare.c:1227 eina_stringshare_del()
> str=0x6271c (linesize) refs=0, delete.
> DBG:eina_stringshare eina_stringshare.c:1194 eina_stringshare_del()
> str=0x61a14 (linerelsize)
> DBG:eina_stringshare eina_stringshare.c:1227 eina_stringshare_del()
> str=0x61a14 (linerelsize) refs=0, delete.
> DBG:eina_stringshare eina_stringshare.c:1194 eina_stringshare_del()
> str=0x40169ae5 (
> )
>
> It stops/freezes after that.
>
> How do I dig deeper into this?

gdb --pid $TEST_PID

or start from inside gdb. When it reaches this point, just do "Control
+ c" and "bt" to print stack. Then try couple of "n" (next) to see
what it is doing, why it's looping...

Of course you might be lucky and be inside a tight loop, but sometimes
it's more complex and you'll take more time doing "n" to see what's
happening.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to