简体   繁体   中英

Eclipse SWT Browser crash (Linux 64Bit)

I have a eclipse project that uses the webbrowser from eclipse SWT which runs smoothly on my windows eclipse. I share the project (via SVN) and try to run it on my 64 Bit Linux system. I downloaded a stable swt version for 64 bit linux and imported it into my workspace.

but when i try to start the swt-webbrowser, i get this error:

(SWT:2882): Gtk-CRITICAL **: IA__gtk_window_group_remove_window: assertion 'window->group == window_group' failed

and the browser doesnt start.

It fits the eclipse-bug-discussion here but i dont really understand how I can fix it!

I had the same problem and finally came across this little gem that explains you can fix it by adding a couple of parameters to your eclipse.ini file.

Firstly, ensure that the xulrunner package is installed on your system. Then add the following two lines to eclipse.ini :

-Dorg.eclipse.swt.browser.DefaultType=mozilla
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/bin/xulrunner

If this doesn't work, you can try WebKit by adding this line instead:

-Dorg.eclipse.swt.browser.UseWebKitGTK=true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM