Bug Issue: Stencyl will not launch on OS X Mojave

Pages: 1


  • Junior Stencyler
January 31, 2019, 10:36:53 am
Hello, just downloaded a fresh version of Stencyl. It tries to open then the app simply closes with not error message at all, not even on the Terminal. The only thing I could find was by going to the Console app and searching for Stencyl:

Code: [Select]
default 18:27:50.952128 +0000 loginwindow -[PersistentAppsSupport applicationReady:] | App: Stencyl, ready, updating active tracking timer
default 18:27:50.952473 +0000 loginwindow -[ApplicationManager checkInAppContext:refCon:eventData:] |      checked in app : Stencyl
default 18:27:51.756580 +0000 loginwindow -[ApplicationManager checkInAppContext:refCon:eventData:] |      checked in app : Stencyl
default 18:27:51.800468 +0000 loginwindow -[PersistentAppsSupport applicationReady:] | App: Stencyl, ready, updating active tracking timer
default 18:27:52.036673 +0000 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier com.stencyl.Stencyl, type: 0: 0x7fbb0f11fed0 at /Applications/Stencyl/Stencyl.app
error 18:27:52.092029 +0000 tccd spooky magic for /Applications/Stencyl/Stencyl.app/Contents/MacOS/Stencyl (622F2123)
default 18:27:55.252841 +0000 loginwindow -[PersistentAppsSupport applicationQuit:] | for app:Stencyl, _appTrackingState = 2
default 18:27:55.252893 +0000 loginwindow -[PersistentAppsSupport applicationQuit:] | App: Stencyl, quit, updating active tracking timer

And I can't really see any errors there.

Please help!


Aha, by running:

java -jar sw.jar

I got more info:

Code: [Select]
2019-01-31 18:42:24,464 INFO  [main] stencyl.sw.Launcher: Current Working Directory: /Applications/Stencyl
2019-01-31 18:42:24,465 INFO  [main] stencyl.sw.Launcher: Invoked with arguments: []
2019-01-31 18:42:25,888 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread main: null
at stencyl.sw.Splash.<init>(Splash.java:61)
at stencyl.sw.Splash.<init>(Splash.java:123)
at stencyl.sw.Splash.displaySplash(Splash.java:218)
at stencyl.sw.Splash.displaySplashFirstTime(Splash.java:208)
at stencyl.sw.Launcher.main(Launcher.java:94)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at stencyl.sw.util.Util.<clinit>(Util.java:96)
... 5 more
java.lang.NoClassDefFoundError: Could not initialize class stencyl.sw.util.Util
at stencyl.sw.util.dg.StencylDialog.<clinit>(StencylDialog.java:58)
at stencyl.sw.UncaughtExceptionHandler.showErrorMessage(UncaughtExceptionHandler.java:126)
at stencyl.sw.UncaughtExceptionHandler.access$000(UncaughtExceptionHandler.java:17)
at stencyl.sw.UncaughtExceptionHandler$1.run(UncaughtExceptionHandler.java:59)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

My java version:

Code: [Select]
java --version
java 11 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
« Last Edit: January 31, 2019, 10:48:18 am by Kakubei »


  • Master Stencyler
  • *
January 31, 2019, 01:59:22 pm
It's tripping up on this line.

Code: [Select]
String JAVA_VERSION = System.getProperty("java.version");
String JAVA_MAJOR_MINOR = JAVA_VERSION.split("\\.")[0] + "." + JAVA_VERSION.split("\\.")[1];

Looks like the version format has changed once again with Java 11, great.


  • Master Stencyler
  • *
January 31, 2019, 03:59:49 pm
Okay, it turns out that this only happens for Java 11. I only tested with 11.0.1, so I missed this.

This is fixed in b10253 in private releases. Until the next public release, you can use a different Java version. 11.0.1 and 11.0.2 should both be okay.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin

Pages: 1


  • Reported
    January 31, 2019, 10:36:53 am
  • Updated
    January 31, 2019, 03:59:49 pm

  • View Status
  • Type
  • Status
  • Priority
  • Version
    Stencyl 3.5
  • Fixed in
  • Assigned to
  • Category
    Updating Stencyl