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

jabref 5 freezes with options menu #6077

Closed
mifads opened this issue Mar 8, 2020 · 9 comments
Closed

jabref 5 freezes with options menu #6077

mifads opened this issue Mar 8, 2020 · 9 comments

Comments

@mifads
Copy link

mifads commented Mar 8, 2020

JabRef version 5.0-portable-linux-tar on Elementary OS 5.0

JabRef starts, and I can load .bib files. Any attempt to use the Options menu fails though, e.g. Options - Preferences. At this stage, I can't cancel, or change to a different option.

Steps to reproduce the behavior:

  1. unpack the tar version (though .deb also failed in the same way)
  2. cd JabReb
  3. bin/JabRef -> opens JabRef, though many errors appear in terminal - see png
  4. Press Options then e.g. preferences -> freeze

top_of_log

@Siedlerchr
Copy link
Member

On Windows I could not reproduce this. Could you try to reset your preferences?
You can do this using the command line switch -d all
https://docs.jabref.org/general/commandline#reset-preferences-d-key

@mifads
Copy link
Author

mifads commented Mar 8, 2020

You can do this using the command line switch -d all

Just tried. No difference.

@Siedlerchr
Copy link
Member

Try to delete the preferences file:
https://stackoverflow.com/a/1320798

@mifads
Copy link
Author

mifads commented Mar 9, 2020

In ~/.java/.userPrefs I have 7 prefs.xml files in different sub-directories. Should I just do
rm -r .userPrefs?

@Siedlerchr
Copy link
Member

There should one be labeled JabRef

@mifads
Copy link
Author

mifads commented Mar 9, 2020

ls -laRt from .java gives:

./.userPrefs:
total 12
drwxrwxr-x 3 davids davids 4096 mar 9 09:35 ..
drwxrwxr-x 4 davids davids 4096 mar 8 12:19 org
-rw------- 1 davids davids 0 mar 6 14:11 .userRootModFile.davids
drwx------ 3 davids davids 4096 mar 6 14:09 .
-rw------- 1 davids davids 0 mar 6 14:09 .user.lock.davids

./.userPrefs/org:
total 20
drwxrwxr-x 4 davids davids 4096 mar 8 12:19 .
drwxr-xr-x 3 davids davids 4096 mar 8 12:19 jabref-shared
drwxrwxr-x 5 davids davids 4096 mar 8 12:19 jabref
-rw-rw-r-- 1 davids davids 148 mar 6 14:10 prefs.xml
drwx------ 3 davids davids 4096 mar 6 14:09 ..

./.userPrefs/org/jabref-shared:
total 16
-rw-r--r-- 1 davids davids 148 mar 8 12:19 prefs.xml
drwxr-xr-x 2 davids davids 4096 mar 8 12:19 default
drwxr-xr-x 3 davids davids 4096 mar 8 12:19 .
drwxrwxr-x 4 davids davids 4096 mar 8 12:19 ..

./.userPrefs/org/jabref-shared/default:
total 12
-rw-r--r-- 1 davids davids 148 mar 8 12:19 prefs.xml
drwxr-xr-x 2 davids davids 4096 mar 8 12:19 .
drwxr-xr-x 3 davids davids 4096 mar 8 12:19 ..

./.userPrefs/org/jabref:
total 24
-rw-r--r-- 1 davids davids 353 mar 8 12:19 prefs.xml
drwxrwxr-x 4 davids davids 4096 mar 8 12:19 ..
drwxrwxr-x 2 davids davids 4096 mar 8 12:19 customizedBiblatexTypes
drwxrwxr-x 5 davids davids 4096 mar 8 12:19 .
drwxrwxr-x 2 davids davids 4096 mar 8 12:19 customizedBibtexTypes
drwxrwxr-x 2 davids davids 4096 mar 6 14:10 bibtexkeypatterns

./.userPrefs/org/jabref/customizedBiblatexTypes:
total 12
-rw-r--r-- 1 davids davids 148 mar 8 12:19 prefs.xml
drwxrwxr-x 2 davids davids 4096 mar 8 12:19 .
drwxrwxr-x 5 davids davids 4096 mar 8 12:19 ..

./.userPrefs/org/jabref/customizedBibtexTypes:
total 12
-rw-r--r-- 1 davids davids 148 mar 8 12:19 prefs.xml
drwxrwxr-x 2 davids davids 4096 mar 8 12:19 .
drwxrwxr-x 5 davids davids 4096 mar 8 12:19 ..

/.userPrefs/org/jabref/bibtexkeypatterns:
total 12
drwxrwxr-x 5 davids davids 4096 mar 8 12:19 ..
-rw-rw-r-- 1 davids davids 148 mar 6 14:10 prefs.xml
drwxrwxr-x 2 davids davids 4096 mar 6 14:10 .

@Siedlerchr
Copy link
Member

You can delete all starting with the path org/jabref/...

@mifads
Copy link
Author

mifads commented Mar 9, 2020

Well, it stopped the freezing, but Options - Preferences - is still on 'General'. If I press on any other entry the dialog box disappears (it is just hidden), but I can't access the other items. My terminal is reporting:

(JabRef:10236): Gdk-WARNING **: 10:01:03.792: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.

Additionally, as soon as JabRef starts I get the same type of warning messages about Unrecognised format specifier as in my first posrt above.

ON the other hand, all of the above problems are on laptop (Elementary OS 5). I have tried running the same bin/JabRef from my desktop (Xubuntu 20.04), and all seems well there. Except that I get exactly the same warning message.

@Siedlerchr
Copy link
Member

Okay, that seems to be a specifiy linux issue with the distribution. As far as I know Javafx (the UI technology) uses GTK3. But I'm not an expert in the linux differences.
The warning messages regarding the format specifier are irrelevant, they are related to an external dependency and also occur on windows. See #6009

For me this seems to be some external java/linux bug which we can't do anything about for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants