java.lang.IllegalStateException: Not on FX application thread; currentThread = Executor(Continuous-Checking): Thread(0)

GitHub | mbway | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    exception running fibonacci code

    GitHub | 5 months ago | mbway
    java.lang.IllegalStateException: Not on FX application thread; currentThread = Executor(Continuous-Checking): Thread(0)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not on FX application thread; currentThread = Executor(Continuous-Checking): Thread(0)

      at simulizer.utils.UIUtils.assertFXThread()
    2. simulizer.utils
      SafeJSObject.call
      1. simulizer.utils.UIUtils.assertFXThread(UIUtils.java:51)
      2. simulizer.utils.SafeJSObject.call(SafeJSObject.java:35)
      2 frames
    3. simulizer.ui.windows
      Editor.loadCurrentFile
      1. simulizer.ui.windows.Editor.loadCurrentFile(Editor.java:374)
      1 frame
    4. simulizer.ui.components
      CurrentFile.lambda$startContinuousChecking$6
      1. simulizer.ui.components.CurrentFile.tryGetEditor(CurrentFile.java:106)
      2. simulizer.ui.components.CurrentFile.loadFileWithoutPrompt(CurrentFile.java:281)
      3. simulizer.ui.components.CurrentFile.getCurrentText(CurrentFile.java:131)
      4. simulizer.ui.components.CurrentFile.lambda$startContinuousChecking$6(CurrentFile.java:337)
      4 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames