What to do with an JavaFX exception
Anthony Vanelverdinghe
anthonyv.be at outlook.com
Thu May 30 06:55:28 UTC 2019
Hi Petr
Tom is correct. In case you would find a bug in JavaFX, it should be filed at https://bugreport.java.com like any other Java bug.
Kind regards
Anthony
________________________________
From: openjfx-discuss <openjfx-discuss-bounces at openjdk.java.net> on behalf of Tom Schindl <tom.schindl at bestsolution.at>
Sent: Thursday, May 30, 2019 8:51:33 AM
To: Petr Nemecek
Cc: openjfx-discuss at openjdk.java.net
Subject: Re: What to do with an JavaFX exception
You need to interface with FX on the JavaFX thread.
Tom
Von meinem iPhone gesendet
> Am 30.05.2019 um 00:51 schrieb Petr Nemecek <pnem at cmail.cz>:
>
> Dear all,
>
> when making a call in a separate thread like this:
>
> myTableView.getSelectionModel().select(myItem);
>
> I sometimes (not every time...) get the exception see the stacktrace below.
>
> It looks to me like a bug somewhere in JavaFX code. Could I file this as a bug? Where?
>
> Many thanks,
> Petr
>
> ***
> java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -1 is negative
> at java.base/java.lang.System.arraycopy(Native Method)
> at javafx.collections.transformation.SortedList.removeFromMapping(SortedList.java:364)
> at javafx.collections.transformation.SortedList.addRemove(SortedList.java:398)
> at javafx.collections.transformation.SortedList.sourceChanged(SortedList.java:108)
> at javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:106)
> at javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
> at com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:164)
> at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
> at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
> at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
> at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
> at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
> at com.sun.javafx.collections.ObservableListWrapper.clear(ObservableListWrapper.java:157)
> at com.sun.javafx.scene.control.SelectedCellsMap.clear(SelectedCellsMap.java:202)
> at javafx.scene.control.TableView$TableViewArrayListSelectionModel.quietClearSelection(TableView.java:2815)
> at javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(TableView.java:2539)
> at com.rinkai.rinkairouting.scenes.main.DistanceMatrixController$1.call(DistanceMatrixController.java:200)
>
>
More information about the openjfx-discuss
mailing list