-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
JabRef 4.3.1 freeze on MacOS High Sierra, JDK 8u172 #4118
Comments
This might bei related to an issue with the localhost mapping described in our FAQs Here: https://github.com/JabRef/help.jabref.org/blob/gh-pages/en/Installation.md#mac-os-and-oracle-java or in the issue #3227 |
Hello @matthiasgeiger and @Siedlerchr , I just double-checked, but I was pretty confident I had already the correct host entries in place. This is my current hosts file:
Pinging works properly:
After checking the DZone link from your page, I have tried building and and executing this file with the same JDK I'm running JabRef:
It works 100% and outputs:
I'm a software developer myself and I'm quite experienced with Java development, so, feel free to ask me whatever you might need to debug the issue. |
I just thought you may want a thread dump when the process is frozen:
|
A couple additional info:
|
Hi, thanks for your detailed report. Two things: There is For a) please ensure that you kill all remaining JabRef process in your task manager And the stack trace seems to refer to this line: jabref/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java Lines 111 to 113 in f9871ba
And just a maybe stupid question, but on Windows I sometimes had the problem with javafx/swing dialogs, that the dialogs were hidden behind the main window, maybe there is a dialog somewhere in the background? |
Another question which just came to my mind: Do you use the Oracle Java version? We had problems with openjdk and mac in the past related to javafx |
Hello @Siedlerchr ! Thanks for your interest. In the very first message I wrote the steps I took to reproduce the issue, maybe you can find some info there as well.
thanks, Alan |
As I don't own a mac and it seems to work for others @halirutan @LinusDietz I am out of ideas. Sorry. Your last option would be debugging that code, but it really is odd. |
Since this issue is resolved in the latest master build (if I understand you correctly), I wouldn't invest to much energy in debugging. Concerning the other freeze when you add a new entry, please check that the "new entry dialog" does not hide behind the main window. |
@tobiasdiez if you prefer, I can close this ticket and open another one for the version on master, but, to me, it seems a very similar issue with the GUI, it's just triggered in another part. |
Allthough this might sound stupid, but have you checked with ALT+TAB (or whatever the Mac/OSX equivalent is for going through open window. I really did have this problem on Windows and Linux too.., and had to go with alt tab to switch to the window. |
@Siedlerchr I swear I checked. I'm a software developer myself, I usually understand this kind of issues. But why should another modal window appear when I'm selecting a file? That wouldn't make sense, to me. It's interesting that the issue doesn't happen on my home mac (more or less the same machine, Macbook Pro 2015, same OS). I'm still perplexed I'm unable to debug the issue. I wonder what causes the spinning wheel of death without the high cpu usage, I think it's the first time it happended to me, ever. I would argue that the GUI thread is getting busy... doing something. |
@alanfranz Can you reproduce the freeze in the new entry dialog (in the master version)? In this case, can you please provide a thread dump for this as well. Many thanks. (the problem with the file picker could be many thinks, swing vs javafx vs mac os integration) |
@alanfranz @tobiasdiez Just to chime in: I had a similar issue and when I remember correctly, it was a call from Swing to JavaFX and back to Swing that caused it. It was really hard to debug, because the app simply went into a freeze where one GUI thread was waiting on the other. But I'm not sure anymore about the details. If @alanfranz checks the latest master and tells me if the issue is still present, I can check on both of my Macs. |
Hello @halirutan , I just checked for "JabRef-4.4-dev--snapshot--2018-06-13--master--4e50f63af.jar". The problem on new entry still exists. Steps:
Thread dump:
|
Any updates on this? Jabref has been unusable for me for a while... |
As far as I can see, the hang happens in the Swing dialog the is called to select the "Entry Type" of the new entry. It should be similar to the many other issues we had when mixing Swing and FX. What seems to happen is that the "new Entry" command itself is an FX worker which then calls a Swing dialog. The code where this happens is here jabref/src/main/java/org/jabref/gui/actions/NewEntryAction.java Lines 45 to 46 in a46d3f7
The application freezes when setting the dialog visible. When my information is still correct, we have aquired a bunch of people who are willing to work on transforming the Swing dialogs. Maybe someone can point them to Btw, the only method for creating a new entry seems to be to use the toolbar. |
Thanks @halirutan for the investigation! This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version. |
I'm opening this since the other High Sierra freezes seem unrelated.
When I start a clean JabRef 4.3.1 installation, click "open" to open a library, very quickly the application freezes. Please note that the CPU usage does not go crazy. I tried both the packaged app and the jar, no difference.
Screencast:
https://www.dropbox.com/s/k7jhz37nv8dm6y2/jabrefbug.mp4?dl=0
(please note: in the video you cannot see the spinning wheel, this seems a macos/quicktime capture behaviour, but then the video ends there's definitely a spinning wheel and I cannot click anywhere in jabref anymore)
Spindump:
https://www.dropbox.com/s/whzxqukxdhhgdec/jabref-spindump.txt?dl=0
I have tested the latest master version from http://builds.jabref.org/master/ and the problem disappears, BUT a freeze happens when I try to add a new entry.
I do not understand what's the port 6050 failed connection attempt, is it related?
The text was updated successfully, but these errors were encountered: