Doesn't open on OS X 10.10.5 (SOLVED)

I’ve set the application to be allowed to run. I click the icon, Defold shows up in the dock, and then closes immediately. Nothing shows up, no crash report or ‘damaged file’ warning. Maybe there are some extra steps I should do to run it?

Perhaps you can open it via a Terminal console, and it will say something then?

Just to make sure, it’s a 64 bit machine you’re running?

It is 64 bit, Mac mini 2014.

I’m not sure if I did it the right way but there’s nothing so far.

Yes, opening the application doesn’t output any log to stdout.

But, if you launch the executable directly like so:

$ /Applications/Defold.app/Contents/MacOS/Defold
andrews-Mac-mini:~ andrew$ /Applications/Defold.app/Contents/MacOS/Defold
INFO:TOOLS: Launcher version 5295afb3878441fb12f497df8831148525dcfb10
DEBUG:TOOLS: arg 0: /Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/bin/java
DEBUG:TOOLS: arg 1: -cp
DEBUG:TOOLS: arg 2: /Applications/Defold.app/Contents/Resources/packages/defold-95fcc9ca28d33583c7103c40c0c54cc73143e322.jar
DEBUG:TOOLS: arg 3: -Xdock:icon=/Applications/Defold.app/Contents/Resources/logo.icns
DEBUG:TOOLS: arg 4: -Xdock:name=Defold
DEBUG:TOOLS: arg 5: -Dfile.encoding=UTF-8
DEBUG:TOOLS: arg 6: -Djna.nosys=true
DEBUG:TOOLS: arg 7: -Ddefold.launcherpath=/Applications/Defold.app/Contents/MacOS/Defold
DEBUG:TOOLS: arg 8: -Ddefold.resourcespath=/Applications/Defold.app/Contents/Resources
DEBUG:TOOLS: arg 9: -Ddefold.version=1.2.166
DEBUG:TOOLS: arg 10: -Ddefold.editor.sha1=95fcc9ca28d33583c7103c40c0c54cc73143e322
DEBUG:TOOLS: arg 11: -Ddefold.engine.sha1=5295afb3878441fb12f497df8831148525dcfb10
DEBUG:TOOLS: arg 12: -Ddefold.buildtime=2020-03-03T08:33:37.232333
DEBUG:TOOLS: arg 13: -Ddefold.channel=editor-alpha
DEBUG:TOOLS: arg 14: -Djava.net.preferIPv4Stack=true
DEBUG:TOOLS: arg 15: -Dsun.net.client.defaultConnectTimeout=30000
DEBUG:TOOLS: arg 16: -Dsun.net.client.defaultReadTimeout=30000
DEBUG:TOOLS: arg 17: -Djogl.texture.notexrect=true
DEBUG:TOOLS: arg 18: -Dglass.accessible.force=false
DEBUG:TOOLS: arg 19: --illegal-access=warn
DEBUG:TOOLS: arg 20: --add-opens=java.base/java.lang=ALL-UNNAMED
DEBUG:TOOLS: arg 21: --add-opens=java.desktop/sun.awt=ALL-UNNAMED
DEBUG:TOOLS: arg 22: --add-opens=java.desktop/sun.java2d.opengl=ALL-UNNAMED
DEBUG:TOOLS: arg 23: --add-opens=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
DEBUG:TOOLS: arg 24: -Xmx6442450944
DEBUG:TOOLS: arg 25: com.defold.editor.Main
DEBUG:TOOLS: arg 26: (null)
Error: dl failure on line 542
Error: failed /Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib, because dlopen(/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib, 10): no suitable image found.  Did find:
	/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib: code signature invalid for '/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib'
1 Like

Hmm, did notice recently that our code signing certificate expired, and I wonder if this is one way it would manifest itself.

Could you please try this BETA build if that works better?

andrews-Mac-mini:~ andrew$ /Applications/Defold.app/Contents/MacOS/Defold
INFO:TOOLS: Launcher version b4180f640c66d47456ca628a0918d7f0172529e3
DEBUG:TOOLS: arg 0: /Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/bin/java
DEBUG:TOOLS: arg 1: -cp
DEBUG:TOOLS: arg 2: /Applications/Defold.app/Contents/Resources/packages/defold-b4180f640c66d47456ca628a0918d7f0172529e3.jar
DEBUG:TOOLS: arg 3: -Xdock:icon=/Applications/Defold.app/Contents/Resources/logo.icns
DEBUG:TOOLS: arg 4: -Xdock:name=Defold
DEBUG:TOOLS: arg 5: -Dfile.encoding=UTF-8
DEBUG:TOOLS: arg 6: -Djna.nosys=true
DEBUG:TOOLS: arg 7: -Ddefold.launcherpath=/Applications/Defold.app/Contents/MacOS/Defold
DEBUG:TOOLS: arg 8: -Ddefold.resourcespath=/Applications/Defold.app/Contents/Resources
DEBUG:TOOLS: arg 9: -Ddefold.version=1.2.167
DEBUG:TOOLS: arg 10: -Ddefold.editor.sha1=b4180f640c66d47456ca628a0918d7f0172529e3
DEBUG:TOOLS: arg 11: -Ddefold.engine.sha1=b4180f640c66d47456ca628a0918d7f0172529e3
DEBUG:TOOLS: arg 12: -Ddefold.buildtime=2020-03-16T06:54:31.532273
DEBUG:TOOLS: arg 13: -Ddefold.channel=beta
DEBUG:TOOLS: arg 14: -Djava.net.preferIPv4Stack=true
DEBUG:TOOLS: arg 15: -Dsun.net.client.defaultConnectTimeout=30000
DEBUG:TOOLS: arg 16: -Dsun.net.client.defaultReadTimeout=30000
DEBUG:TOOLS: arg 17: -Djogl.texture.notexrect=true
DEBUG:TOOLS: arg 18: -Dglass.accessible.force=false
DEBUG:TOOLS: arg 19: --illegal-access=warn
DEBUG:TOOLS: arg 20: --add-opens=java.base/java.lang=ALL-UNNAMED
DEBUG:TOOLS: arg 21: --add-opens=java.desktop/sun.awt=ALL-UNNAMED
DEBUG:TOOLS: arg 22: --add-opens=java.desktop/sun.java2d.opengl=ALL-UNNAMED
DEBUG:TOOLS: arg 23: --add-opens=java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
DEBUG:TOOLS: arg 24: -Xmx6442450944
DEBUG:TOOLS: arg 25: com.defold.editor.Main
DEBUG:TOOLS: arg 26: (null)
Error: dl failure on line 542
Error: failed /Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib, because dlopen(/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib, 10): no suitable image found.  Did find:
	/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib: code signature invalid for '/Applications/Defold.app/Contents/Resources/packages/jdk11.0.1/lib/server/libjvm.dylib'

It doesn’t open either.

Related?

1 Like

It seems that codesign chooses algorithm based on the min osx version the binary is built with, and in this case OpenJDK 11 is built with 10.13.

Is it even possible to run that on OSX 10.10 then?
My gut feeling says no, but perhaps I’m mistaken.

Could you try installing OpenJDK 11 and run it? If that works, that’s good news for us :slight_smile:

1 Like
andrews-Mac-mini:~ andrew$ /Applications/jdk-11.0.2.jdk/Contents/MacOS/libjli.dylib 
-bash: /Applications/jdk-11.0.2.jdk/Contents/MacOS/libjli.dylib: Permission denied
andrews-Mac-mini:~ andrew$ /Applications/jdk-11.jdk/Contents/MacOS/libjli.dylib 
-bash: /Applications/jdk-11.jdk/Contents/MacOS/libjli.dylib: Permission denied

I really don’t know if I installed and ran it correctly. I tried both ‘just’ 11th and latest 11th.

1 Like

The .dylib’s aren’t runnable directly. Instead find the executable (“java”) and try:

$ /Applications/jdk-11.0.2.jdk/Contents/Home/bin/java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
1 Like
andrews-Mac-mini:~ andrew$ /Applications/jdk-11.0.2.jdk/Contents/Home/bin/java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

It outputs the same thing as you posted.

1 Like

@AndrewLikesApples You can download an unsigned version of the editor by replacing .dmg with .zip in the download URL:

https://d.defold.com/archive/5295afb3878441fb12f497df8831148525dcfb10/editor-alpha/editor2/Defold-x86_64-darwin.zip

Can you please try this version instead?

2 Likes

It worked. Thank you!

2 Likes