New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to launch JVM" on startup #193

Closed
mdietrich opened this Issue Mar 17, 2016 · 7 comments

Comments

Projects
None yet
5 participants
@mdietrich
Copy link

mdietrich commented Mar 17, 2016

On startup I get (on console):

$ ./Cryptomator
2016-03-17 13:34:48,324 INFO  [SingleInstanceManager:299] no running instance found
2016-03-17 13:34:48,706 INFO  [WebDavMounterProvider:39] Using MacOsXWebDavMounter
Exception in Application start method
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
    at com.sun.javafx.font.MacFontFinder.populateFontFileNameMap(MacFontFinder.java:99)
    at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1740)
    at com.sun.javafx.font.PrismFontFactory.getFontResource(PrismFontFactory.java:469)
    at com.sun.javafx.font.PrismFontFactory.createFont(PrismFontFactory.java:571)
    at com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:181)
    at javafx.scene.text.Font.font(Font.java:148)
    at javafx.scene.CssStyleHelper.deriveFont(CssStyleHelper.java:1643)
    at javafx.scene.CssStyleHelper.lookupFont(CssStyleHelper.java:1954)
    at javafx.scene.CssStyleHelper.lookup(CssStyleHelper.java:896)
    at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:678)
    at javafx.scene.Node.impl_processCSS(Node.java:9189)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1249)
    at javafx.scene.control.Control.impl_processCSS(Control.java:855)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Node.processCSS(Node.java:9056)
    at javafx.scene.Node.processCSS(Node.java:9049)
    at javafx.scene.Scene.doCSSPass(Scene.java:545)
    at javafx.scene.Scene.access$3600(Scene.java:159)
    at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2392)
    at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
    at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:381)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
    at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(QuantumToolkit.java:319)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
2016-03-17 13:34:50,994 DEBUG [WelcomeController:158] Current version: 1.0.0, lastest version: 1.0.0
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
    at com.sun.javafx.font.MacFontFinder.populateFontFileNameMap(MacFontFinder.java:99)
    at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1740)
    at com.sun.javafx.font.PrismFontFactory.getFontResource(PrismFontFactory.java:702)
    at com.sun.javafx.font.FallbackResource.getSlotResource(FallbackResource.java:282)
    at com.sun.javafx.font.PrismCompositeFontResource.getSlotResource(PrismCompositeFontResource.java:78)
    at com.sun.javafx.font.CompositeGlyphMapper.getSlotMapper(CompositeGlyphMapper.java:74)
    at com.sun.javafx.font.CompositeGlyphMapper.convertToGlyph(CompositeGlyphMapper.java:95)
    at com.sun.javafx.font.CompositeGlyphMapper.getGlyphCode(CompositeGlyphMapper.java:151)
    at com.sun.javafx.font.CharToGlyphMapper.charsToGlyphs(CharToGlyphMapper.java:84)
    at com.sun.javafx.text.PrismTextLayout.shape(PrismTextLayout.java:865)
    at com.sun.javafx.text.PrismTextLayout.layout(PrismTextLayout.java:1064)
    at com.sun.javafx.text.PrismTextLayout.ensureLayout(PrismTextLayout.java:223)
    at com.sun.javafx.text.PrismTextLayout.getBounds(PrismTextLayout.java:246)
    at com.sun.javafx.scene.control.skin.Utils.computeTextWidth(Utils.java:120)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.computeMinLabeledPartWidth(LabeledSkinBase.java:665)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.computeMinWidth(LabeledSkinBase.java:633)
    at javafx.scene.control.Control.computeMinWidth(Control.java:468)
    at javafx.scene.Parent.minWidth(Parent.java:943)
    at javafx.scene.layout.Region.minWidth(Region.java:1383)
    at javafx.scene.layout.Region.computeChildPrefAreaWidth(Region.java:1728)
    at javafx.scene.layout.HBox.getAreaWidths(HBox.java:457)
    at javafx.scene.layout.HBox.layoutChildren(HBox.java:627)
    at javafx.scene.Parent.layout(Parent.java:1087)
    at javafx.scene.Parent.layout(Parent.java:1093)
    at javafx.scene.Parent.layout(Parent.java:1093)
    at javafx.scene.Parent.layout(Parent.java:1093)
    at javafx.scene.Scene.doLayoutPass(Scene.java:552)
    at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2397)
    at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Toolkit.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:354)
    at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:381)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:510)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:490)
    at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(QuantumToolkit.java:319)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
    at com.sun.javafx.font.MacFontFinder.populateFontFileNameMap(MacFontFinder.java:99)
    at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1740)
    at com.sun.javafx.font.PrismFontFactory.getFontResource(PrismFontFactory.java:469)
    at com.sun.javafx.font.PrismFontFactory.createFont(PrismFontFactory.java:571)
    at com.sun.javafx.font.PrismFontLoader.font(PrismFontLoader.java:181)
    at javafx.scene.text.Font.font(Font.java:148)
    at javafx.scene.CssStyleHelper.deriveFont(CssStyleHelper.java:1643)
    at javafx.scene.CssStyleHelper.lookupFont(CssStyleHelper.java:1954)
    at javafx.scene.CssStyleHelper.lookup(CssStyleHelper.java:896)
    at javafx.scene.CssStyleHelper.transitionToState(CssStyleHelper.java:678)
    at javafx.scene.Node.impl_processCSS(Node.java:9189)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1249)
    at javafx.scene.control.Control.impl_processCSS(Control.java:855)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1280)
    at javafx.scene.Node.processCSS(Node.java:9056)
    at javafx.scene.Scene.doCSSPass(Scene.java:545)
    at javafx.scene.Scene.preferredSize(Scene.java:1643)
    at javafx.scene.Scene.impl_preferredSize(Scene.java:1720)
    at javafx.stage.Window$9.invalidated(Window.java:846)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
    at javafx.stage.Window.setShowing(Window.java:922)
    at javafx.stage.Window.show(Window.java:937)
    at javafx.stage.Stage.show(Stage.java:259)
    at org.cryptomator.ui.MainApplication.start(MainApplication.java:68)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
2016-03-17 13:34:52,092 DEBUG [Cryptomator:102] Shutting down
2016-03-17 13:34:52.450 Cryptomator[66921:13962595] Cryptomator:Failed to launch JVM

$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
$ javac -version
javac 1.7.0_80
@SecTec

This comment has been minimized.

Copy link

SecTec commented Mar 17, 2016

Hi,
maby it's because of your Java version?
https://cryptomator.org/downloads/#jarDownload
The site say

Requires JRE 8 + JCE unlimited strength policy files

@mdietrich

This comment has been minimized.

Copy link

mdietrich commented Mar 18, 2016

I am on Java 8 now:

$ java -version
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
$ javac -version
javac 1.8.0_74

JCE unlimited strength policy files are installed and working. Still the same.
BTW: I'm using the OSX-Version and no JAR-File.

Sounds to me like a font problem?
Caused by: java.lang.NullPointerException at com.sun.javafx.font.MacFontFinder.populateFontFileNameMap(MacFontFinder.java:99) at com.sun.javafx.font.PrismFontFactory.getFullNameToFileMap(PrismFontFactory.java:1740) at com.sun.javafx.font.PrismFontFactory.getFontResource(PrismFontFactory.java:469) at com.sun.javafx.font.PrismFontFactory.createFont(PrismFontFactory.java:571)

Thx!

@mdietrich

This comment has been minimized.

Copy link

mdietrich commented Mar 18, 2016

Found some evidence that this is an actual bug:
https://bugs.openjdk.java.net/browse/JDK-8089900

@mdietrich

This comment has been minimized.

Copy link

mdietrich commented Mar 18, 2016

FIXED. Just in case anyone else has this problem, here is my solution:

  • I made a copy of my fonts-directory
  • opened Apple Fonts Book and reset default fonts
  • started cryptomator => works. Quit app.
  • drag all fonts from my copy back into fonts book again
  • from now on cryptomator seems to work

@mdietrich mdietrich closed this Mar 18, 2016

@overheadhunter

This comment has been minimized.

Copy link
Member

overheadhunter commented Mar 18, 2016

@mdietrich Thanks for sharing your fix! I didn't have time to look into the issues list until now. This might help some other users 👍

@fredrikekelund

This comment has been minimized.

Copy link

fredrikekelund commented Sep 28, 2017

Hey, thanks for posting a fix for this! Just letting you know that I'm still encountering this issue with Cryptomator 1.3.1.

It's a bit of a cryptic issue for users to debug, since it opens just the application icon, and then gives no further feedback. Unfortunately, I'm not a Java developer, so I can't contribute – but for future first time users, it would be cool with a more permanent fix, if possible :)

@hkrutzer

This comment has been minimized.

Copy link

hkrutzer commented Nov 27, 2017

I also encountered this problem, removing my fonts fixed it, but I was not able to reinstall all my fonts and keep the program from crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment