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

Blank input editor - Uncaught exception occured in Thread[JavaFX Application Thread,5,main] #5496

Closed
juejung opened this issue Oct 21, 2019 · 9 comments · Fixed by #5497
Closed
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Milestone

Comments

@juejung
Copy link

juejung commented Oct 21, 2019

Ubuntu 18.04 with Gnome desktop:
Installed from .deb file downloaded from https://builds.jabref.org/master/jabref_5.0.0-1_amd64.deb
JabRef version:
JabRef 5.0.0-dev--2019-10-21----0f0dce621
Linux 5.0.0-32-generic amd64
Java 12.0.2

Steps to reproduce the behavior:

  1. Open JabRef with .bib file
  2. Exception is thrown
  3. Entry editor is blank (Just a white field. I'm in dark mode)
  4. Exception is thrown with statement:
    Uncaught exception occured in Thread[JavaFX Application Thread,5,main] and
    Invalid stylesheet URL
  5. Clicking other tabs such as: Optional Fields, Deprecated Fields etc. results in additional exceptions thrown with the invalid stylesheet URL error.
    Here's the Log summary:
Log File
java.lang.IllegalArgumentException: Invalid stylesheet URL
  at org.jabref.merged.module/javafx.scene.web.WebEngine$2.invalidated(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.StringPropertyBase.markInvalid(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.StringPropertyBase.set(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.StringPropertyBase.set(Unknown Source)
  at org.jabref.merged.module/javafx.scene.web.WebEngine.setUserStyleSheetLocation(Unknown Source)
  at org.jabref/org.jabref.gui.preview.PreviewViewer.setTheme(Unknown Source)
  at org.jabref/org.jabref.gui.preview.PreviewPanel.<init>(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.FieldsEditorTab.initPanel(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.FieldsEditorTab.bindToEntry(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.EntryEditorTab.notifyAboutFocus(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.EntryEditor.lambda$new$0(Unknown Source)
  at org.jabref.merged.module/org.fxmisc.easybind.EasyBind.lambda$subscribe$12(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ReadOnlyObjectPropertyBase.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ReadOnlyObjectWrapper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ObjectPropertyBase.set(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.SelectionModel.setSelectedItem(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TabPane$TabPaneSelectionModel.select(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TabPane$TabPaneSelectionModel.select(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TabPane$TabPaneSelectionModel.findNearestAvailableTab(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TabPane$TabPaneSelectionModel.lambda$new$0(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.fireChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.commit(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ModifiableObservableListBase.add(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.EntryEditor.recalculateVisibleTabs(Unknown Source)
  at org.jabref/org.jabref.gui.entryeditor.EntryEditor.setEntry(Unknown Source)
  at org.jabref/org.jabref.gui.BasePanel.lambda$createMainTable$22(Unknown Source)
  at java.base/java.util.Optional.ifPresent(Unknown Source)
  at org.jabref/org.jabref.gui.BasePanel.lambda$createMainTable$23(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.fireChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.commit(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.endChange(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.SelectedItemsReadOnlyObservableList.lambda$new$1(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.fireChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.commit(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.endChange(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList._endChange(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.MultipleSelectionModelBase$SelectedIndicesList._endChange(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.ControlUtils.updateSelectedIndices(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.fireCustomSelectedCellsListChangeEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.fireChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.commit(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.transformation.SortedList.sourceChanged(Unknown Source)
  at org.jabref.merged.module/javafx.collections.transformation.TransformationList.lambda$getListener$0(Unknown Source)
  at org.jabref.merged.module/javafx.collections.WeakListChangeListener.onChanged(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.fireChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.commit(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ListChangeBuilder.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ObservableListBase.endChange(Unknown Source)
  at org.jabref.merged.module/javafx.collections.ModifiableObservableListBase.add(Unknown Source)
  at java.base/java.util.AbstractList.add(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.SelectedCellsMap.add(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.select(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.selectFirst(Unknown Source)
  at org.jabref/org.jabref.gui.maintable.MainTable.clearAndSelectFirst(Unknown Source)
  at org.jabref/org.jabref.gui.BasePanel.clearAndSelectFirst(Unknown Source)
  at org.jabref/org.jabref.gui.BasePanel.lambda$new$0(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
  at java.base/java.security.AccessController.doPrivileged(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
  at org.jabref.merged.module/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
  at java.base/java.lang.Thread.run(Unknown Source)

@Siedlerchr
Copy link
Member

It's an issue with the dark theme path. The light theme should work in the meantime

@juejung
Copy link
Author

juejung commented Oct 21, 2019

@Siedlerchr True, I can confirm this. The light theme works.

@Siedlerchr Siedlerchr added the bug Confirmed bugs or reports that are very likely to be bugs label Oct 21, 2019
@Siedlerchr Siedlerchr added this to the v5.0 milestone Oct 21, 2019
@AEgit
Copy link

AEgit commented Oct 22, 2019

Duplicate of:
#5463 (comment)

@Siedlerchr
Copy link
Member

It's hard to debug. The problem is that it works in gradle or eclipse fine etc but not loading from the "jar" path. However, it's the same path also used in the prefs to load the dark theme and there it works also when using the installer version. I have no clue.

@xiaodongcentury
Copy link

@Siedlerchr True, I can confirm this. The light theme works.

Me 2. Just confirmed, the light theme works.

@tobiasdiez
Copy link
Member

I've a fix and PR is coming in the next few days.

@Siedlerchr
Copy link
Member

This should now be fixed in the latest master.

@AEgit
Copy link

AEgit commented Oct 25, 2019

JabRef 5.0.0-dev--2019-10-25----681d6aa6f
Windows 10 10.0 amd64
Java 12.0.2

I can confirm that this has been fixed in the current dev version. Nice work!

@juejung
Copy link
Author

juejung commented Oct 25, 2019

@Siedlerchr
Ubuntu 18.04

JabRef 5.0.0-dev--2019-10-25----fdd06d742
Linux 5.0.0-32-generic amd64
Java 12.0.2

I can also confirm that this has been fixed in the current dev version (.deb) on Ubuntu 18.04. Thanks.

@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

Successfully merging a pull request may close this issue.

5 participants