Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Eclipse crashes when editing Ecore models
Eclipse crashes when editing Ecore models [message #1804959] Wed, 03 April 2019 18:09 Go to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hello, EMF world,

Is anybody else finding that on Mac platform with the 2018-12 release (I cannot upgrade to 2019-03 for RCPTT reasons) the workbench crashes with a SIGSEGV in native code whenever you try to work with the Ecore Editor?

If I'm lucky, I can maybe edit a couple of properties of a couple of objects before the Properties View goes utterly blank and when I hit Cmd+S in a panic to save then SIGSEGV takes the process down and I lose my work. I can never create a new object in the Ecore editor *and* set a property of it. Maybe I can create two objects without setting any properties.

Other EMF-based editors don't seem to have this disastrous interaction between the editor and the Properties view. For example, I have no problems with the Oomph Setup Editor.

I have to resort to editing Ecore models in a text editor. I don't know where to start debugging.

Grateful for any insight, especially work-arounds that don't involve rolling back to Photon or earlier (I can't) or upgrading to 2019-03 (I can't).

Christian

---
Hardware Overview:

Model Name: MacBook Pro
Model Identifier: MacBookPro13,3
Processor Name: Intel Core i7
Processor Speed: 2.9 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 8 MB
Memory: 16 GB
Boot ROM Version: 254.0.0.0.0
SMC Version (system): 2.38f7

Software Overview:

MacOS Mojave v 10.14.4
Eclipse Modeling Package 2018-12
Re: Eclipse crashes when editing Ecore models [message #1805012 is a reply to message #1804959] Thu, 04 April 2019 15:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Sorry, I have no idea. :-( I have a Mac virtual box but haven't started it in quite some time. Does this seem to be new to 2018-12? What were you using previously that seemed not to have a problem?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1805044 is a reply to message #1805012] Thu, 04 April 2019 18:31 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Ed,

Nice to hear from you. Thanks for your interest; I know you're not a Mac user.

I do recall this happening with the 2018-09 release, and I had hoped maybe it would clear up with 2018-12 but then for some reason I didn't actually do hardly anything with Ecore models in quite some while. But now I feel the pain again.

-------- agh, bitten by the forum's crashing on Emoji again. Will I never learn --------

[Updated on: Thu, 04 April 2019 18:32]

Report message to a moderator

Re: Eclipse crashes when editing Ecore models [message #1805045 is a reply to message #1805044] Thu, 04 April 2019 18:31 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Ed,

Nice to hear from you. Thanks for your interest; I know you're not a Mac user.

I do recall this happening with the 2018-09 release, and I had hoped maybe it would clear up with 2018-12 but then for some reason I didn't actually do hardly anything with Ecore models in quite some while. But now I feel the pain again. :-/ I don't think I had this problem before the 2018-09 release and I'm fairly certain I used the Ecore editor in the 2018-06 release. Certainly Photon was okay, but that's quite old now.

Does this help? Sorry to be so vague, but with these frequent releases now it's all a blur and I don't remember what software I've used when. In any case, we can be fairly sure that it's an interaction specific to Eclipse on Mac (the Cocoa implementation of SWT) and as it's a crash in native code, it's almost certainly not an EMF bug but an SWT bug. It's just that the only context in which I see it is the Ecore editor's property sheet. I suppose it's possible that older releases of Eclipse would exhibit this problem if it's actually that SWT is interacting badly with the Cocoa framework only since a specific MacOS update.

cW
Re: Eclipse crashes when editing Ecore models [message #1805047 is a reply to message #1805045] Thu, 04 April 2019 19:01 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Christian

I'm not a Mac user either, but I note with passive interest some of the problem reports. IIRC they do not all come from you but also from other Papyrus developers. Your problem seems half familiar. You might try searching the JDT newsgroup, cross-project-dev, tycho-dev for Mac reports.

HTH

Regards

Ed Willink
Re: Eclipse crashes when editing Ecore models [message #1806149 is a reply to message #1805047] Fri, 03 May 2019 15:41 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

I think I may have new information about this problem (still happening in the 2019-03 release).

It is quite possible that it only happens in editing Ecore models that have documentation annotations. Just today, I was doing alright with the editor until I used the (really nice) menu action to create a new Genmodel annotation to put some documentation on an EReference. This killed my workbench. Trying the same again, killed again. Other Ecore models that I have difficulty editing already have annotations.

Perhaps there's something about the rich property sheet support for annotations that is the root cause?

Christian
Re: Eclipse crashes when editing Ecore models [message #1806153 is a reply to message #1806149] Fri, 03 May 2019 17:15 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Christian

Ed Merks added EAnnotationValidator support for Photon that enables known EAnnotation details to be validated. I added the corresponding validation of known OCL EAnnotations.

It is possible that some new complexity has arisen with respect to OCL EAnnotations that are 'embedded' in UML.

Sadly I cannot claim that my first release of the OCL EAnnotation validation was perfect.

Regards

Ed Willink
Re: Eclipse crashes when editing Ecore models [message #1817210 is a reply to message #1804959] Mon, 18 November 2019 15:04 Go to previous messageGo to next message
Dimo Petroff is currently offline Dimo PetroffFriend
Messages: 16
Registered: November 2018
Junior Member
I can confirm this problem with the latest eclipse release. It has plagued me and my colleagues, Mac and Windows users alike, for a few months now.
Re: Eclipse crashes when editing Ecore models [message #1817226 is a reply to message #1817210] Mon, 18 November 2019 16:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
I'd need some way to reproduce it, error logs, or core dumps, or something to track down any issues. If it's cross platform, it's less likely be be an SWT problem...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1817234 is a reply to message #1817226] Mon, 18 November 2019 19:22 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Are you sure it is happening regularly On Windows? I use current Windows releases and sadly get a few crashes (perhaps more than a few years ago, but recent crashes are always more annoying). However I have not regarded the Ecore Editor as a plausible suspect. Mostly it seems to be GIT views, and there are a couple of known crash fixes in the works for the GIT and other tool bars. IIRC one of them was last minute just before 2019-09.

Regards

Ed Willink
Re: Eclipse crashes when editing Ecore models [message #1817935 is a reply to message #1804959] Tue, 03 December 2019 11:03 Go to previous messageGo to next message
Andre Doerscheln is currently offline Andre DoerschelnFriend
Messages: 7
Registered: June 2015
Junior Member
I can also reproduce the issue by editing an EAttribute's name in the Ecore Editor on Windows 10 x64 in Eclipse 2019-09 with JDK 11.0.5.

I attached my crash log, maybe it helps solving the issue.
It looks like something is broken in the SWT control's native setFocus routine, as that's where the JVM gets the EXCEPTION_ACCESS_VIOLATION.
Re: Eclipse crashes when editing Ecore models [message #1817939 is a reply to message #1817935] Tue, 03 December 2019 12:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
I'm still on Windows 7 and don't see this. You could open an SWT bug with the log and hope that they recognize the problem reading the "tea leaves". The platform doesn't use the properties view much itself so won't tend to notice problems such as this...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1817945 is a reply to message #1817939] Tue, 03 December 2019 13:04 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'm on Windows 10, Java 8 and don't see this. I suggest that you do not push the Java currency beyond the limit. Java 11 was not released until after Eclipse 2019-09. I presume you have installed the upgrade to make it work at all, but no doubt there is a further problem. Please raise a Bugzilla with the repro.

Regards

Ed Willink
Re: Eclipse crashes when editing Ecore models [message #1818178 is a reply to message #1817945] Mon, 09 December 2019 14:09 Go to previous messageGo to next message
Matthias Bank is currently offline Matthias BankFriend
Messages: 6
Registered: September 2019
Junior Member
We also have the bug with our company PCs setup, log files attached. We are using mostly .xcore, but this is a very serious problem.

[Updated on: Mon, 09 December 2019 14:09]

Report message to a moderator

Re: Eclipse crashes when editing Ecore models [message #1818181 is a reply to message #1818178] Mon, 09 December 2019 15:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
There needs to be a Bugzilla opened. In the end, this appears to be an SWT problem; EMF isn't even on the stack! Unfortunately the SWT experts don't generally fix things without a test case and I have no expertise to fix such things.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1818182 is a reply to message #1818181] Mon, 09 December 2019 16:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

(Apologies for my outdated comment about Java 11 support. I forget how fast versions of Java move. It's Java 13 support that is marginal.)

Looking at the logs:

Event: 1013.038 Thread 0x000000000331f000 Exception <a 'java/io/FileNotFoundException'{0x00000006a3b7d530}> (0x00000006a3b7d530) thrown at [t:/workspace/open/src/hotspot/share/prims/jni.cpp, line 615]


or

Event: 67.634 Thread 0x0000000029b46800 Exception <a 'java/io/FileNotFoundException'> (0x000000072d7f11e8) thrown at [C:\workspace\8-2-build-windows-amd64-cygwin\jdk8u192\11897\hotspot\src\share\vm\prims\jni.cpp, line 709]


suggests that this might be one of the horrible problems whereby a Java byte code is going astray.

No chance of a fix without a repro. But possibly precise config information may correlate a failing Java build version with respect to a Java execute version.

Regards

Ed Willink
Re: Eclipse crashes when editing Ecore models [message #1818183 is a reply to message #1818182] Mon, 09 December 2019 17:14 Go to previous messageGo to next message
Matthias Bank is currently offline Matthias BankFriend
Messages: 6
Registered: September 2019
Junior Member
I have the bug with jdk1.8.0_192. The JDK version could indeed cause the problem, with Java 11 and a similar setup I don't have the bug.
Re: Eclipse crashes when editing Ecore models [message #1820710 is a reply to message #1818183] Mon, 27 January 2020 13:29 Go to previous messageGo to next message
Bernhard Dorninger is currently offline Bernhard DorningerFriend
Messages: 6
Registered: July 2009
Junior Member
I am also experiencing these crashes. Up to a level, which makes working with ECore editors impossible.

Scenario: Rather large Ecore model (--> The AST metamodel from the Eclipse MoDisco project).
Opening any EClass and try to edit attributes, properties or whatever results in an immediate crash.
Problem occurs with either the Ecore Sample editor, the reflective editor or the Exeed editor

Doesn't matter if i started Eclipse with an Java 8 VM (231) or Java 11 (11.0.4).
I am using Windows 10 as OS.
Looking thru the pid files, it seems the 11.04 crash has different reasons than the one with jdk8. But I am not an expert in analyzing crashdump files....

Regards,
Bernhard

PS: Is there already a Bugzilla entry? Couldn't find one




Re: Eclipse crashes when editing Ecore models [message #1820714 is a reply to message #1820710] Mon, 27 January 2020 14:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
They all seem to boil down to native code in SWT related to org.eclipse.swt.internal.win32.OS.SetFocus. This is not something that can be fixed in EMF; it doesn't even appear in the stack trace. It seems this problem happens only on Windows 10, so I am not able to reproduce that with my current machine.

I don't think anyone has opened a bug, but even if someone does, and I move it to SWT, the SWT developers are unlikely to fix it without some simple test case. And unfortunately the platform itself doesn't make much use of the properties view with cell editors, so they don't notice a problem like this.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1820715 is a reply to message #1820714] Mon, 27 January 2020 14:10 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
I did some searching and this looks similar:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=552203

That was presumably fixed by this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=551067

And that fix should be in the 2019-12 version.

Which Eclipse version are you using?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse crashes when editing Ecore models [message #1820742 is a reply to message #1820715] Tue, 28 January 2020 09:22 Go to previous messageGo to next message
Bernhard Dorninger is currently offline Bernhard DorningerFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Ed
Thanks for your help - really appreciate it. I was not expecting this issue to be fixed already - no wonder I found nothing searching for OPEN issues :-/
I use 2019-09, thus next thing I'll do is to do an update.
I'll keep you informed concerning the results....
regards,
Bernhard
Re: Eclipse crashes when editing Ecore models [message #1821109 is a reply to message #1820742] Wed, 05 February 2020 16:59 Go to previous message
Bernhard Dorninger is currently offline Bernhard DorningerFriend
Messages: 6
Registered: July 2009
Junior Member
So far, the problem does not occur anymore........
Thanx again
Previous Topic:Using custom xcore model in another
Next Topic:How to refer two different meta models (like autosar422 and 446)in one project
Goto Forum:
  


Current Time: Thu Apr 18 22:51:23 GMT 2024

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

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

Back to the top