Finally some more information about what is happening. The application that I am running previously didn't use any UI packages and worked directly with windows through X calls. I had to add a xulrunner based browser to it which accepted only a gtk window and couldn't work with an X window directly. So I added the code for just the browser to use gtk.<br>
<br>I switched to the old code ( pre gtk) and it works fine on the XO with 767 sugar build. Then I tried adding the gtk_init() call to the initialization sequence and it crashed immediately. I guess the problem has something to do with both gtk and X windows working together.( Although I don't get why the problem should persist only when I launch my app from the activity bar and not when I run it from the terminal) . Can anybody help me figure out what the problem might be?<br>
<br>Thanks<br>jbsp72<br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 5:49 AM, S Page <span dir="ltr"><<a href="mailto:info@skierpage.com">info@skierpage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(private response, but if you learn more re-send to OLPC devel list)<br>
<br>
Do you see anything in the logs after enabling warnings?<br>
See <a href="http://wiki.laptop.org/go/Attaching_Sugar_logs_to_tickets" target="_blank">http://wiki.laptop.org/go/Attaching_Sugar_logs_to_tickets</a><br>
<br>
Then there's general debugging on Linux using strace, gdb, etc.  I don't see much on the wiki about that.<div><div></div><div class="Wj3C7c"><br>
<br>
shivaprasad javali wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        I am trying to port an application to OLPC. It has a xulrunner based browser which draws into a gtk window. It runs perfectly on OLPC builds 708 and 711 , but when I try to run it on 767 build it crashes with an error in a X window system error with error code 3( Bad Window).<br>

<br>
        Also the crash occurs only when I launch the activity from the Activity bar. If open the Terminal activity and run it from there it works fine. It crashes only when I run it from the Activity bar and on the 767 build. Could any body tell me what changed from build 711 to 767 which made my application to crash?<br>

<br>
Thanks<br>
jbsp72<br>
</blockquote>
</div></div></blockquote></div><br>