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

Still freezes on macOS High Sierra #3995

Closed
jimjianghk opened this issue Apr 28, 2018 · 42 comments
Closed

Still freezes on macOS High Sierra #3995

jimjianghk opened this issue Apr 28, 2018 · 42 comments
Labels
os: macOS status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@jimjianghk
Copy link

jimjianghk commented Apr 28, 2018

Steps to reproduce:

  1. Open Jabref
  2. File - Import into new library
  3. Choose file and click "open"
  4. Freezes

Same thing happens when importing into current library. Tried the hostname solution, no luck.

JabRef 4.2
Mac OS X 10.13.4 x86_64
Java 1.8.0_172

@urielz
Copy link

urielz commented Apr 30, 2018

I can confirm I have the same issue as well.

My setup: JabRef 4.2, macOS 10.13.4 and Java build 1.8.0_171-b11

@Siedlerchr
Copy link
Member

Try to change the Look and Feel, we recently had many problems + freeze reports with the GTK Look and Feel.

@Siedlerchr Siedlerchr added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Apr 30, 2018
@urielz
Copy link

urielz commented Apr 30, 2018

EDIT: I can see it in the preferences file, I'll try change it from there.

Apologies if I'm missing something obvious, but is that option available in macOS? FAQ says:

"It seems that the GTKLookAndFeel is causing these problems and selecting a different look and feel class under Options -> Appearance -> Look and Feel solves the problem."

But I can't find that option in macOS...

Thanks for the help.

@urielz
Copy link

urielz commented Apr 30, 2018

Is there a way to list the available look and feel themes in the system?

I tried editing ~/Library/Preferences/com.apple.java.util.prefs

for Jabref shows:

<key>lookAndFeel</key>
<string>com.apple.laf.AquaLookAndFeel</string>

I tried javax.swing.plaf.metal.MetalLookAndFeel and javax.swing.plaf.metal.SynthLookAndFeel but in both cases it reverts back to the default look and feel...

@Siedlerchr
Copy link
Member

Siedlerchr commented Apr 30, 2018

Normally you should be able to switch it in JabRef, as the FAQ says, you have to change the Look and Feel in JabRef. Not on the system
It should list all available styles.

@urielz
Copy link

urielz commented May 1, 2018

That's strange. On macOS there's no "Options -> Appearance", the closest would be "Options -> Preferences --> Appearance", and these are all the options available, I don't see any way to change the look and feel:

jref_options

@Siedlerchr
Copy link
Member

@LinusDietz can you take a look?
Old versions can be found here https://github.com/JabRef/jabref/releases

@ukleine
Copy link

ukleine commented May 1, 2018

Same problem on OpenSuse 42.3. Jabref 4.1 works, version 4.2 freezes on import of bibentries, same for the latest development version.

@yangmqglobe
Copy link

yangmqglobe commented May 1, 2018 via email

@Siedlerchr
Copy link
Member

@pukk Do you get any errors in the log? At which point does it freeze? Opening the file dialog? Showing the import inspection window?

@urielz Could you please try out this version to change the style?
https://builds.jabref.org/removeGTK/

I found out that for some reason the look and feel selection was disabled on OSX

@ukleine
Copy link

ukleine commented May 1, 2018

I can confirm that the import issue is (only) with the GTKLookAndFeel.

Unfortunately, I seemed to have some older look-and-feel options in my preferences and I changed to one which apparently does not exist anymore. I had to remove all Jabref config files to get Jabref started again :-(
With the default look-and-feel I do not experience the import problem anymore.

@Siedlerchr
Copy link
Member

@pukk That's nice to hear. I will try to add a migration to the default look and feel, in case an older look and feel is found

@ukleine
Copy link

ukleine commented May 1, 2018

There seems to be a problem with Jabref completely crashing (no GUI coming up) if it does not find some fonts.

This also happens in the default look-and-feel. I went to "override default font setting" and increased "menu and lable font size" from 13 to 14. One has to restart for the changes to take effect and then Jabref does not start (which is nasty since one does not get access to the preferences menu anymore). Output in the terminal:
[AWT-EventQueue-0] ERROR org.jabref.FallbackExceptionHandler - Uncaught exception occurred in Thread[AWT-EventQueue-0,6,main]
java.lang.ClassCastException: java.awt.Font cannot be cast to javax.swing.plaf.FontUIResource
at org.jabref.JabRefGUI.setLookAndFeel(JabRefGUI.java:288) ~[JabRef-4.Xdev.jar:?]
at org.jabref.JabRefGUI.openWindow(JabRefGUI.java:87) ~[JabRef-4.Xdev.jar:?]
at org.jabref.JabRefGUI.(JabRefGUI.java:60) ~[JabRef-4.Xdev.jar:?]
at org.jabref.JabRefMain.lambda$start$0(JabRefMain.java:182) ~[JabRef-4.Xdev.jar:?]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_162]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_162]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_162]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_162]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_162]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_162]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_162]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_162]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_162]

@Siedlerchr
Copy link
Member

Siedlerchr commented May 1, 2018

I could confirm this on my linux VM. will try to fix this asap
Try running java -jar JabRef.jar -d all to reset preferences
Refs #3986

@urielz
Copy link

urielz commented May 1, 2018

@urielz Could you please try out this version to change the style?
https://builds.jabref.org/removeGTK/

I found out that for some reason the look and feel selection was disabled on OSX

@Siedlerchr Thanks for looking into this. I can change the look and feel with that version, unfortunately the problem still persists. I tried all four options but Jabref still hangs when importing.

@Siedlerchr
Copy link
Member

@urielz Okay, thanks for your feedback. Could you please describe where exactly it freezes?
This helps us to narrow it down a bit.

  • Does it show the Fille Open dialog?
  • Does the import start?
  • Does the import inspection window occur?

@urielz
Copy link

urielz commented May 1, 2018

@Siedlerchr It shows the File Open Dialog, but it hangs right after I tried to open a file (bib, ris, etc).

If there's a way to run JabRef in debug mode I can give it a try.

@Siedlerchr
Copy link
Member

You can try it from command line
java -jar JabRef.jar
Any errors should be printed out on the console

@urielz
Copy link

urielz commented May 1, 2018

I tried that before and it gives me an error along the lines "Unsupported major.minor version". Maybe related to the fact that I don't have JDK? or the correct Java version? I'll try to look into this later today.

@Siedlerchr
Copy link
Member

You might have java 9 or an older version than 8 of Java installed. I am sorry, I don't own a mac, so I can't help you any further. Maybe @halirutan or @LinusDietz can help you any further

@urielz
Copy link

urielz commented May 1, 2018

@Siedlerchr No worries!, thanks for looking into this.

@jimjianghk
Copy link
Author

Sorry, but is this supposed to have been fixed? I downloaded the latest dev snapshot (JabRef 4.3-dev--snapshot--2018-05-04--master--18011fcab) and the issue persists.

@Siedlerchr
Copy link
Member

@jimjianghk Well, it should have been a Look and Feel Problem with the GTK Look and Feel.
From the answers before, it seeemed to be working when you change the Look and Feel to a non GTK one,

@Glenbeulah
Copy link

@Siedlerchr I have tried all of the above and changing the Look and Feel doesn't solve this JabRef problem. It still freezes after I click on "open" as described in the first post, no matter what Look and Feel I use.

JabRef 4.3-dev--snapshot--2018-05-02--removeGTK--74c7b8e59
Mac OS X 10.13.4 x86_64
Java 1.8.0_172

@Siedlerchr Siedlerchr reopened this May 5, 2018
@Siedlerchr
Copy link
Member

@Glenbeulah The only option I have in mind that you might have an older bundled JRE in Jabref itself, also the system one is newer. We had this issue with someone before.
Could you please uninstall JabRef first and (additionally, if not removed) remove the sub folder "jre" from the JabRef installation directory?
And then install the latest dev version of JabRef.

@Glenbeulah
Copy link

@Siedlerchr not sure where to find the sub folder "jre". Do you have a hint for me? I uninstalled JabRef via AppCleaner which deletes the application and every other item connected to it. See below:
~/Library/Application Support/CrashReporter/JavaApplicationStub_8D16F21C-0625-5D17-9745-A05607371D91.plist
~/Library/Application Support/JabRef
~/Library/Saved Application State/com.install4j.0034-7691-1464-4754.23.savedState
also went to the java application to see which version is installed but besides "Java 1.8.0_172" I couldn't find any other entry.
A fix for this Problem isn't urgent for me since I found the DOI entry generator which is really handy for single entry imports.

@Siedlerchr
Copy link
Member

@Glenbeulah You could try downloading and running the latest jar file directly (not the dmg) into some folder and see if that works fine. Then we know that the install/uninstall process is somewhere wrong.

For reference, that was the other issue in which we found out that JabRef uninstall is required first #3587

As a workaround, you can always paste/copy bibtex code directly on the maintable. And new files can be imported by drag and drop on the table as well

@Glenbeulah
Copy link

@Siedlerchr I had the same problem which they discussed in #3587 and after uninstall/install it worked but than I ran into our current error.
Apparently the .jar-file has the same error... As you said I uninstalled Jabref than downloaded https://builds.jabref.org/master/JabRef-4.3-dev--snapshot--2018-05-05--master--b8ea55bc2.jar
and ran it directly but no luck.

@Glenbeulah
Copy link

oh and "drag and drop" works fine

@droseger
Copy link

droseger commented Aug 1, 2018

Are you sure the GTK style freezes Jabref? I had to downgrade to Jabref 4.1 because only the GTK style properly scales fonts and icons for my HDPI screen (and doesn't look as bad as Nimbus). I have not witnessed a single freeze. Also, people still seem to have crashes even with the GTK theme disabled.

@Siedlerchr
Copy link
Member

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

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.

@urielz
Copy link

urielz commented Aug 29, 2018

I can confirm that the dev version works on my end (macOS 10.13.6). Thanks!

@koji33
Copy link
Contributor

koji33 commented Nov 8, 2018

I still face the same importing issue with JabRef 4.3.1 on MacOS Mojave (10.14)... Running from the jar file directly, the import operation emits the following information on stderr and freezes:

objc[4385]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff917711d0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x18f3e9dc8). One of the two will be used. Which one is undefined.

@koji33
Copy link
Contributor

koji33 commented Nov 9, 2018

BTW, look and feel is set to default on Mac: com.apple.laf.AquaAndFeel. I tried some other availabilities in vain.

On the other hand, direct importing from the command line works well.

# java -jar /Applications/JabRef.app/Contents/java/app/JabRef-4.3.1.jar -i Downloads/some.ris
Importing in unknown format: Downloads/some.ris
Format used: RIS
File: grouptree.fxml not found, attempting with camel case
File: grouptree.css not found, attempting with camel case

@Siedlerchr
Copy link
Member

@koji33 Please use the latest development version from https://builds.jabref.org/master/
Remember to make a backup of your library.

@CharlesVilliers
Copy link

CharlesVilliers commented Nov 20, 2018

After I updated macOS High Sierra to Mojave, my perfectly running JabRef 4.2 freezes, not when opening a library file, but as soon as I want to open the entry editor.
The latest development version of JabRef 5 looks really good but is slow and unresponsive, the entry editor takes five seconds to show another entry.

EDIT: Apparently, the etc/hosts file was restored to default during the Mac update and I had to edit it again in order to get JabRef to work. This shouldn't really be necessary should it?
(see: #3236 (comment))

Edit2: The change in the hosts-file also fixed the five-seconds-delay in the latest development version which is now running smoothly, apparently. It really looks and feels nice, I am looking forward to a stable version of JabRef 5.

@retorquere
Copy link

I'm on Mojave, JabRef 4.3.1 (just installed) freezes after start.

@egarpor
Copy link

egarpor commented Oct 9, 2019

Mojave, JabRef 4.3.1 just installed. I try to save a database, it freezes.

@Siedlerchr
Copy link
Member

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

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.

@tdupu
Copy link

tdupu commented Nov 19, 2019

Still a problem for me.
Mac OS X 10.14.6 Mojave.

@egarpor
Copy link

egarpor commented Nov 20, 2019

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

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.

This worked, version

JabRef 5.0.0-dev--2019-10-20----dfad2fdea
Mac OS X 10.14.6 x86_64
Java 12.0.2

However, it is quite slow when adding an entry or making an edit to an existing entry.

@Siedlerchr
Copy link
Member

@egarpor Please try to remove the old JabRef installation before installing the latest snapshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: macOS status: waiting-for-feedback The submitter or other users need to provide more information about the issue
Projects
None yet
Development

No branches or pull requests