Maybe somebody can help to find the cause for this strange problem, which limits me using Archi to great extend.
Recently I started to use Archi on the 2016 MBP 13" Touchbar. But it repeatedly crashes after one very specific action, namely moving an existing note element or selecting a new one from the palette and moving or pasting it in the view.
Editing text of existing note elements does not result in a crash, just like resizing or copying. But double clicking (after one or multiple times) does cause a crash.
Other Archi elements I've tested seem to work fine.
When I restart Archi after the crash the menu bar does not respond (no menu item dropdown). After closing and a second restart of Archi all seems to function again.
There is no error log file available/written to org.eclipse.ui.workbench (or any other place I searched)
OSX 10.12.1 crashlog mentions Exception Type: EXC_BAD_ACCESS (SIGABRT)
Both the old and new MBP have the same OS and Archi version. I tried to reinstall Archi 3.3.2 several times (and even version 4), but to no avail.
I also installed JDK 1.8, but with no resolution.
Any suggestions for further investigation or resolution welcome!
Is this happening on all models? Does it occur on a new, model with few elements?
Need to pinpoint the problem here. Try to eliminate some factors. Is it happening in all cases with new MBP?
If it turns out to be the mac Touchbar, then it's probably out of my control and may be an OS or Eclipse bug.
Yes, it happens on existing and newly (empty and from template) created models.
Yes, it happens in all cases where I create a new note by select-move or select-paste from the palette.
Is the note element (properties/behaviour) in some ways different from other types of elements (e.g. like business actor or process)?
And if so, are there other types of element that I could try to create/move/paste from the palette that share the same properties?
The Note figure is drawn differently in some ways. Does it do the same on Archi 4 beta?
Yes, it is the same with the Archi 4 beta.
One thing I noticed with repeated testing is that it crashes during drawing the note for the first time. The note symbol is displayed in the view for a very brief moment (0,25 sec) before the actual crash happens and the complete application disappears.
What about other note-like elements - Stickies and Blocks in the Canvas and Sketch views?
Indeed, creating Stickies and Blocks result in a crash as well (tested with Archi 4)
Wondering if it's caused by the text edit box opening when creating a new one, or by the drawing of the figure.
Any crash log should be here from menu:
Archi -> About Archi -> Installation Details -> Configuration - View Error Log
There are no crash logs. The button in the menu/form is greyed out and even in the org.eclipse.ui.workbench directory (where it should be) nothing can be found.
Seems that the crash does not even allow writing the logs.
It will be a system crash.
And you say it crashes just by moving a Note? I'm trying to find out if it's caused by drawing the figure, or when the initial edit event occurs.
No, its not the moving. It is after when I point the position of the new note or release the left mouse when dragging the new note.
I've tested with existing notes and indeed if the text box overlay of the note opens after clicking in it, it crashes.
Text editing in the properties window/form is no problem.
So it seems that opening the text overlay of the view object is causing the problem.
So when in the in-place edit box opens and when after dragging it to the new position? Two different things, right?
Yes, two different scenario's that both incorporate opening the in-place edit box of the note element.
And dragging an existing note element is not a problem because that does not open the in-place edit box.
OK, so it's only the in-place text edit box that causes it.
Yes. And I've tested a workaround for creating new notes in the view from the palette :)
Deselect "Edit name after creating new object from Palette"
in: Preferences > Diagram > General > View
I don't know why this is happening just on your MacBook. I have an old Mac with Sierra and it works OK. I have no way to debug this to narrow it down. In the code the class that handles this is:
com.archimatetool.editor.diagram.directedit.MultiLineTextDirectEditManager
It might be an Eclipse bug, or something else. If anyone who has one of these MacBooks could debug it by setting breakpoints in the Java class and try to locate what is triggering the crash.
So for the record this happens in the release version 3.3.2.
I did download the latest from git and run in Eclipse as you suggested and it's not happening there so I guess you/someone fixed it. Yeah, I'm replying to an old thread in case someone like me comes in doing a search and this is the first thread they find; they can see it's fixed in future versions but they have to use the workaround in the 3.3.2 version.
Cheers
See http://forum.archimatetool.com/index.php?topic=344.0