Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix threading in shape interpolation mode #282

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

igorpisarev
Copy link
Contributor

Just a minor fix for this exception that appears after exiting shape interpolation mode:

Exception in thread "pool-3-thread-1" java.lang.IllegalStateException: Not on FX application thread; currentThread = pool-3-thread-1
	at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:279)
	at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:423)
	at javafx.scene.Parent$2.onProposedChange(Parent.java:367)
	at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:113)
	at org.janelia.saalfeldlab.paintera.meshes.MeshManagerWithAssignmentForSegments.removeMeshes(MeshManagerWithAssignmentForSegments.java:245)
	at org.janelia.saalfeldlab.paintera.meshes.MeshManagerWithAssignmentForSegments.update(MeshManagerWithAssignmentForSegments.java:159)
	at org.janelia.saalfeldlab.paintera.meshes.MeshManagerWithAssignmentForSegments.lambda$0(MeshManagerWithAssignmentForSegments.java:113)
	at org.janelia.saalfeldlab.fx.ObservableWithListenersList.stateChanged(ObservableWithListenersList.java:29)
	at org.janelia.saalfeldlab.paintera.control.selection.SelectedSegments.update(SelectedSegments.java:65)
	at org.janelia.saalfeldlab.paintera.control.selection.SelectedSegments.lambda$0(SelectedSegments.java:35)
	at org.janelia.saalfeldlab.fx.ObservableWithListenersList.stateChanged(ObservableWithListenersList.java:29)
	at org.janelia.saalfeldlab.paintera.control.selection.SelectedIds.deactivateAll(SelectedIds.java:65)
	at org.janelia.saalfeldlab.paintera.control.selection.SelectedIds.deactivateAll(SelectedIds.java:57)
	at org.janelia.saalfeldlab.paintera.state.LabelSourceState.refreshMeshes(LabelSourceState.java:248)
	at org.janelia.saalfeldlab.paintera.control.ShapeInterpolationMode.doneApplyingMask(ShapeInterpolationMode.java:555)
	at org.janelia.saalfeldlab.paintera.control.ShapeInterpolationMode.lambda$1(ShapeInterpolationMode.java:210)
	at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:361)
	at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81)
	at javafx.beans.property.BooleanPropertyBase.fireValueChangedEvent(BooleanPropertyBase.java:103)
	at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
	at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
	at org.janelia.saalfeldlab.paintera.data.mask.MaskedSource.lambda$7(MaskedSource.java:464)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

@igorpisarev igorpisarev merged commit 7978436 into master Aug 5, 2019
@igorpisarev igorpisarev deleted the fix-shape-interpolation-threading branch August 5, 2019 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant