Uncaught exception occured in Thread[#33,JavaFX Appliaction Thread,5,main]

Hi dear,
I am using Jabref 5.12 on Windows 10.
Since yesterday I cannot with Jabref, because of following exception error:
Uncaught exception occured in Thread[#33,JavaFX Appliaction Thread,5,main]

Is there any solution for that problem?

Best regards
Jan

Dear all,

I have the same problem. I have updated the Jabref Version on 5.13 but the error is still there.

image

Thank you for helping us.

Best regards
Laura

@Laura Can you please copy the whole exception text of the log because in your screenshot the root cause is unfortunately not visible?

@Jan_Seitz Can you also, please post the whole log?

You can also find the log files on disk Windows | v5 | JabRef

Hey Christoph,

thank you for your quick response!

Here is the full error code:

java.lang.StringIndexOutOfBoundsException: Range [30, -2147483619) out of bounds for length 37
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Unknown Source)
at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
at java.base/java.lang.String.substring(Unknown Source)
at org.jabref.merged.module@5.13.60000/com.sun.glass.ui.win.WinTextRangeProvider.GetText(Unknown Source)
at org.jabref.merged.module@5.13.60000/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at org.jabref.merged.module@5.13.60000/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Best regards
Laura

Thanks a lot! Someone else recently had the same issue and running the application as Administrator apparently solved it.

Unfortunately, this seems to be coming directly from Java :frowning:

You could also try the version from here https://builds.jabref.org/jdk-ea/ which cotnains some updated java component (For Windows, use the windows portable or the MSI installer)

Thank you so much for your help, Christoph!

I’ve downloaded the new version and it works :slight_smile:

Have a nice evening!
Best regards
Laura

Thanks so much for testing and glad that it works now!

Hi Christoph,
thank you for your help!
I was also trying to the version with the updated java component (MSI installer).
But I still get some error Message. This I can find in the log file:
2024-04-04 18:42:39 [JavaFX Application Thread] org.jabref.gui.FallbackExceptionHandler.uncaughtException()
ERROR: Uncaught exception occurred in Thread[#33,JavaFX Application Thread,5,main]: java.lang.StringIndexOutOfBoundsException: Range [111, -2147483538) out of bounds for length 111
at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
at java.base/java.lang.String.substring(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.win.WinTextRangeProvider.GetText(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.EventLoop.enter(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.stage.Stage.showAndWait(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.control.Dialog.showAndWait(Unknown Source)
at org.jabref@5.14.4/org.jabref.gui.JabRefDialogService.showCustomDialogAndWait(Unknown Source)
at org.jabref@5.14.4/org.jabref.gui.importer.NewEntryAction.execute(Unknown Source)
at org.jabref@5.14.4/org.jabref.gui.actions.JabRefAction.lambda$new$3(Unknown Source)
at org.jabref.merged.module@5.14.4/org.controlsfx.control.action.Action.handle(Unknown Source)
at org.jabref.merged.module@5.14.4/org.controlsfx.control.action.Action.handle(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.Node.fireEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.control.Button.fire(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.event.Event.fireEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.Scene$MouseHandler.process(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.Scene.processMouseEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.View.notifyMouse(Unknown Source)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at org.jabref.merged.module@5.14.4/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

And I also get an error message in the new 5.13 Version of Jabref.

Can you try running as Administrator?
Edit: Would be nice if you could further comment under Uncaught exception occurred in Thread[#53,JavaFX Application Thread,5,main] · Issue #11151 · JabRef/jabref · GitHub
Makes it easier for us to have the issue in a single place

I am a MacOS user (14.4.1) and also have constant crashes of JavaFX.
An example is attached. This happened via drag and drop of a file.

But it also happens in between and without warning.

Is there a solution or update? Unfortunately, the developer version doesn’t work for me at all.

This is unfortunately a different issue related to drag and drop; however, I can reproduce it

I created an issue Drag and Drop of a file under macOS 14.4.1 gives an exception: Flush is forbidden from target · Issue #11214 · JabRef/jabref · GitHub

Regarding the development version. Start JabRef. A warning dialog will occur.

The dev version is not notarized, so you have to go to system settings -.> data protection and security →
Scroll down under security → See JabRef there, click allow and so on.

Edit// If you drag the PDF on the entry, editor, it works

Error still in Developer Version…

JabRef 5.14–2024-04-18–2b5fddd
Mac OS X 14.4.1 aarch64
Java 21.0.2
JavaFX 22.0.1+7

java.lang.UnsupportedOperationException: Flush is forbidden from target!
	at javafx.graphics@22.0.1/com.sun.glass.ui.View$2.flush(View.java:1017)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumClipboard.flush(QuantumClipboard.java:275)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(QuantumToolkit.java:1326)
	at javafx.graphics@22.0.1/javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Scene.java:3169)
	at javafx.graphics@22.0.1/javafx.scene.Scene$DnDGesture.process(Scene.java:3238)
	at javafx.graphics@22.0.1/javafx.scene.Scene$MouseHandler.process(Scene.java:4001)
	at javafx.graphics@22.0.1/javafx.scene.Scene.processMouseEvent(Scene.java:1891)
	at javafx.graphics@22.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2709)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:430)
	at javafx.graphics@22.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)
	at javafx.graphics@22.0.1/com.sun.glass.ui.View.handleMouseEvent(View.java:551)
	at javafx.graphics@22.0.1/com.sun.glass.ui.View.notifyMouse(View.java:937)
	at javafx.graphics@22.0.1/com.sun.glass.ui.mac.MacView.notifyMouse(MacView.java:127)

Progress is tracked in this issue Drag and Drop of a file under macOS 14.4.1 gives an exception: Flush is forbidden from target · Issue #11214 · JabRef/jabref · GitHub