1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Not on FX application thread Exception when pausing bot

Discussion in 'Developer Support' started by Savior, Apr 12, 2016.

  1. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    Calling AbstractScript#pause() from a new thread will cause this:

    Code (Text):
    1. java.lang.IllegalStateException: Not on FX application thread; currentThread = Break-scheduler
    2.     at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:236)
    3.     at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:423)
    4.     at javafx.scene.Parent$2.onProposedChange(Parent.java:367)
    5.     at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:113)
    6.     at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:108)
    7.     at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(LabeledSkinBase.java:582)
    8.     at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(LabeledSkinBase.java:204)
    9.     at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$61(BehaviorSkinBase.java:197)
    10.     at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(MultiplePropertyChangeListenerHandler.java:55)
    11.     at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:89)
    12.     at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182)
    13.     at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    14.     at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:103)
    15.     at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:110)
    16.     at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:144)
    17.     at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:49)
    18.     at javafx.beans.property.StringProperty.setValue(StringProperty.java:65)
    19.     at javafx.scene.control.Labeled.setText(Labeled.java:145)
    20.     at nul.IIIiiIiIiiii.super(htb:56)
    21.     at nul.IIIiiIiIiiii.true(htb:272)
    22.     at nul.iiIIiIiIIiIi.super(fjc:135)
    23.     at com.runemate.game.api.script.framework.AbstractScript.pause(ivb:70)
    24.     at net.celestialproductions.api.game.antipattern.break_handler.BreakScheduler.lambda$consider$1(BreakScheduler.java:43)
    25.     at java.lang.Thread.run(Thread.java:745)
    26. javafx.fxml.LoadException:
    27. /C:/Users/Torben/RuneMate/temp/-731870424.res
    28.  
    29.     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
    30.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
    31.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    32.     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    33.     at nul.IiiIiiiIIIii.true(fp:122)
    34.     at nul.IiiIiiiIIIii.true(fp:202)
    35.     at nul.iiiiIIiiIiIi.<init>(eqb:6)
    36.     at nul.iiiiIIiIiiii.<init>(eqb:35)
    37.     at nul.iIIiIIiIiiIi.<init>(eqb:35)
    38.     at nul.iiIIIIiiIiIi.true(avb:11008)
    39.     at com.runemate.game.api.script.framework.core.LoopingThread$LTExceptionHandler.uncaughtException(lnb:98)
    40.     at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
    41.     at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
    42.     at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
    43.     at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:184)
    44.     at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
    45.     at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:103)
    46.     at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:110)
    47.     at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:144)
    48.     at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:49)
    49.     at javafx.beans.property.StringProperty.setValue(StringProperty.java:65)
    50.     at javafx.scene.control.Labeled.setText(Labeled.java:145)
    51.     at nul.IIIiiIiIiiii.super(htb:56)
    52.     at nul.IIIiiIiIiiii.true(htb:272)
    53.     at nul.iiIIiIiIIiIi.super(fjc:135)
    54.     at com.runemate.game.api.script.framework.AbstractScript.pause(ivb:70)
    55.     at net.celestialproductions.api.game.antipattern.break_handler.BreakScheduler.lambda$consider$1(BreakScheduler.java:43)
    56.     at java.lang.Thread.run(Thread.java:745)
    57. Caused by: java.lang.NullPointerException
    58.     at nul.iiiiIIiiIiIi.initialize(eqb:273)
    59.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    60.     ... 26 more
    61.  
     
  2. Best Answer:
    Post #2 by Arbiter, Apr 12, 2016
  3. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    @Cloud
    --- Double Post Merged, Apr 12, 2016, Original Post Date: Apr 12, 2016 ---
    Fixed for next build.
     

Share This Page

Loading...