On MacOS, can't run UECIDE 0.9.6 and newer

I am running MacOS 10.12.6 (Sierra). I have installed Java version "1.8.0_201".

I can install and run UECIDE versions up to 0.9.5.

Starting with UECIDE version 0.9.6 (when the MacOS package style was changed), UECIDE will open a splash screen and show the red progress bar on the bottom with the words "Application...", but it never proceeds any further.

Anyone have any ideas?

Comments

Maybe it doesn't like your

Maybe it doesn't like your older preferences file. Try deleting preferences.txt from your UECIDE data directory (Libraries/UECIDE possibly?)

The only sure-fire way of telling is to run UECIDE from a terminal (java -jar /Applications/UECIDE.app/Contents/Java/uecide.jar) and see what exceptions get generated.

Thanks! I tried running with

Thanks! I tried running with --reset-preferences from command line and received the following. Any more ideas?

java -jar /Applications/UECIDE.app/Contents/Java/uecide.jar --reset-preferences

All preferences reset to default! <<< Unable to configure environment - neither .bashrc nor .profile seem to exist 2019-02-14 19:12:37.719 java[14658:746862] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread.

Strange. It seems like a

Strange. It seems like a common enough error, but no one ever says how they solved it.

One thing you can try is to add the command line flag -XstartOnFirstThread immediately after the java command (before the -jar ... flag).

Ok, I've found the version of

Ok, I've found the version of JarBundler I was using is massively out of date. The newer version supports auto-setting of StartOnMainThread, which should fix things. I think I'll package up a new version of the DMG for testing - see if it fixes the problem for you.

Thanks! But it doesn't seem

Thanks! But it doesn't seem to have worked. Here is my launch from Terminal:

java -jar /Applications/UECIDE.app/Contents/Resources/Java/uecide.jar Unable to configure environment - neither .bashrc nor .profile seem to exist 2019-02-15 07:56:35.946 java[17640:977958] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handled correctly. This is probably because _TSGetMainThread was called for the first time off the main thread.

Oh, and Matt, here's the

Oh, and Matt, here's the -XstartOnFirstThread:

java -jar -XstartOnFirstThread /Applications/UECIDE.app/Contents/Resources/Java/uecide.jar Unable to configure environment - neither .bashrc nor .profile seem to exist java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/cores/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/plugins/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/extra/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/libraries/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/boards/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2678) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/compilers/binary-darwin-amd64/Packages.gz: null 0 packages can be upgraded. java.lang.NoSuchMethodError: com.apple.eawt.Application.addApplicationListener(Lcom/apple/eawt/ApplicationListener;)V at org.uecide.macosx.ThinkDifferent.init(ThinkDifferent.java:71) at org.uecide.macosx.Platform.init(Platform.java:65) at org.uecide.Base.(Base.java:651) at org.uecide.Base.main(Base.java:185)

This is the the

This is the the -XstartOnFirstThread with version 9.6:

java -jar -XstartOnFirstThread /Applications/UECIDE.app/Contents/Java/uecide.jar Unable to configure environment - neither .bashrc nor .profile seem to exist java.lang.NoSuchMethodError: com.apple.eawt.Application.addApplicationListener(Lcom/apple/eawt/ApplicationListener;)V at org.uecide.macosx.ThinkDifferent.init(ThinkDifferent.java:71) at org.uecide.macosx.Platform.init(Platform.java:74) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

I am just trying it in my VM

I am just trying it in my VM of HighSierra. The default download of 0.10.5 is working fine. I'm just installing the 1.8.0_201 JDK to see if that makes a difference.

I can't get it to fail. Well,

I can't get it to fail. Well, not much. We can ignore that main thread error - it's a red herring. You just need to run the java stub not use the java command line.

$ /Applications/UECIDE.app/Contents/MacOS/universalJavaApplicationStub

That will run things properly.

My experimental "somt" version of the DMG is broken though - that wants JRE 6 for some reason, and I know for a fact that it is configured for Java 8...

I can't get 0.10.5 to fail at all on HighSierra. Try running that stub command and tell me what it gives you. You can ignore the "can't download" errors - those are to be expected (see here)

When I run 0.9.6 that way, I

When I run 0.9.6 that way, I get the response below. I wonder if the kCFURLVolumeIsAutomountedKey missing for file is the key. It seems it is trying to reference a volume on an external drive that is not mounted. I may have originally installed Uecide on a different Mac and copied it to the current Mac where I don't use the external drive. How do I get it to stop referencing the external volume?

/Applications/UECIDE.app/Contents/MacOS/universalJavaApplicationStub

2019-02-15 21:39:32.895 universalJavaApplicationStub[18194:1040620] kCFURLVolumeIsAutomountedKey missing for file:///Volumes/Deskstar%20TM%20/: The file “Deskstar TM” couldn’t be opened because you don’t have permission to view it. Unable to configure environment - neither .bashrc nor .profile seem to exist 2019-02-15 21:39:32.946 universalJavaApplicationStub[18194:1040618] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. java.lang.NoSuchMethodError: com.apple.eawt.Application.addApplicationListener(Lcom/apple/eawt/ApplicationListener;)V at org.uecide.macosx.ThinkDifferent.init(ThinkDifferent.java:71) at org.uecide.macosx.Platform.init(Platform.java:74) at org.uecide.Base.(Base.java:639) at org.uecide.Base.main(Base.java:185)

Here is the same thing with

Here is the same thing with v0.10.4.

/Applications/UECIDE.app/Contents/MacOS/universalJavaApplicationStub 2019-02-15 21:40:25.459 universalJavaApplicationStub[18417:1042478] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'. 2019-02-15 21:40:25.475 universalJavaApplicationStub[18417:1042481] kCFURLVolumeIsAutomountedKey missing for file:///Volumes/Deskstar%20TM/: The file “Deskstar TM” couldn’t be opened because you don’t have permission to view it. Unable to configure environment - neither .bashrc nor .profile seem to exist java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/cores/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/plugins/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/extra/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/libraries/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/boards/binary-darwin-amd64/Packages.gz: null java.lang.NullPointerException at java.base/java.util.zip.InflaterInputStream.(InflaterInputStream.java:84) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:78) at java.base/java.util.zip.GZIPInputStream.(GZIPInputStream.java:92) at org.uecide.Source.getCompressedFileRes(Source.java:75) at org.uecide.Source.getPackages(Source.java:111) at org.uecide.APT.update(APT.java:259) at org.uecide.Base.initPackageManager(Base.java:2671) at org.uecide.Base.(Base.java:632) at org.uecide.Base.main(Base.java:185)

Error downloading /org/uecide/dist/dists/uecide/compilers/binary-darwin-amd64/Packages.gz: null 0 packages can be upgraded. java.lang.NoSuchMethodError: com.apple.eawt.Application.addApplicationListener(Lcom/apple/eawt/ApplicationListener;)V at org.uecide.macosx.ThinkDifferent.init(ThinkDifferent.java:71) at org.uecide.macosx.Platform.init(Platform.java:65) at org.uecide.Base.(Base.java:644) at org.uecide.Base.main(Base.java:185)

Are you sure it's Java 8 that

Are you sure it's Java 8 that it's using? I see that error happening to other people in other software with Java 9 and higher.

Ok, I can replicate this now

Ok, I can replicate this now by installing JDK 11. It instantly dies. It is something more than needs migrating to JDK >= 9.

Ok, so I can "cure" it by

Ok, so I can "cure" it by nobbling the whole of the "Think Different" class. I don't really see the point of it, and it's one less thing to worry about. I can always re-implement it in the future if it's really needed, but I doubt that very much.

Matt,

Matt,

Great job! That works! Thanks for the very quick responses! I sent in a donation in appreciation!