Java Design view crashes eclipse

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Java Design view crashes eclipse

Postby hideosuhog » Tue Feb 12, 2008 2:46 pm

Just started using GWT designer in order to learn GWT and came instantly upon a problem with graphics. This nearly put me off as you sort of expect a hello world to work propely first time. Whenever I opened imageViewer.java in design mode eclipse crashed. Something to do with Apple Graphics I thought

MacBook Pro, OSX 10.5.2 (leopard) , Eclipse 3.3.1
GWT Leopard 1.4.61

Finally narrowed it down to a problem with Apple AWT incompatible with SWT and after a lot of googling and some memories from the distant past found this fix

-Djava.awt.headless=true

Show package contents of eclipse.app >> contents >> macos >> eclipse.ini
Just add the previous line to your eclipse.ini

Hope this helps others :D cost me half a day. :cry:
hideosuhog
 
Posts: 3
Joined: Tue Feb 12, 2008 2:25 pm

Re: Java Design view crashes eclipse

Postby Eric Clayberg » Tue Feb 12, 2008 4:37 pm

The error you are seeing is a well known Eclipse problem with Leopard. It is definitley not a GWT Designer issue. Fortunately, that problem has been resolved in newer Eclipse builds.

As stated earlier in this forum, if you use Eclipse 3.4M4/M5 or any recent Eclipse 3.3.2 build, you should be OK. You don't want to be using Eclipse 3.3.1.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Java Design view crashes eclipse

Postby hideosuhog » Wed Feb 13, 2008 5:09 am

Thankyou - of course you are right it is a Macos Eclipse problem

I tend NOT to do my "painting on a moving canvas", as continuous changes of OS /libs cause headaches and is bad practice in my view. However, having taken your advice and upgraded to the latest M5 milestone the problem is resolved. Hopefully there will be a full release of Eclipse - Ganymede soon.

As far as I can see Eclipse 3.3.1 is the latest non-milestone release from eclipse.org. 3.3.2 is just a Maintainance release and due on 18th Feb while Ganymede is not fully released until June.

What I am hoping is that m5 does not break MyEclipse 6.0.1 which specifically specifies Eclipse 3.3.1
hideosuhog
 
Posts: 3
Joined: Tue Feb 12, 2008 2:25 pm

Re: Java Design view crashes eclipse

Postby Eric Clayberg » Wed Feb 13, 2008 5:31 am

If MyEclipse needs 3.3.1, it would probably work with any of the 3.3.2 builds.

The Eclipse fixes for OSX 10.5 are all post-3.3.1.1 (in fact, if you are using v3.3.1 and not v3.3.1.1, you are also using an Eclipse version with known severe memory usage issues).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Java Design view crashes eclipse

Postby hideosuhog » Wed Feb 13, 2008 6:57 am

I suppose this is getting somewhat off the thread but I can confirm that

MyEclipse 6.0.1 does work with Eclipse-Europa 3.3.2 and GWTdesigner
MyEclipse 6.0.1 does not work with Eclipse-Ganymede M5

GWTdesigner does work with Eclipse-Ganymede M5

Insofar as I have checked that Java design view of GWTdesigner works fine.
No fault found with GWT designer

Thanks for your time.
hideosuhog
 
Posts: 3
Joined: Tue Feb 12, 2008 2:25 pm

Re: Java Design view crashes eclipse

Postby Eric Clayberg » Wed Feb 13, 2008 8:37 am

hideosuhog wrote:MyEclipse 6.0.1 does work with Eclipse-Europa 3.3.2 and GWTdesigner
MyEclipse 6.0.1 does not work with Eclipse-Ganymede M5
GWTdesigner does work with Eclipse-Ganymede M5
Insofar as I have checked that Java design view of GWTdesigner works fine.
No fault found with GWT designer.

Thanks for the update.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Java Design view crashes eclipse

Postby MikeHigginbotham » Mon Feb 18, 2008 11:34 am

Eric, I am having the same problem but in Linux.

Upon creating a blank GWT project, the designer will crash upon clicking the .java file containing the entrypoint. The class can be opened using the "Open with" context menu and selecting any option besides "Designer".

Ubuntu 8.04 kernel 2.6.28-8
Eclipse 3.3.1.1 installed using the J2EE package
GWT Designer 4.0.0

Any help would be appreciated.

Thanks,
Mike
MikeHigginbotham
 
Posts: 2
Joined: Mon Feb 18, 2008 11:23 am

Re: Java Design view crashes eclipse

Postby Alexander.Mitin » Mon Feb 18, 2008 1:58 pm

What is the Mozilla version installed on your end (FireFox/xulrunner or something else)? Is there any VM crash logs? Please send one to wb-supportATinstantiationsDOTcom.
Also please note that Ubuntu 8.04 is not yet released (possibly you're using the alpha version), so we've never tested the GWT Designer on it and can't guarantee that it would work at Ubuntu 8.04 right now.
Alexander Mitin
Alexander.Mitin
Moderator
 
Posts: 155
Joined: Fri Jan 19, 2007 3:57 am

Re: Java Design view crashes eclipse

Postby MikeHigginbotham » Mon Feb 18, 2008 3:57 pm

Alexander, thanks for the response.

After messing with my configuration for a bit, I installed and switched to the Sun 1.5.0 jvm and that seems to have done the trick. Looks like this version of Ubuntu was using Java 6.

Mike
MikeHigginbotham
 
Posts: 2
Joined: Mon Feb 18, 2008 11:23 am

Re: Java Design view crashes eclipse

Postby Eric Clayberg » Wed Feb 20, 2008 6:04 am

Note that we always recommend using a JVM supplied by Sun.

The JVMs shipped with many of the Linux distributions often have problems.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Java Design view crashes eclipse

Postby desespero » Thu May 01, 2008 12:11 pm

I am facing the problem on Ubuntu 8.

I have installed jdk 5 (Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode))

When I try to run the application, i get this from the console window in eclipse.

Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8c101767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x8c1018b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x8bb211bd]
#3 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c3bdce]
#4 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c25d77]
#5 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c25ef3]
#6 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0x86c26136]
#7 [0xb13802bb]
#8 [0xb1377b6b]
#9 [0xb1377b6b]
#10 [0xb1375236]
#11 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7654eac]
#12 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7824aa8]
#13 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7654cdf]
#14 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d) [0xb76b27ed]
#15 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb732930d]
#16 [0xb137f7fa]
#17 [0xb1377a94]
#18 [0xb1375236]
#19 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7654eac]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x8c101767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0x8c10181e]
#2 /usr/lib/libX11.so.6 [0x8bb20518]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x8bb170a6]
#4 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c250b9]
#5 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c25303]
#6 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so [0x86c25fa1]
#7 /usr/lib/j2sdk1.5-sun/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0x86c26136]
#8 [0xb13802bb]
#9 [0xb1377b6b]
#10 [0xb1377b6b]
#11 [0xb1375236]
#12 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7654eac]
#13 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7824aa8]
#14 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so [0xb7654cdf]
#15 /usr/lib/j2sdk1.5-sun/jre/lib/i386/server/libjvm.so(JVM_DoPrivileged+0x32d) [0xb76b27ed]
#16 /usr/lib/j2sdk1.5-sun/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb732930d]
#17 [0xb137f7fa]
#18 [0xb1377a94]
#19 [0xb1375236]


Besides, the design tab still crashing my eclispe.

This problem is really killing my time!!!!
desespero
 
Posts: 1
Joined: Thu May 01, 2008 12:05 pm

Re: Java Design view crashes eclipse

Postby Eric Clayberg » Fri May 02, 2008 4:24 am

This is not a GWT Designer issue (which can be readily discovered with a Google search).

See the following for background and proposed solutions:

https://bugs.launchpad.net/xorg-server/+bug/185311

http://ubuntuforums.org/showthread.php?t=610457

I'll add this to my long list of reasons to hate Linux.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests