Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 535099

Summary: [Releng] java: cairo-surface.c:930: cairo_surface_destroy
Product: [Modeling] Papyrus Reporter: Quentin Le Menez <quentin.lemenez>
Component: OthersAssignee: Quentin Le Menez <quentin.lemenez>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: ansgar.radermacher, Patrick.Tessier, pauline.deville
Version: 4.0.0   
Target Milestone: 4.6.0   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/123347
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=deb79b783915a81bde4f6181ccf508b88d03b98b
https://git.eclipse.org/r/123386
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=2a95730637244db8badd273a4fe2848854cdd92b
https://git.eclipse.org/r/123390
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=fd3d523b70f1fe8d3afb1e01d1510a0bb82e0938
https://git.eclipse.org/r/123391
https://git.eclipse.org/r/123394
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=2d9ec1c06aefba42992d39d4eece9f9bb5396c52
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=aeae046eecdb0427ba82d96a94c674af2458bd0f
https://git.eclipse.org/r/123395
https://git.eclipse.org/r/123396
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=526c2d3943531e41bc973e7f20fa2d6993a6db88
https://git.eclipse.org/r/123469
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=3e3d5a5619de8d64e0f0ae33b20ab321f03cfe6d
https://git.eclipse.org/r/123471
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=792cff68641458a4321a430fe9a920bacb196c50
Whiteboard:
Bug Depends on: 544501    
Bug Blocks:    

Description Quentin Le Menez CLA 2018-05-25 04:00:46 EDT
The current Jenkins master test is failing with the following message:
java: cairo-surface.c:930: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed.
Comment 1 Eclipse Genie CLA 2018-05-25 10:32:33 EDT
New Gerrit change created: https://git.eclipse.org/r/123347
Comment 2 Eclipse Genie CLA 2018-05-25 10:32:35 EDT
Gerrit change https://git.eclipse.org/r/123347 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=deb79b783915a81bde4f6181ccf508b88d03b98b
Comment 3 Eclipse Genie CLA 2018-05-26 12:29:54 EDT
New Gerrit change created: https://git.eclipse.org/r/123386
Comment 4 Eclipse Genie CLA 2018-05-26 12:38:18 EDT
Gerrit change https://git.eclipse.org/r/123386 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=2a95730637244db8badd273a4fe2848854cdd92b
Comment 5 Eclipse Genie CLA 2018-05-26 15:47:31 EDT
New Gerrit change created: https://git.eclipse.org/r/123390
Comment 6 Eclipse Genie CLA 2018-05-26 15:47:42 EDT
Gerrit change https://git.eclipse.org/r/123390 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=fd3d523b70f1fe8d3afb1e01d1510a0bb82e0938
Comment 7 Eclipse Genie CLA 2018-05-26 16:21:57 EDT
New Gerrit change created: https://git.eclipse.org/r/123391
Comment 8 Eclipse Genie CLA 2018-05-26 17:16:03 EDT
New Gerrit change created: https://git.eclipse.org/r/123394
Comment 9 Eclipse Genie CLA 2018-05-26 17:16:36 EDT
Gerrit change https://git.eclipse.org/r/123394 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=2d9ec1c06aefba42992d39d4eece9f9bb5396c52
Comment 10 Eclipse Genie CLA 2018-05-26 17:16:38 EDT
Gerrit change https://git.eclipse.org/r/123391 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=aeae046eecdb0427ba82d96a94c674af2458bd0f
Comment 11 Eclipse Genie CLA 2018-05-26 17:25:51 EDT
New Gerrit change created: https://git.eclipse.org/r/123395
Comment 12 Eclipse Genie CLA 2018-05-26 17:29:03 EDT
New Gerrit change created: https://git.eclipse.org/r/123396
Comment 13 Eclipse Genie CLA 2018-05-26 17:32:39 EDT
Gerrit change https://git.eclipse.org/r/123395 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=526c2d3943531e41bc973e7f20fa2d6993a6db88
Comment 14 Eclipse Genie CLA 2018-05-28 03:23:11 EDT
Gerrit change https://git.eclipse.org/r/123347 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=deb79b783915a81bde4f6181ccf508b88d03b98b
Comment 15 Eclipse Genie CLA 2018-05-28 11:37:40 EDT
New Gerrit change created: https://git.eclipse.org/r/123469
Comment 16 Eclipse Genie CLA 2018-05-28 11:40:52 EDT
Gerrit change https://git.eclipse.org/r/123469 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=3e3d5a5619de8d64e0f0ae33b20ab321f03cfe6d
Comment 17 Eclipse Genie CLA 2018-05-28 12:10:45 EDT
New Gerrit change created: https://git.eclipse.org/r/123471
Comment 18 Eclipse Genie CLA 2018-05-28 12:10:56 EDT
Gerrit change https://git.eclipse.org/r/123471 was merged to [bugs/535099-TestFailures].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=792cff68641458a4321a430fe9a920bacb196c50
Comment 19 Quentin Le Menez CLA 2018-05-29 08:33:21 EDT
So the issue seems to be emanating from the latest GMF_Runtime changes (post M6).
Comment 20 Quentin Le Menez CLA 2018-06-07 10:19:49 EDT
(In reply to Quentin Le Menez from comment #19)
> So the issue seems to be emanating from the latest GMF_Runtime changes (post
> M6).

The issue might have been linked to the aforementioned milestone as GMF_Runtime did not override a now required method (https://git.eclipse.org/r/#/c/123759/) which rendered the svg display impossible. the graphic renderer crashed.

I'll close this bug for now as applying the fix seems to resolve the problem and the batik dependency has been reverted.
Comment 21 Ansgar Radermacher CLA 2019-02-11 06:22:46 EST
Not sure if we need to re-open this bug (as it could be an SWT problem and or specific to my Linux/GTK installation): My Eclipse with Papyrus installed now crashes every 2nd time I start it during diagram opening with the error message mentioned by Quentin. I think, the problem appeared after I updated from 2018-12 to a nightly Papyrus.

My installation: Eclipse 2018-12 with a nightly Papyrus
GTK: 3.22.30 on a Linux Ubuntu 18.04
Comment 22 Quentin Le Menez CLA 2019-02-11 08:00:40 EST
What was the state of your workspace during crashes ? was it linked specifically to the svg display or has the error spread further ?
Comment 23 Ansgar Radermacher CLA 2019-02-11 11:38:07 EST
(In reply to Quentin Le Menez from comment #22)
> What was the state of your workspace during crashes ? was it linked
> specifically to the svg display or has the error spread further ?

The workspace was clean. It happened after a normal restart (of the debug instance). While it happened almost every 2nd start, I seems to be less often now, but I could not figure out in which situation the crash can be reproduced reliably.
Comment 24 Ansgar Radermacher CLA 2019-02-13 05:20:49 EST
Still lots of crashes, in particular during when zooming in and out.
Comment 25 Ansgar Radermacher CLA 2019-02-15 09:19:50 EST
The bug is reproducible with the Papyrus for robotics RPC on my machine. When opening a specific model (available on request), the bug is triggered with a high likelehood (almost always). The RPC can be downloaded from eclipse.org/papyrus/components/robotics.
Comment 26 Quentin Le Menez CLA 2019-06-14 06:03:04 EDT
for information to track it (Bug 544501):
4.12 M3 and earlier: fixed
4.12 RC1 and 4.12 GA: broken
I20190610-1800 and newer: fixed