Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Opening a GEF editor crashes Eclipse with cairo error
Opening a GEF editor crashes Eclipse with cairo error [message #207044] Tue, 10 January 2006 10:37 Go to next message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Hi,

when I try to open a GEF editor (no matter whether it is one written by
me or e.g. the logic example), Eclipse crashes. The last output line i
see on the screen seems important here:

java: cairo-surface.c:273: cairo_surface_reference: Assertion
`surface->ref_count > 0' failed.

Eclipse display a last dialog:

JVM terminated. Exit code=1
/usr/bin/java
-Xmx768m
-jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/thm/Apps/Eclipse-3.1.1/./eclipse
-name Eclipse
-showsplash 600
-exitdata 498013
-data /home/thm/Apps/Workspace
-debug
-consolelog
-vm /usr/bin/java
-vmargs
-Xmx768m
-jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar


I start Eclipse like this and get the following output:
$ export MOZILLA_FIVE_HOME=/usr/lib/mozilla
$ cd ~/Apps/Eclipse-3.1.1
$ ./eclipse -data ~/Apps/Workspace -debug -consolelog -vmargs -Xmx768m
Start VM: /usr/bin/java
-Xmx768m
-jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /home/thm/Apps/Eclipse-3.1.1/./eclipse
-name Eclipse
-showsplash 600
-exitdata 498013
-data /home/thm/Apps/Workspace
-debug
-consolelog
-vm /usr/bin/java
-vmargs
-Xmx768m
-jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
Install location:
file:/home/thm/Apps/Eclipse-3.1.1/
Configuration file:
file:/home/thm/Apps/Eclipse-3.1.1/configuration/config.ini loaded
Configuration location:
file:/home/thm/Apps/Eclipse-3.1.1/configuration/
Framework located:
file:/home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.osgi_3 .1.1.jar
Framework classpath:
file:/home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.osgi_3 .1.1.jar
Splash location:

/home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.platform_3. 1.1/splash.bmp
runCommand:

</home/thm/Apps/Eclipse-3.1.1/./eclipse><-name><Eclipse><-showsplash ><600>< /home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.platform_3. 1.1/splash.bmp >
Debug options:
file:/home/thm/Apps/Eclipse-3.1.1/.options not found
Time to load bundles: 41
Starting application: 5745
java: cairo-surface.c:273: cairo_surface_reference: Assertion
`surface->ref_count > 0' failed.


System information:

Debian Sid, Linux 2.6.14
libcairo2 Debian package 1.0.2-3


I also compiled the cairo releases

http://cairographics.org/releases/cairo-1.0.2.tar.gz

and

http://cairographics.org/releases/cairo-1.0.0.tar.gz

myself but I got the same error. A fresh Eclipse+GEF install (started
only with "eclipse -data /path/to/workspace") gives the same error.

Any idea? Thanks and regards, Thomas.

--
Thomas Maier - Research Assistant - University of Kassel, Germany
Re: Opening a GEF editor crashes Eclipse with cairo error [message #207078 is a reply to message #207044] Tue, 10 January 2006 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Cairo is required by SWT. Try asking on the SWT newsgroup.

"Thomas Maier" <Thomas.Maier@uni-kassel.de> wrote in message
news:43C38E4D.1000800@uni-kassel.de...
> Hi,
>
> when I try to open a GEF editor (no matter whether it is one written by
> me or e.g. the logic example), Eclipse crashes. The last output line i
> see on the screen seems important here:
>
> java: cairo-surface.c:273: cairo_surface_reference: Assertion
> `surface->ref_count > 0' failed.
>
> Eclipse display a last dialog:
>
> JVM terminated. Exit code=1
> /usr/bin/java
> -Xmx768m
> -jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
> -os linux
> -ws gtk
> -arch x86
> -launcher /home/thm/Apps/Eclipse-3.1.1/./eclipse
> -name Eclipse
> -showsplash 600
> -exitdata 498013
> -data /home/thm/Apps/Workspace
> -debug
> -consolelog
> -vm /usr/bin/java
> -vmargs
> -Xmx768m
> -jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
>
>
> I start Eclipse like this and get the following output:
> $ export MOZILLA_FIVE_HOME=/usr/lib/mozilla
> $ cd ~/Apps/Eclipse-3.1.1
> $ ./eclipse -data ~/Apps/Workspace -debug -consolelog -vmargs -Xmx768m
> Start VM: /usr/bin/java
> -Xmx768m
> -jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
> -os linux
> -ws gtk
> -arch x86
> -launcher /home/thm/Apps/Eclipse-3.1.1/./eclipse
> -name Eclipse
> -showsplash 600
> -exitdata 498013
> -data /home/thm/Apps/Workspace
> -debug
> -consolelog
> -vm /usr/bin/java
> -vmargs
> -Xmx768m
> -jar /home/thm/Apps/Eclipse-3.1.1/./startup.jar
> Install location:
> file:/home/thm/Apps/Eclipse-3.1.1/
> Configuration file:
> file:/home/thm/Apps/Eclipse-3.1.1/configuration/config.ini loaded
> Configuration location:
> file:/home/thm/Apps/Eclipse-3.1.1/configuration/
> Framework located:
> file:/home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.osgi_3 .1.1.jar
> Framework classpath:
> file:/home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.osgi_3 .1.1.jar
> Splash location:
>
> /home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.platform_3. 1.1/splash.bmp
> runCommand:
>
> </home/thm/Apps/Eclipse-3.1.1/./eclipse><-name><Eclipse><-showsplash ><600>< /home/thm/Apps/Eclipse-3.1.1/plugins/org.eclipse.platform_3. 1.1/splash.bmp >
> Debug options:
> file:/home/thm/Apps/Eclipse-3.1.1/.options not found
> Time to load bundles: 41
> Starting application: 5745
> java: cairo-surface.c:273: cairo_surface_reference: Assertion
> `surface->ref_count > 0' failed.
>
>
> System information:
>
> Debian Sid, Linux 2.6.14
> libcairo2 Debian package 1.0.2-3
>
>
> I also compiled the cairo releases
>
> http://cairographics.org/releases/cairo-1.0.2.tar.gz
>
> and
>
> http://cairographics.org/releases/cairo-1.0.0.tar.gz
>
> myself but I got the same error. A fresh Eclipse+GEF install (started
> only with "eclipse -data /path/to/workspace") gives the same error.
>
> Any idea? Thanks and regards, Thomas.
>
> --
> Thomas Maier - Research Assistant - University of Kassel, Germany
Re: Opening a GEF editor crashes Eclipse with cairo error [message #207125 is a reply to message #207078] Wed, 11 January 2006 09:43 Go to previous message
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Randy Hudson schrieb:
> Cairo is required by SWT. Try asking on the SWT newsgroup.

Thanks Randy, just did that. I found old postings that gave me at least
a workaround that I list here, just for the next one stumbling into
this. When I comment out this one line in my code, it does not crash:

// connectionLayer.setAntialias(SWT.ON);

Regards, Thomas.
Previous Topic:actionbar and editor actions
Next Topic:Help me to disable BuilAll MenuItem from Project Menu
Goto Forum:
  


Current Time: Wed Apr 24 14:44:38 GMT 2024

Powered by FUDForum. Page generated in 0.02851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top