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

Uncaught exception in search #5897

Closed
wujastyk opened this issue Jan 30, 2020 · 2 comments · Fixed by #5923
Closed

Uncaught exception in search #5897

wujastyk opened this issue Jan 30, 2020 · 2 comments · Fixed by #5923
Labels
bug Confirmed bugs or reports that are very likely to be bugs search

Comments

@wujastyk
Copy link

JabRef version on

JabRef 5.0-beta.388--2020-01-29--eb988b6
Linux 5.3.0-28-generic amd64
Java 13.0.2

Steps to reproduce the behavior:

  1. clicked on search window
  2. began to type search string
  3. error window popped up:

image

Log File
java.util.NoSuchElementException
  at java.base/java.util.AbstractList$Itr.next(Unknown Source)
  at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
  at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
  at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
  at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
  at org.jabref/org.jabref.gui.maintable.MainTable.getSelectedEntries(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$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.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/javafx.scene.control.TableView$TableViewArrayListSelectionModel.clearSelection(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.updateDefaultSelection(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TableView$TableViewArrayListSelectionModel.lambda$new$2(Unknown Source)
  at org.jabref.merged.module/javafx.collections.WeakListChangeListener.onChanged(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.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$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.transformation.FilteredList.refilter(Unknown Source)
  at org.jabref.merged.module/javafx.collections.transformation.FilteredList$1.invalidated(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ObjectPropertyBase.markInvalid(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ObjectPropertyBase$Listener.invalidated(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.beans.binding.ObjectBinding.invalidate(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.BindingHelperObserver.invalidated(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.beans.property.ObjectPropertyBase.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.beans.property.ObjectProperty.setValue(Unknown Source)
  at org.jabref/org.jabref.gui.StateManager.setSearchQuery(Unknown Source)
  at org.jabref/org.jabref.gui.search.GlobalSearchBar.performSearch(Unknown Source)
  at org.jabref/org.jabref.gui.search.GlobalSearchBar.lambda$new$8(Unknown Source)
  at org.jabref/org.jabref.gui.util.BindingsHelper$BidirectionalBinding.updateLocked(Unknown Source)
  at org.jabref/org.jabref.gui.util.BindingsHelper$BidirectionalBinding.changedB(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl$TextProperty.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl$TextProperty.markInvalid(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl$TextProperty.controlContentHasChanged(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl.lambda$new$0(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextField$TextFieldContent.insert(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl.replaceText(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl.updateContent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.TextInputControl.replaceText(Unknown Source)
  at org.jabref.merged.module/javafx.scene.control.skin.TextFieldSkin.replaceText(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.TextFieldBehavior.replaceText(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.TextInputControlBehavior.defaultKeyTyped(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.behavior.TextInputControlBehavior.lambda$keyMapping$62(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.event.Event.fireEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene$KeyHandler.process(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene.processKeyEvent(Unknown Source)
  at org.jabref.merged.module/javafx.scene.Scene$ScenePeerListener.keyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler$KeyEventNotification.run(Unknown Source)
  at java.base/java.security.AccessController.doPrivileged(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleKeyEvent$1(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
  at org.jabref.merged.module/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.View.handleKeyEvent(Unknown Source)
  at org.jabref.merged.module/com.sun.glass.ui.View.notifyKey(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 Siedlerchr changed the title Uncaught exception in Thread[JavaFX ...] Uncaught exception in search Jan 30, 2020
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs search labels Jan 30, 2020
@Siedlerchr
Copy link
Member

I hopefully fixed this issue now. Please not that the search is now disabled when no library is open.

We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

@wujastyk
Copy link
Author

JabRef 5.0-beta.417--2020-02-10--259bca0
Linux 5.3.0-28-generic amd64
Java 13.0.2

Yes, now the search window is greyed-out and unavailable when no library is loaded. Thanks!

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 search
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants