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

"About JabRef" results in exception #7287

Closed
AEgit opened this issue Jan 4, 2021 · 4 comments
Closed

"About JabRef" results in exception #7287

AEgit opened this issue Jan 4, 2021 · 4 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Milestone

Comments

@AEgit
Copy link

AEgit commented Jan 4, 2021

JabRef 5.3--2021-01-04--10180ed
Windows 10 10.0 amd64
Java 14.0.2

Using Help -> About JabRef results in an exception. Note, that this does not happen the first time you click on About JabRef. But the second time you attempt you click on About JabRef (and every consecutive attempt) results in an exception. The following error message appears:

Uncaught exception occurred in Thread[JavaFX Application Thread,5,main]

The exception stacktrace is:


java.lang.IllegalStateException: Cannot set owner once stage has been set visible
	at org.jabref.merged.module@5.3.28/javafx.stage.Stage.initOwner(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.control.HeavyweightDialog.initOwner(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.control.Dialog.initOwner(Unknown Source)
	at org.jabref@5.3.28/org.jabref.gui.JabRefDialogService.showCustomDialog(Unknown Source)
	at org.jabref@5.3.28/org.jabref.gui.help.AboutAction.execute(Unknown Source)
	at org.jabref@5.3.28/org.jabref.gui.actions.JabRefAction.lambda$new$3(Unknown Source)
	at org.jabref.merged.module@5.3.28/org.controlsfx.control.action.Action.handle(Unknown Source)
	at org.jabref.merged.module@5.3.28/org.controlsfx.control.action.Action.handle(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.control.MenuItem.fire(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$12(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.event.Event.fireEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.Scene$MouseHandler.process(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.Scene.processMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
	at org.jabref.merged.module@5.3.28/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.3.28/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.glass.ui.View.notifyMouse(Unknown Source)
	at org.jabref.merged.module@5.3.28/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at org.jabref.merged.module@5.3.28/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Only by closing JabRef and re-opening it you can get rid of the error message and associated exception. But again, this is only the case for the first time you click on About JabRef. The second time the exception will appear again.

@Siedlerchr Siedlerchr added the bug Confirmed bugs or reports that are very likely to be bugs label Jan 4, 2021
@Siedlerchr
Copy link
Member

We now also have the weird behaviour that you can open some dialogs multiple times

@AEgit
Copy link
Author

AEgit commented Jan 4, 2021

Note, that this bug must have been introduced in the last 18 days or so. I tried an earlier developer version 18 days ago (see #5522 (comment)), where I did not encounter this bug (at least I do not remember having seen it).

@koppor koppor added this to the v5.3 milestone Jan 4, 2021
This was referenced Jan 4, 2021
@koppor
Copy link
Member

koppor commented Jan 4, 2021

Should work again in the latest build (appearing in ca. 10 minutes)

@koppor koppor closed this as completed Jan 4, 2021
@AEgit
Copy link
Author

AEgit commented Jan 4, 2021

JabRef 5.3--2021-01-04--eca13dd
Windows 10 10.0 amd64
Java 14.0.2

I can confirm this has been fixed in the current developer version. Well done!

@koppor koppor moved this to Done in Prioritization Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
Archived in project
Development

No branches or pull requests

3 participants