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

minor error: closing JabRef Logger #12388

Open
2 tasks done
ilippert opened this issue Jan 13, 2025 · 1 comment
Open
2 tasks done

minor error: closing JabRef Logger #12388

ilippert opened this issue Jan 13, 2025 · 1 comment

Comments

@ilippert
Copy link
Contributor

JabRef version

Other (please describe below)

Operating system

GNU / Linux

Details on version and operating system

JabRef 6.0--2024-11-05--4705977 Linux 6.12.6-200.fc41.x86_64 amd64 Java 21.0.5 JavaFX 23.0.1+4

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

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

Steps to reproduce the behaviour

  1. I run JabRef from the shell (given Linux gnome/package manager JabRef not registered #11417)
  2. upon shutting down JabRef, the last lines in the shell are an Error.

Appendix

...

Log File
INFO: No open database detected
LOGGER ERROR: Failed to write log entry 'No open database detected' (java.lang.NullPointerException)
2025-01-13 17:33:24 [JabRef CachedThreadPool] org.jabref.logic.util.FallbackExceptionHandler.uncaughtException()
ERROR: Uncaught exception occurred in Thread[#99,JabRef CachedThreadPool,5,main]: org.apache.lucene.util.ThreadInterruptedException: java.lang.InterruptedException
	at [email protected]/org.apache.lucene.index.IndexWriter.doWait(Unknown Source)
	at [email protected]/org.apache.lucene.index.IndexWriter.forceMerge(Unknown Source)
	at [email protected]/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.optimizeIndex(Unknown Source)
	at [email protected]/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.closeIndex(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InterruptedException
	at java.base/java.lang.Object.wait0(Native Method)
	at java.base/java.lang.Object.wait(Unknown Source)
	... 7 more
LOGGER ERROR: Failed to write log entry 'Uncaught exception occurred in Thread[#99,JabRef CachedThreadPool,5,main]' (java.lang.NullPointerException)

@ilippert
Copy link
Contributor Author

ilippert commented Jan 13, 2025

in JabRef 6.0-alpha.33--2025-01-13--b701821
Linux 6.12.6-200.fc41.x86_64 amd64
Java 23.0.1
JavaFX 23.0.1+4

I get a different error

ERROR: Uncaught exception occurred in Thread[#72,JabRef CachedThreadPool,5,main]: org.apache.lucene.store.AlreadyClosedException: Lock instance already released: NativeFSLock(path=/home/ilippert/.local/share/jabref/lucene/4/636880bf--Literature-bibtex.bib/write.lock,impl=sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive invalid],creationTime=2025-01-13T17:52:42.73904522Z)
	at [email protected]/org.apache.lucene.store.NativeFSLockFactory$NativeFSLock.ensureValid(Unknown Source)
	at [email protected]/org.apache.lucene.store.LockValidatingDirectoryWrapper.createOutput(Unknown Source)
	at [email protected]/org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(Unknown Source)
	at [email protected]/org.apache.lucene.codecs.lucene94.Lucene94FieldInfosFormat.write(Unknown Source)
	at [email protected]/org.apache.lucene.index.IndexingChain.flush(Unknown Source)
	at [email protected]/org.apache.lucene.index.DocumentsWriterPerThread.flush(Unknown Source)
	at [email protected]/org.apache.lucene.index.DocumentsWriter.doFlush(Unknown Source)
	at [email protected]/org.apache.lucene.index.DocumentsWriter.maybeFlush(Unknown Source)
	at [email protected]/org.apache.lucene.index.DocumentsWriter.flushAllThreads(Unknown Source)
	at [email protected]/org.apache.lucene.index.IndexWriter.doFlush(Unknown Source)
	at [email protected]/org.apache.lucene.index.IndexWriter.flush(Unknown Source)
	at [email protected]/org.apache.lucene.index.IndexWriter.forceMerge(Unknown Source)
	at [email protected]/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.optimizeIndex(Unknown Source)
	at [email protected]/org.jabref.logic.search.indexing.DefaultLinkedFilesIndexer.closeIndex(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant