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: 1195
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: 30298
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: 1195
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: 1195
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: 6422
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: 1195
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 message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6422
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
Previous Topic:Synchronization in ValidateAction's Diagnostician
Next Topic:EMF Element Binding to TreeViewer
Goto Forum:
  


Current Time: Tue Jul 16 05:58:54 GMT 2019

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

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

Back to the top