jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Null Pointer Exception occured in Notification task

Open ThiloteE opened this issue 8 months ago • 16 comments

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

No response

Checked with the latest development build (copy version output from About dialog)

  • [x] I made a backup of my libraries before testing the latest development version.
  • [x] I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Updated to latest main, started JabRef and the following exception triggered immediately:

java.lang.NullPointerException
	at java.base/java.util.Objects.requireNonNull(Objects.java:220)
	at java.base/java.util.Optional.of(Optional.java:113)
	at org.jabref/org.jabref.gui.Notifications$TaskNotification.<init>(Notifications.java:81)
	at org.jabref/org.jabref.gui.JabRefGUI.lambda$initialize$0(JabRefGUI.java:221)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71)
	at [email protected]/javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:246)
	at [email protected]/javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
	at [email protected]/javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
	at [email protected]/javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210)
	at [email protected]/javafx.collections.transformation.FilteredList.sourceChanged(FilteredList.java:148)
	at [email protected]/javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105)
	at [email protected]/javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper$SingleChange.fireValueChangedEvent(ListListenerHelper.java:162)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71)
	at [email protected]/javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:246)
	at [email protected]/com.tobiasdiez.easybind.MappedList.sourceChanged(MappedList.java:41)
	at [email protected]/javafx.collections.transformation.TransformationList.lambda$getListener$0(TransformationList.java:105)
	at [email protected]/javafx.collections.WeakListChangeListener.onChanged(WeakListChangeListener.java:88)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:327)
	at [email protected]/com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:71)
	at [email protected]/javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:246)
	at [email protected]/javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
	at [email protected]/javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
	at [email protected]/javafx.collections.ObservableListBase.endChange(ObservableListBase.java:210)
	at [email protected]/javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:200)
	at java.base/java.util.List.addFirst(List.java:794)
	at org.jabref/org.jabref.gui.JabRefGuiStateManager.addBackgroundTask(JabRefGuiStateManager.java:206)
	at org.jabref/org.jabref.gui.util.UiTaskExecutor.lambda$execute$1(UiTaskExecutor.java:108)
	at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$0(PlatformImpl.java:424)
	at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	at [email protected]/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at [email protected]/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:173)
	at java.base/java.lang.Thread.run(Thread.java:1474)

When I looked at the cli log, i also saw this:

2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.showText()
WARN: No current font, will use default
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.showText()
WARN: No current font, will use default
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.showText()
WARN: No current font, will use default
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.showText()
WARN: No current font, will use default
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.showText()
WARN: No current font, will use default
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken()
WARN: Stop reading invalid array from content stream at offset 20579
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.contentstream.PDFStreamEngine.operatorException()
ERROR: Operator BDC has too few operands: [COSFloat{33.816}]: org.apache.pdfbox.contentstream.operator.MissingOperandException: Operator BDC has too few operands: [COSFloat{33.816}]
        at [email protected]/org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:49)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:926)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:559)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:517)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
        at [email protected]/org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:153)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:380)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:305)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:253)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.getText(PDFTextStripper.java:220)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.addContentIfNotEmpty(DocumentReader.java:98)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.readPdfContents(DocumentReader.java:48)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:157)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:145)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.updateOnStart(DefaultLinkedFilesIndexer.java:108)
        at org.jabref.jablib/org.jabref.logic.search.IndexManager$3.call(IndexManager.java:110)
        at org.jabref/org.jabref.gui.util.UiTaskExecutor$1.call(UiTaskExecutor.java:175)
        at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1407)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.base/java.lang.Thread.run(Thread.java:1474)
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdfparser.BaseParser.parseDirObject()
WARN: Skipped unexpected dir object = 'dhi' at offset 19854 (start offset: 19851)
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdfparser.BaseParser.parseCOSArray()
WARN: Corrupt array element at offset 19854, start offset: 19847
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken()
WARN: Stop reading invalid array from content stream at offset 19854
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>()
ERROR: Can't read the embedded Type1C font PUUWTO+MinionPro-Semibold: java.io.IOException: End of buffer reached!
        at [email protected]/org.apache.fontbox.cff.DataInputRandomAccessRead.readUnsignedByte(DataInputRandomAccessRead.java:120)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:373)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:362)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseType1Dicts(CFFParser.java:894)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:708)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:214)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:106)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:98)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:138)
        at [email protected]/org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
        at [email protected]/org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:926)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:559)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:517)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
        at [email protected]/org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:153)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:380)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:305)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:253)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.getText(PDFTextStripper.java:220)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.addContentIfNotEmpty(DocumentReader.java:98)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.readPdfContents(DocumentReader.java:48)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:157)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:145)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.updateOnStart(DefaultLinkedFilesIndexer.java:108)
        at org.jabref.jablib/org.jabref.logic.search.IndexManager$3.call(IndexManager.java:110)
        at org.jabref/org.jabref.gui.util.UiTaskExecutor$1.call(UiTaskExecutor.java:175)
        at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1407)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.base/java.lang.Thread.run(Thread.java:1474)
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>()
ERROR: Can't read the embedded Type1C font PUUWTO+MinionPro-Semibold: java.io.IOException: End of buffer reached!
        at [email protected]/org.apache.fontbox.cff.DataInputRandomAccessRead.readUnsignedByte(DataInputRandomAccessRead.java:120)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:373)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:362)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseType1Dicts(CFFParser.java:894)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:708)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:214)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:106)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:98)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:138)
        at [email protected]/org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
        at [email protected]/org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:926)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:559)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:517)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
        at [email protected]/org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:153)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:380)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:305)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:253)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.getText(PDFTextStripper.java:220)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.addContentIfNotEmpty(DocumentReader.java:98)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.readPdfContents(DocumentReader.java:48)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:157)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:145)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.updateOnStart(DefaultLinkedFilesIndexer.java:108)
        at org.jabref.jablib/org.jabref.logic.search.IndexManager$3.call(IndexManager.java:110)
        at org.jabref/org.jabref.gui.util.UiTaskExecutor$1.call(UiTaskExecutor.java:175)
        at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1407)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.base/java.lang.Thread.run(Thread.java:1474)
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>()
ERROR: Can't read the embedded Type1C font PUUWTO+MinionPro-Semibold: java.io.IOException: End of buffer reached!
        at [email protected]/org.apache.fontbox.cff.DataInputRandomAccessRead.readUnsignedByte(DataInputRandomAccessRead.java:120)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:373)
        at [email protected]/org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:362)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseType1Dicts(CFFParser.java:894)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:708)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:214)
        at [email protected]/org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:106)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:98)
        at [email protected]/org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:138)
        at [email protected]/org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
        at [email protected]/org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:72)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:926)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:559)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:517)
        at [email protected]/org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:158)
        at [email protected]/org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:153)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:380)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:305)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:253)
        at [email protected]/org.apache.pdfbox.text.PDFTextStripper.getText(PDFTextStripper.java:220)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.addContentIfNotEmpty(DocumentReader.java:98)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DocumentReader.readPdfContents(DocumentReader.java:48)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:157)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.addToIndex(DefaultLinkedFilesIndexer.java:145)
        at org.jabref.jablib/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.updateOnStart(DefaultLinkedFilesIndexer.java:108)
        at org.jabref.jablib/org.jabref.logic.search.IndexManager$3.call(IndexManager.java:110)
        at org.jabref/org.jabref.gui.util.UiTaskExecutor$1.call(UiTaskExecutor.java:175)
        at [email protected]/javafx.concurrent.Task$TaskCallable.call(Task.java:1407)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
        at java.base/java.lang.Thread.run(Thread.java:1474)
2026-03-06 18:59:28 [pool-2-thread-5] org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken()

Appendix

No response

ThiloteE avatar Mar 06 '26 18:03 ThiloteE

/assign-me

faneeshh avatar Mar 06 '26 20:03 faneeshh

Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.

At this point in time, you raised 7 pull request(s) of which 43% (3/7) have been merged.

jabref-machine avatar Mar 06 '26 20:03 jabref-machine

I'm guessing this trigger happens only when there's an invaid Pdf linked to an entry? @ThiloteE

faneeshh avatar Mar 06 '26 20:03 faneeshh

~~Yes, the getting rid of the broken PDF got rid of the error messages in the logs.~~

ThiloteE avatar Mar 07 '26 11:03 ThiloteE

Actually, I still get an error (a different one) even without the broken PDF and with the hotfix 68da19c23e93b073adf2a5d66e54260c889df944

error.txt

Edit: These errors starting showing in the logs not while running JAbRef, but after closing JabRef.

ThiloteE avatar Mar 07 '26 12:03 ThiloteE

Actually, I still get an error (a different one) even without the broken PDF and with the hotfix 68da19c

error.txt

The logs are pointing that the new error after the hotfix is coming from DefaultLinkedFilesIndexer trying to index a corrupt PDF. I can work on it too no problem

faneeshh avatar Mar 07 '26 21:03 faneeshh

If you are refering to

2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Entry VoelsenSWUP2019cit does not have field subtitle
2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Could not resolve field at entry VoelsenSWUP2019cit for field subtitle - current value ''
2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Entry VoelsenSWUP2019cit does not have field subtitle
2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Could not resolve field at entry VoelsenSWUP2019cit for field subtitle - current value ''
2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Entry VoelsenSWUP2019cit does not have field subtitle
2026-03-07 13:14:36 [pool-2-thread-5] org.jabref.logic.search.indexing.BibFieldsIndexer.insertField()
WARN: Could not resolve field at entry VoelsenSWUP2019cit for field subtitle - current value ''

Those stem from me typing a few characters into the subtitle field and then deleting them again.

My hypothesis: the indexing starting while typing and when I deleted the characters during indexing, this also caused the field to get deleted (rightfully so), leading to a situation where content is expected that's not there anymore.

ThiloteE avatar Mar 07 '26 21:03 ThiloteE

My hypothesis: the indexing starting while typing and when I deleted the characters during indexing, this also caused the field to get deleted (rightfully so), leading to a situation where content is expected that's not there anymore.

This appears to be a separate issue from the original NPE. The stack trace shows an infinite feedback loop in which when the error console's list view receives a new log entry and calls scrollTo( ) to auto scroll, JavaFX's VirtualFlow internally logs an "index exceeds maxCellCount" warning because the list has grown beyond the viewport size. That warning gets written back until a StackOverflowError occurs.

Would it make sense to open a new issue for this?

faneeshh avatar Mar 07 '26 22:03 faneeshh

@faneeshh The index exceeds max cell count is a known issue https://github.com/JabRef/jabref/issues/12534

Siedlerchr avatar Mar 07 '26 22:03 Siedlerchr

@faneeshh The index exceeds max cell count is a known issue #12534

Okay that makes sense. Can you assign me to the issue cause I might be on the limit.

faneeshh avatar Mar 07 '26 23:03 faneeshh

you need to comment there

Siedlerchr avatar Mar 07 '26 23:03 Siedlerchr

Wasn't this addressed by https://github.com/JabRef/jabref/pull/15288? @ThiloteE Can you re-check the build of today?

koppor avatar Mar 09 '26 05:03 koppor

Wasn't this addressed by https://github.com/JabRef/jabref/pull/15288? @ThiloteE Can you re-check the build of today?

Yeah that's what I think too cause I wasn't able to replicate the issue after the latest build.

faneeshh avatar Mar 09 '26 05:03 faneeshh

On the plus side, the errors are gone on newest main, when simply running and then closing JabRef. Still triggers lots of errors in the log, when doing a reindex of the fulltext search index.

ThiloteE avatar Mar 09 '26 12:03 ThiloteE

Should I open separate issues for the full-text indexing errors or should I post them here?

ThiloteE avatar Mar 09 '26 12:03 ThiloteE

@ThiloteE Please open a separate issue

Siedlerchr avatar Mar 09 '26 19:03 Siedlerchr