Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Eclipse/papyrus crash
Eclipse/papyrus crash [message #1806917] Fri, 17 May 2019 14:26 Go to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Just got this error when I added a decision node on an activity diagram:
Quote:

java: ../../../../src/cairo-surface.c:953: cairo_surface_destroy: Assertion `(_cairo_atomic_int_get (&(&surface->ref_count)->ref_count) > 0)' failed.


Eclipse locked up for ~2min then silently disappeared taking my unsaved work with it which fortunately was not much.
Papyrus is version 4.3.201913131008
Eclipse is version 4.11.0.20190307-0500
Java version is openjdk 1.8.0_212
Platform is ubuntu based on debian stretch/sid.

Not much to go on I know. Is there a log file somewhere?
Is this a known issue and is it a Papyrus problem or an Eclipse problem?

Steve
Re: Eclipse/papyrus crash [message #1806922 is a reply to message #1806917] Fri, 17 May 2019 15:53 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 913
Registered: February 2011
Senior Member
Hi Stephen,

Unfortunately, Papyrus isn't well tested on Linux. Especially, depending on the version of Eclipse, either GTK2 or GTK3 may provide higher stability. I believe SWT dropped GTK2 support recently (Around Eclipse 2018/12), so there's not much you can do - you're stuck with GTK3 now

I believe this kind of error is related to SVG Rendering in Papyrus (Most likely to happen when lots of SVGs are involved, and the Activity Diagram uses SVGs for each non-rectangle node, including Decision Node). I'm not sure who's responsible for this kind of error (Is it a bug in SWT/GTK? Is it something that Papyrus/GMF/Batik SVG Renderer is doing wrong?), or how to investigate this

Regards,
Camille


Camille Letavernier
Re: Eclipse/papyrus crash [message #1806969 is a reply to message #1806922] Mon, 20 May 2019 11:11 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

well, while more people in the Papyurs development team use Windows, I'm a Linux user and regularly test current Papyrus versions. Concerning this error, it's apparently related to the use of SVG images. I've reported Bug 544501 - so far without resolution. I also tried to set the SWT_CAIRO environment variable, but this did not change the problem.

Best

Ansgar
Re: Eclipse/papyrus crash [message #1807031 is a reply to message #1806969] Tue, 21 May 2019 13:03 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Crashed on me 4 times yesterday. It seems to happen when a diagram, in this case an Activity Diagram, is zoomed in.

Steve
Re: Eclipse/papyrus crash [message #1807037 is a reply to message #1807031] Tue, 21 May 2019 14:56 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member
I can reproduce the problem, as soon as an SVG shape is shown in the diagram. A not very nice workaround is to disable SVG shapes via the following "style" setting: you loose graphical information, but avoid a crash.

* {
svgFile : "none"
}
Re: Eclipse/papyrus crash [message #1807044 is a reply to message #1807037] Tue, 21 May 2019 16:59 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Would that mean that you cannot zoom in or does Papyrus just use some other method to display the diagrams in that case?

Steve
Re: Eclipse/papyrus crash [message #1807067 is a reply to message #1807044] Wed, 22 May 2019 06:58 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 913
Registered: February 2011
Senior Member
Hi Stephen,

During zooming in/out, SVGs are re-rendered to match the new scale. There is no native SVG Rendering in Eclipse/Papyrus, so the SVGs are pre-processed to a bitmap based on the zoom level, and then displayed as bitmaps. When the zoom level changes, the bitmap has to be generated again to match the new definition.

So I can definitely imagine that zooming in and out with a lot of SVG increases the risk of crashes, since everything tends to indicate that SVG Rendering is part of the problem

Cheers,
Camille


Camille Letavernier
Re: Eclipse/papyrus crash [message #1807203 is a reply to message #1807067] Fri, 24 May 2019 15:04 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
I came across this bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=535214
which appears to be the same thing so I'm adding it for reference.

Steve
Re: Eclipse/papyrus crash [message #1807978 is a reply to message #1807203] Thu, 13 June 2019 14:58 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi Steve,

I'm happy that the problem is apparently no longer reproducible with milestone 3 of 2019-06, though there is no specific patch for the bug i.e. is likely solved as a side-effect of another bug. Can you please test by downloading a developer release?
Concerning 535214, I don't think the two are related - but I left the reference for the moment.

Ansgar
Re: Eclipse/papyrus crash [message #1807984 is a reply to message #1807978] Thu, 13 June 2019 16:15 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 228
Registered: March 2011
Location: Paris Saclay, France
Senior Member
See the messages from Eric Williams in Bug 544501. Apparently, the error is back in RC1 bug (and hopefully fixed in the release, not sure, If I understood this part).

Previous Topic:How to get Diagram from EditPart
Next Topic:PAprofile
Goto Forum:
  


Current Time: Mon Dec 16 02:49:03 GMT 2019

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

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

Back to the top