-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Opening a PDF blocks JabRef (under Ubuntu/Linux) #5942
Comments
@tobiasdiez You recently added this gson to the module info. Do we need to add it to the gradle file somehow? |
Might be a duplicate of (or connected to): |
@AEgit, can be. However, in my case, I can work with the PDF and once I close the reader, JabRef continues to work perfectly. Also, in the meanwhile, CPU load is not going up. It merely looks like a blocking system call (external process call) to me, instead of a non-blocking call. |
Have you tried opening with another pdf editor as default? |
Yep, just done that with 5 different applications that can open PDF (via changing the mime-type through the Nautilus file manager):
The three apps in 2 must have something in common in the way they are called via JabRef based on the mime-type settings. |
@ytzemih I tried a simple addition to the existing code, redirecting the process output. Could you please test this version here? |
@Siedlerchr, thx. Installed JabRef 5.0-pull-5945-merge.421--2020-02-13--6cddf64. |
Thanks for the hint. I will try to wrap this in a new Thread this evening |
Could you please try again with the new version? https://builds.jabref.org/pull/5945/merge/ |
The gson error should also be fixed in this branch + master |
JabRef 5.0-beta.421--2020-02-14--ec93ad3 I am afraid, as far as I can tell, this issue persists (and this one persists as well: #5882). |
JabRef 5.0-beta.421--2020-02-14--ec93ad3 Good news, gson error/exception is gone, no more Zombie jobs left. Bad news: Can confirm @AEgit , opening still blocks for me. |
@ytzemih Could you please test again with the new version from today? https://builds.jabref.org/pull/5945/merge/ |
@Siedlerchr Done. I can't reproduce the error anymore. Open file is now non-blocking. Thanks for the fix. |
JabRef 5.0-beta.432--2020-02-19--c768697 Cannot confirm for the current master version. Since I am now pretty confident that this issue is a duplicate of #5882, you can find my error report here: |
@AEgit I tested it only with |
JabRef 5.0-beta.419--2020-02-12--3859620
Linux 5.4.19-050419-generic amd64
Java 13.0.2
Steps to reproduce the behavior:
I first thought this only happens in my i3/Gnome Flashback environment. But switching to plain Ubuntu 19.10 Gnome desktop, exactly the same behaviour can be observed.
This phenomenon didn't appear for me (with highly similar settings) in JabRef 4.x.
I am seeing this exception on the console after closing JabRef, though this might not result from having called an external program (I suppose):
Log File
Exception in Application stop method ERROR FallbackExceptionHandler Uncaught exception occurred in Thread[main,5,main] java.lang.RuntimeException: Exception in Application stop method at org.jabref.merged.module/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at org.jabref.merged.module/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.IllegalAccessError: class kong.unirest.JsonObjectMapper (in module org.jabref.merged.module) cannot access class com.google.gson.Gson (in module com.google.gson) because module org.jabref.merged.module does not read module com.google.gson at org.jabref.merged.module/kong.unirest.JsonObjectMapper.(Unknown Source) at org.jabref.merged.module/kong.unirest.Config.(Unknown Source) at org.jabref.merged.module/kong.unirest.Unirest.(Unknown Source) at org.jabref/org.jabref.Globals.stopBackgroundTasks(Unknown Source) at org.jabref/org.jabref.JabRefMain.stop(Unknown Source) at org.jabref.merged.module/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$10(Unknown Source) at org.jabref.merged.module/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(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) ... 1 moreThe text was updated successfully, but these errors were encountered: