archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
946 stars 269 forks source link

Archi on MacOS Big Sur 11 (and Eclipse 4.18 / Java issues) #669

Closed Phillipus closed 3 years ago

Phillipus commented 4 years ago

Opening this issue to track this.

Archi 4.7.1 will probably not work on MacOS Big Sur 11. There are a number of Eclipse / Java issues that need to be resolved. Here are some I've found:

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

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

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

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

If the Eclipse issues are fixed we might be able to create an Archi build for Big Sur but it will mean that we have to update to a later version of Eclipse (4.17 or 4.18). This will likely break a bunch of other things on other platforms as well.

Phillipus commented 4 years ago

There is a blocker to updating to Eclipse 4.17 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=566701

Basically, some of Eclipse 4.17's plug-ins specify a minimum of Java 11 to run. These plug-ins are used by Archi. However, Eclipse Product Export fails if any plug-in is set to use Java 11. (Product Export is what we use to export and build Archi's binaries.)

If this Eclipse issue is not resolved it will mean:

Phillipus commented 4 years ago

Note to self:

Archi.ini has this:

-vm
../jre/lib/jli/libjli.dylib

This also works:

-vm
../jre/bin

The Eclipse Oomph installer has it's own bundled JRE and:

-vm
../Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.macosx.x86_64_14.0.2.v20200815-0932/jre/lib/libjli.dylib
Phillipus commented 3 years ago

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=565913#c43 and replies.

We may need Eclipse 4.17 and:

-vm
../jre/bin/java
Phillipus commented 3 years ago

I downloaded MacOS Big Sur Public Beta 5 (20A5384c) and tested Archi 4.7.1 and an internal version built with Eclipse 4.17.

Both versions launch OK. No need to change anything with the -vm settings.

But it crashes randomly. Sometimes you cannot open a diagram at all without a total crash. The thumbnail view will crash it every time. The Palette is not drawn properly sometimes.

Basically, it's unusable.

I also tested Eclipe 4.17 itself to see how it handles diagrams that are created with the Eclipse Sirius project which is based on GEF/Draw2d/GMF (the Ecore Editor). Cannot open a digram at all (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=567722)

I suspect this is coming from Eclipse SWT.

As it stands Archi will not be usable on Big Sur if it is released like this.

Phillipus commented 3 years ago

More Eclipse issues:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=567754 https://bugs.eclipse.org/bugs/show_bug.cgi?id=567127 https://bugs.eclipse.org/bugs/show_bug.cgi?id=543796

Phillipus commented 3 years ago

Slightly better news.

It's our friend, the old Thumbnail bug #401 again! But this time it totally crashes,

I've added some more workarounds to the Thumbnail view so at least it doesn't completely crash.

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

Phillipus commented 3 years ago

Better news:

MacOS Big Sur 11.0.1 beta was released today and I tested Archi. There is no longer the crash when using the thumbnail view and there seems to be general overall improvements. But there are still many graphical issues.

Phillipus commented 3 years ago

Another couple of issues:

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

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

Might be better to wait until Eclipse 4.18 is released (16 December)

Phillipus commented 3 years ago

Might be better to wait until Eclipse 4.18 is released (16 December)

Yes.

After several more days of testing and trial error, Eclipse 4.18 (attempts) to fix more issues than 4.17 on Mac.

(Mac - 10% of Archi users, 90% of my time).

Phillipus commented 3 years ago

Might be better to wait until Eclipse 4.18 is released (16 December)

Yes, but there is a deal-breaker on Linux hi-res displays:

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

Edit - that bug is mostly fixed.

Phillipus commented 3 years ago

Another bug. This time a crasher:

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