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 W. Damus is currently offline Christian W. DamusFriend
Messages: 1199
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: 30693
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?
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 W. Damus is currently offline Christian W. DamusFriend
Messages: 1199
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 W. Damus is currently offline Christian W. DamusFriend
Messages: 1199
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: 6538
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 W. Damus is currently offline Christian W. DamusFriend
Messages: 1199
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: 6538
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: 6
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: 30693
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...
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: 6538
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: 30693
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...
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: 6538
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: 30693
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.
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: 6538
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 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.
Previous Topic:[CDO] Correctly configuring timeouts
Next Topic:[CDO] Schema Locked Exception after update to CDO 4.4
Goto Forum:
  


Current Time: Sun Dec 15 18:53:50 GMT 2019

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

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

Back to the top