Skip to content

Calling exit() using FX2D renderer doesn’t stop program. #2

Open
@rhpenguins

Description

@rhpenguins

Description

Calling exit() using FX2D renderer doesn’t stop the program.

Expected Behavior

When exit() is called in the program the Java app doesn't properly shut down, and throws an error: Not on FX application thread; currentThread = JavaFX Application Thread. The only way to fully exit the sketch is to stop it from within the IDE.

It seems that this only affects Mac users.

Current Behavior

Steps to Reproduce

void setup() {
  size(100,100,FX2D);
  exit();
}

Your Environment

  • Processing version: 3.4
  • Operating System and OS version: MacOS High Sierra
  • Other information: MacBook Air

Possible Causes / Solutions

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedMany hands make light work. Please help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions