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

Unable to launch jabref 4.2 with overriden font settings #3986

Closed
1 task
Char-Aznable opened this issue Apr 26, 2018 · 8 comments
Closed
1 task

Unable to launch jabref 4.2 with overriden font settings #3986

Char-Aznable opened this issue Apr 26, 2018 · 8 comments
Labels
status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@Char-Aznable
Copy link

Char-Aznable commented Apr 26, 2018

JabRef version on
4.2

Steps to reproduce:

  1. java -jar JabRef-4.2.jar

I'm not able to launch jabref and the above command hang with this error:

Log File ``` 11:39:11.538 [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.2.jar:?] at org.jabref.JabRefGUI.openWindow(JabRefGUI.java:87) ~[JabRef-4.2.jar:?] at org.jabref.JabRefGUI.(JabRefGUI.java:60) ~[JabRef-4.2.jar:?] at org.jabref.JabRefMain.lambda$start$0(JabRefMain.java:182) ~[JabRef-4.2.jar:?] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[?:1.8.0_151] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) ~[?:1.8.0_151] at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_151] at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_151] at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_151] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_151] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[?:1.8.0_151] at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) ~[?:1.8.0_151] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [?:1.8.0_151] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_151] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_151] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_151] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_151] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_151] ```

The same command works with jabref-4.1 and I'm using jdk 1.8.0-151 on CentOS 6.9

@Siedlerchr
Copy link
Member

Siedlerchr commented Apr 26, 2018

Probably because we removed the jgoodies stuff. Try resetting your preferences, with
Or start JabRef 4.1 and swith the L&F to another except plastic and gtk
java -jar Jabref.jar -d all

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

You may have a bad download. Check the filesize. Happened to me the first two times I tried (right click, k to choose location). 245 kb. When I just clicked on the link and sent the file to /Downloads, the full 56 MB file arrived.

@Char-Aznable
Copy link
Author

The file's SHA256 checksum is correct. The problem is indeed the Look&Feel. But java -jar Jabref.jar -d all removed all my previous setting including my customized PDF import filename pattern and I'd not recommend doing it. But changing the L&F in version 4.1 and switching back to 4.2 work. However, the L&F in 4.2 will occasionally cause the GUI to freeze and I'm switching back to 4.1 for now.

@lkfbr
Copy link

lkfbr commented May 1, 2018

I had the same problem with. Changing
<entry key="overrideDefaultFonts" value="true"/>
to false in prefs.xml solves it.

@Siedlerchr Siedlerchr changed the title Unable to launch jabref 4.2 Unable to launch jabref 4.2 with overriden font settings May 1, 2018
@lkfbr
Copy link

lkfbr commented May 1, 2018

Ok, I can reproduce it with clean preferences. When I use "NimbusLookAndFeel" and set "Override default font settings" in preferences I get java.lang.ClassCastException: java.awt.Font cannot be cast to javax.swing.plaf.FontUIResource.

java -version
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

Platform is Linux.

@Siedlerchr
Copy link
Member

Thanks for reporting, this. Fix is in progress

@Siedlerchr
Copy link
Member

There is a version that should fix this at https://builds.jabref.org/removeGTK/ Please try it out.

@lkfbr
Copy link

lkfbr commented May 1, 2018

Ok, it seems to be working now. However, "GTKLookAndFeel" is still visible as the default one.

screenshot from 2018-05-01 15-30-47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants