Kirix Support Forums

testapp won't work in Lubuntu 11.04[SOLVED]

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

testapp won't work in Lubuntu 11.04[SOLVED]

Postby chisser98 on Fri Oct 07, 2011 12:46 pm

Hey all,

I had a problem related to this post (http://www.kirix.com/forums/viewtopic.php?f=26&t=695&start=0&st=0&sk=t&sd=a&hilit=libxul.so&sid=4a7cf42d3f425c06af6e5cee8c6363cc), which had this problem:


...it crashed every time with the following error messages:

(process:3309): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function

(process:3309): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:3309): Gdk-CRITICAL **: gdk_screen_get_rgb_visual: assertion `GDK_IS_SCREEN (screen)' failed
Segmentation fault


This error showed whenever I tried to run the testapp.

The problem was with the libxul.so file (the XULRunner library). I found this out by running the testapp through gdb.

So, I downloaded xulrunner 1.9.0.11 source, compiled it, and copied the appropriate files (at least, I think all of the right files...) to the 'xr' directory in webconnector.

I then ran testapp again, and it worked! However, now I'm getting the same problem this user was having (post: http://www.kirix.com/forums/viewtopic.php?f=25&t=837&sid=4a7cf42d3f425c06af6e5cee8c6363cc)

...Building is alright, but when I run testapp and I enter an(sic) url, webpage doesn't load and when I close the window I get "segmentation fault".


I now have this exact problem. I'm using wxWidgets X11 build...

My best guess is that it's the X11 build, as it is a pretty bad port in Lubuntu 11.04 (lots of graphical glitches, etc). But I could be wrong..

Does anyone have any advice they could offer me? I'd be thankful for any help..

Thanks,

Jarrett
Last edited by chisser98 on Fri Oct 07, 2011 4:25 pm, edited 1 time in total.
chisser98
Registered User
 
Posts: 4
Joined: Fri Oct 07, 2011 12:28 pm

Re: testapp won't work in Lubuntu 11.04

Postby chisser98 on Fri Oct 07, 2011 4:06 pm

Hey again,

So looks like when it 'works' it's not actually working, I just hadn't put the proper *.so files in the 'xr' directory, and so it was launching testapp without loading the xulrunner libraries. With the right libraries in there, it crashes at startup.

I ran through with gdb and isolated where the crash happens...here's the output:


Code: Select all
...
(gdb)
144       }
(gdb)
wxWebControl::wxWebControl (this=0x8166260, parent=0x814ed88, id=9001,
    pos=..., size=...) at webcontrol.cpp:2149
2149       if (!m_ptrs->m_base_window)
(gdb)
ns_smartptr<nsIBaseWindow>::operator! (this=0x8166540) at nsptr.h:85
85           return (p == 0);
(gdb)
86       }
(gdb)
wxWebControl::wxWebControl (this=0x8166260, parent=0x814ed88, id=9001,
    pos=..., size=...) at webcontrol.cpp:2156
2156       m_ptrs->m_web_browser->SetContainerWindow(static_cast<nsIWebBrowserChrome*>(m_chrome));
(gdb)
ns_smartptr<nsIWebBrowser>::operator-> (this=0x8166530) at nsptr.h:80
80           return p;
(gdb)
81       }
(gdb)

(process:31421): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.28.6/./gobject/gtype.c:2712: You forgot to call g_type_init()

(process:31421): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:31421): Gdk-CRITICAL **: IA__gdk_screen_get_rgb_visual: assertion `GDK_IS_SCREEN (screen)' failed

Program received signal SIGSEGV, Segmentation fault.
0x01be37b4 in ?? ()
   from /home/jarrett/workspace/webconnect/testapp/../xr/libxul.so
(gdb)


As far as I know, the 'g_type_init()' is about initializing the gtk? Or something like that? I find it odd I get this error considering this is wxWidgets compiled for X11, not gtk+. I'll keep fiddling I suppose, hopefully I'll find something..
chisser98
Registered User
 
Posts: 4
Joined: Fri Oct 07, 2011 12:28 pm

Re: testapp won't work in Lubuntu 11.04

Postby chisser98 on Fri Oct 07, 2011 4:19 pm

eugh.

Just recompiled the wxWidgets library to use gtk, then recompiled webconnect and testapp and...it works now! hazza!

I don't know why webconnect/testapp wouldn't compile with the wxWidgets gtk libraries in the first place, but for some reason they did this time.

Anyway, cheers.
chisser98
Registered User
 
Posts: 4
Joined: Fri Oct 07, 2011 12:28 pm

Return to wxWebConnect Questions, Thoughts & Feedback