This discussion is archived
1 Reply Latest reply: Jan 5, 2013 3:09 AM by svanimpe RSS

Crash when using custom font

svanimpe Newbie
Currently Being Moderated
I'm trying to use FontAwesome for its neat icons, and started off by doing this:
public void start(Stage primaryStage) {
    Label label = new Label("\uf067\uf044\uf014");
    label.setFont(Font.loadFont(getClass().getResourceAsStream("/resources/fonts/awesome.otf"), 28));

    StackPane root = new StackPane();

    Scene scene = new Scene(root, 300, 250);

    primaryStage.setTitle("Custom Font");
This code seems to work, except for the following problems:

* Only the bottom left part of each icon is shown.
* When I close my application, Java crashes with the following error:

Process: java [838]
Path: /Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin/java
Identifier: java
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: java [737]
User ID: 501

Date/Time: 2013-01-04 14:21:46.619 +0100
OS Version: Mac OS X 10.8.2 (12C60)
Report Version: 10

Interval Since Last Report: 229291 sec
Crashes Since Last Report: 7
Per-App Crashes Since Last Report: 6
Anonymous UUID: 26E79257-64B7-7EBA-1423-94B8139F71D1

Crashed Thread: 25 Java: Thread-6

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (t->numPointers == 0), function tsi_DeleteMemhandler, file src/tsimem.c, line 89.

(and so on ... I can't post the complete error message here because the forum won't allow a post that long)

Does anyone have any idea what's happening here, or should I just file a bug ?

I'm using JDK 7u10 on Mac OS 10.8.2


  • Correct Answers - 10 points
  • Helpful Answers - 5 points