jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Still freezes on macOS High Sierra

Open jimjianghk opened this issue 8 years ago • 42 comments

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

jimjianghk avatar Apr 28 '18 19:04 jimjianghk

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

urielz avatar Apr 30 '18 19:04 urielz

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

Siedlerchr avatar Apr 30 '18 19:04 Siedlerchr

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 avatar Apr 30 '18 20:04 urielz

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...

urielz avatar Apr 30 '18 21:04 urielz

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.

Siedlerchr avatar Apr 30 '18 22:04 Siedlerchr

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

urielz avatar May 01 '18 01:05 urielz

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

Siedlerchr avatar May 01 '18 08:05 Siedlerchr

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

ukleine avatar May 01 '18 10:05 ukleine

Thanks, I fond it. It is really tricky that there was not the release panel when you are in the issue panel on GitHub.

在 2018年5月1日,16:30,Christoph [email protected] 写道:

@LinusDietz https://github.com/LinusDietz can you take a look? Old versions can be found here https://github.com/JabRef/jabref/releases https://github.com/JabRef/jabref/releases — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JabRef/jabref/issues/3995#issuecomment-385624637, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ3aYLQRSGsjxPx2MgoT9TE9Ja4KbQJIks5tuB0OgaJpZM4Trit3.

yangmqglobe avatar May 01 '18 10:05 yangmqglobe

@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

Siedlerchr avatar May 01 '18 11:05 Siedlerchr

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.

ukleine avatar May 01 '18 11:05 ukleine

@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

Siedlerchr avatar May 01 '18 11:05 Siedlerchr

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]

ukleine avatar May 01 '18 11:05 ukleine

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

Siedlerchr avatar May 01 '18 11:05 Siedlerchr

@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.

urielz avatar May 01 '18 13:05 urielz

@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?

Siedlerchr avatar May 01 '18 13:05 Siedlerchr

@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.

urielz avatar May 01 '18 14:05 urielz

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

Siedlerchr avatar May 01 '18 14:05 Siedlerchr

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.

urielz avatar May 01 '18 14:05 urielz

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

Siedlerchr avatar May 01 '18 14:05 Siedlerchr