Application crashing with Bad Window error only on OLPC 767 build
shivaprasad javali
jbsp72 at gmail.com
Wed Feb 18 10:19:31 EST 2009
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.
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?
Thanks
jbsp72
On Wed, Feb 18, 2009 at 5:49 AM, S Page <info at skierpage.com> wrote:
> (private response, but if you learn more re-send to OLPC devel list)
>
> Do you see anything in the logs after enabling warnings?
> See http://wiki.laptop.org/go/Attaching_Sugar_logs_to_tickets
>
> Then there's general debugging on Linux using strace, gdb, etc. I don't
> see much on the wiki about that.
>
>
> shivaprasad javali wrote:
>
>> 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).
>>
>> 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?
>>
>> Thanks
>> jbsp72
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20090218/c32c177c/attachment.html>
More information about the Devel
mailing list