Key Generation doesn't work on 4.1-dev


(Qi) #1

I am on version JabRef 4.1-dev–snapshot–2017-10-29–master–4178789ce
Windows 10 10.0 amd64
Java 1.8.0_151

Whenever I try generating bibtex key on an entry, the program doesn’t do anything and will freeze. I have more than 2500 entries if that matters a bit. Am I alone on this issue?


(Christoph) #2

Hi,

thanks for your report. I can not reproduce this issue. Do you select all and press Generate key? Do you have a special pattern?
Can you try starting JabRef from command line java -jar JabRef.jar and see if there is any Error/message?

Regards


(Qi) #3

Ok, I found this time it’s a little different, but mostly the same while having another issue. I started the program from the windows CMD window, then added one article entry by copying the bibtex code from Google Scholar to the SourceCode (BibTex) tab. I then clicked the Generate Key button on the left. The BibTex Key on the source code window doesn’t seem to change and the entry is no longer highlighted and not at the bottom on the main window of JabRef. So, I navigate in the main window of JabRef to find the entry. I clicked another entry below it and click back to the entry I was editting. Then I found the bibtex key has been changed. Then I tried to add another article entry, but the tabs in the entry editting window becomes blank. No place I can paste the bibtex code, no tab button worked after clicking using my mouse. See the figure below for the snapshot. I also attached the code from the CMD window for your reference. I use [auth][year][veryshorttitle] as the key pattern for generating the bibtex keys. I also customized the interface’s color before upgrading to JabRef 4.* from v3.8, but now it seems to have problems with the style files. Thanks.

$java -jar JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar
AI: INFO 30-10-2017 11:12, 23: Configuration file has been successfully found as resource
11:13:22.455 [AWT-EventQueue-0] INFO org.jabref.logic.importer.OpenDatabase - Opening: E:\References\Archive\Archive.bib
File: grouptree.fxml not found, attempting with camel case
File: grouptree.css not found, attempting with camel case
11:15:46.475 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “ID-based_entry_generator” for locale en 11:16:03.695 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “Create_blank_entry_linking_the_PDF” for locale en
11:16:03.696 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “Create_entry_based_on_XMP-metadata” for locale en
11:16:03.698 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “Create_entry_based_on_content” for locale en
11:16:03.698 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “Only_attach_PDF” for locale en
11:19:08.443 [pool-3-thread-5] INFO org.jabref.logic.importer.fetcher.ArXiv - Fulltext PDF found @ arXiv.
11:21:41.673 [AWT-EventQueue-0] WARN org.jabref.logic.l10n.Localization - Warning: could not get message translation for “ID-based_entry_generator” for locale en
11:21:43.263 [JavaFX Application Thread] ERROR org.jabref.FallbackExceptionHandler - Uncaught exception occurred in Thread[JavaFX Application Thread,5,main] java.lang.IndexOutOfBoundsException: [-2147483648, 16) is not a valid range within [0, 16)
at org.reactfx.util.Lists.checkRange(Lists.java:128) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.reactfx.util.Lists.checkRange(Lists.java:123) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.reactfx.collection.MemoizationListImpl.forget(MemoizationList.java:184) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.CellListManager.cropTo(CellListManager.java:71) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.CellPositioner.cropTo(CellPositioner.java:24) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.Navigator.cropToNeighborhoodOf(Navigator.java:209) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.Navigator.placeStartAtMayCrop(Navigator.java:182) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.Navigator.visit(Navigator.java:111) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.StartOffStart.accept(TargetPosition.java:49) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at org.fxmisc.flowless.Navigator.layoutChildren(Navigator.java:67) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at javafx.scene.Parent.layout(Parent.java:1087) ~[jfxrt.jar:?]
at org.fxmisc.flowless.VirtualFlow.layoutChildren(VirtualFlow.java:165) ~[JabRef-4.1-dev–snapshot–2017-10-29–master–4178789ce.jar:?]
at javafx.scene.Parent.layout(Parent.java:1087) ~[jfxrt.jar:?]
at javafx.scene.Parent.layout(Parent.java:1093) ~[jfxrt.jar:?]
at javafx.scene.Parent.layout(Parent.java:1093) ~[jfxrt.jar:?]
at javafx.scene.Parent.layout(Parent.java:1093) ~[jfxrt.jar:?]
at javafx.scene.Parent.layout(Parent.java:1093) ~[jfxrt.jar:?]
at javafx.scene.Scene.doLayoutPass(Scene.java:552) ~[jfxrt.jar:?]
at javafx.scene.Scene.preferredSize(Scene.java:1646) ~[jfxrt.jar:?]
at javafx.scene.Scene.impl_preferredSize(Scene.java:1720) ~[jfxrt.jar:?]
at javafx.stage.Window$9.invalidated(Window.java:846) ~[jfxrt.jar:?]
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109) ~[jfxrt.jar:?]
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144) ~[jfxrt.jar:?]
at javafx.stage.Window.setShowing(Window.java:922) ~[jfxrt.jar:?]
at javafx.stage.Window.show(Window.java:937) ~[jfxrt.jar:?]
at com.sun.javafx.stage.EmbeddedWindow.show(EmbeddedWindow.java:58) ~[jfxrt.jar:?]
at javafx.embed.swing.JFXPanel.lambda$addNotify$49(JFXPanel.java:799) ~[jfxrt.jar:?]
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295) ~[jfxrt.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_151]
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294) ~[jfxrt.jar:?]
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) ~[jfxrt.jar:?]
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[jfxrt.jar:?]
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177) ~[jfxrt.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]


(Christoph) #4

Thanks for your update. I could reproduce this error.

Btw, to make your life easier: You can directly copy and paste bibtex on the Main Table, so you don’t need to create a new entry first and then pasting the code in the tab


(Qi) #5

Thank you for the trick!


(Tobias Diez) #6

@i2000s This should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks!


(Qi) #7

Cool! This seems working on Windows 10 so far. I’ll try it on Linux and report back later.


(Qi) #8

@tobiasdiez I just tried the new version on Ubuntu 16.04.3. The key-generator worked.

The only major issue I have on Linux is the file link/auto-download doesn’t work. The program freezes if I use a link to download the PDF file. There is no error message except there is one about Error parsing gtk-icon-sizes string: '' in starting. Hopefully, this can be fixed soon as well. Thanks.


(Tobias Diez) #9

@i2000s Thanks for the feedback! Can you please report the issue over at github, because otherwise I fear me might loose track of it! Thanks!


(Qi) #10

Ok, I have submitted it as an issue. Thanks.