JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.47k stars 2.44k forks source link

Can't escape full screen + menus stay closed (after upgrade to 5.12/5.13) #10731

Open sparusaurata opened 6 months ago

sparusaurata commented 6 months ago

JabRef version

5.12 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Mint 21.2 with Cinnamon 5.8.4

Checked with the latest development build (copy version output from About dialog)

Steps to reproduce the behaviour

  1. Upgrade to 5.12 by manually installing the Debian package.
  2. Open JabRef.
  3. The window is in full-screen (Cinnamon's title bar and bottom panel aren't visible), and when I click on a menu item (File, Edit, etc.) it appears and disappears immediately after.
  4. The solutions from https://docs.jabref.org/installation (adding Java options) don't change anything.

Appendix

Notice that I'll be able to perform some tests tomorrow if needed, but then I'll just re-install a previous version to be able to work. :disappointed:

Log File ``` 2023-12-27 18:44:25 [JavaFX-Launcher] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log() WARN: Unsupported JavaFX configuration: classes were loaded from 'module org.jabref.merged.module', isAutomatic: false, isOpen: true 2023-12-27 18:44:27 [JavaFX Application Thread] org.jabref.gui.StateManager.setActiveDatabase() INFO: No open database detected 2023-12-27 18:44:27 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings() INFO: Not updating theme because it hasn't changed 2023-12-27 18:44:27 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings() INFO: Theme set to Theme{type=EMBEDDED, name='Dark.css'} with base css StyleSheet{jrt:/org.jabref/org/jabref/gui/Base.css} 2023-12-27 18:44:27 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings() INFO: Not updating theme because it hasn't changed 2023-12-27 18:44:27 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings() INFO: Theme set to Theme{type=EMBEDDED, name='Dark.css'} with base css StyleSheet{jrt:/org.jabref/org/jabref/gui/Base.css} 2023-12-27 18:44:29 [JavaFX Application Thread] org.jabref.preferences.JabRefPreferences.getFetcherKeysFromKeyring() WARN: JabRef could not open the key store 2023-12-27 18:44:29 [pool-1-thread-1] org.jabref.gui.JabRefDialogService.notify() INFO: Ouverture en cours: (...) ```
Siedlerchr commented 6 months ago

@ThiloteE don't you have Linux mint as well?

ThiloteE commented 6 months ago

I am on an older version of Linux Mint (20.3). I use the flatpak version of JabRef. The newest portable version I can run there is JabRef 5.9, because JabRef requires a newer kernel, which by default is only delivered with Ubuntu 22.0X or something and Linux Mint 20.3 is based on an older Ubuntu. I have not tried any of the deb versions.

Siedlerchr commented 6 months ago

Can you test the latest 5.13 from here? https://builds.jabref.org/main/ We donwgraded javafx

k3KAW8Pnf7mkmdSMPHz27 commented 6 months ago

I can't reproduce in Ubuntu 22.04, but I don't use Cinnamon

k3KAW8Pnf7mkmdSMPHz27 commented 6 months ago

Can't replicate it in Ubuntu 22.04 using Cinnamon, but I am unable to open JabRef in full-screen, so perhaps not that useful.

This might be related to the original part of https://github.com/JabRef/jabref/issues/4939 ?

sparusaurata commented 6 months ago

Can you test the latest 5.13 from here? https://builds.jabref.org/main/ We donwgraded javafx

The bug persists. :cry:

Siedlerchr commented 6 months ago

Then this sounds more like a bug in cinnamonn

AdamWysokinski commented 6 months ago

I have a similar issue using Linux/i3 wm. Menus close immediately, unless the mouse key is kept pressed. But then, menu options cannot be selected. Menus keyboard shortcuts works fine. Same for 5.13. The issue is not present in 5.11.

messiem commented 6 months ago

Same issue here; I just installed 5.12 and did not have the issue in 5.11. Running Ubuntu 22.04.3 in Wayland.

Updating this because I first thought it had to do with Wayland but maybe not; my other (Xorg?) Ubuntu version was set up differently for displays. From what I can tell it had more to do with using dual displays and which one was set up as primary (the bug only happened when my external display was set up as primary). I installed 5.13 following a link given above and while the bug was still there at first, after a bit more random tests I am back on Wayland + primary external display and all looks well now (no idea why), so I won't touch this anymore - I'll report back if the bug comes back.

Siedlerchr commented 5 months ago

Can you please test this version? https://builds.jabref.org/pull/10808/merge @AdamWysokinski At least the menu problem on i3 should be fixed

AdamWysokinski commented 5 months ago

The new build works fine on i3, thanks!

Ectras commented 5 months ago

I have the same issue on Ubuntu 22.04.3 with Wayland. The window is in full screen and the menus disappear. I can confirm that installing 5.13 from https://builds.jabref.org/pull/10808/merge solved the issues with the menus for me (they are working normally again), but the window is still in full screen.

AdamWysokinski commented 5 months ago

With the build 10808 on i3 there is no problem with switching full-screen on and off.

mButlerDM commented 5 months ago

I have this problem as well on the latest 5.13 build as of this comment. I can interact with menus by clicking now but the application is still stuck in full screen.

Linux Mint 21.2 with Cinnamon 5.8.4.

teertinker commented 4 months ago

I updated to 5.12 today and have a similar issue on Ubuntu 22.04.. In Fullscreen Main Menu is not working. However in window mode, everything works as expected. Bildschirmaufzeichnung vom 07.03.2024, 14:31:26.webm

Update: 5.13 dev solved the issue for me.

karls0 commented 3 months ago

Hi, I have the same problem: 5.13 from https://builds.jabref.org/pull/10808/merge solved the issues with the menus for me (they are working normally again), but the window is still in full screen. I can use the program now, but I can't change workspaces because of fullscreen mode. How can I switch to window mode? I'm using Mint 21.3 Virginia.

plyaden commented 3 months ago

Hi, I have the same problem: 5.13 from https://builds.jabref.org/pull/10808/merge solved the issues with the menus for me (they are working normally again), but the window is still in full screen. I can use the program now, but I can't change workspaces because of fullscreen mode. How can I switch to window mode? I'm using Mint 21.3 Virginia.

Hi, i have the same Problem on Obuntu 22.04. Sometimes it works to click the windowsbutton + arrowkeys, or just restart RabRef. The Problem only occurs at the first Start of the Software for me.

Siedlerchr commented 3 months ago

Can you try the version with javafx22-ea-28from here? https://builds.jabref.org/jdk-ea/

karls0 commented 3 months ago

Hi Chris, I tried the version you mentioned, but it is worse than 5.13.233. No window decoration and the menus don't stay open to select an item. Good to remember Alt+F4 to quit :-) I also found out how to switch workspaces by using Ctrl+Alt-up-arrow. So not a big Problem for me, but thank you for the suggestion.

karls0 commented 3 months ago

@plyaden Thank you, but neither method works for me.

calixtus commented 3 months ago

Tried just now the latest build in linux-portable with my linux machine, arch linux, kde, wayland, but could not reproduce... grafik

koppor commented 3 months ago

@calixtus It seems to be about Linux Mint and Cinnamon. - Can you start Cinnamon on arch maybe?

wujastyk commented 3 months ago

JabRef 5.13--2024-03-20--047a975 Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

I'm having this same problem (Jabref in fullscreen mode and can't get out of it; clicking menus doesn't open the dropdown). I'm using Linux Mint and Cinnamon. Other programs running at the same time are normal; it's just Jabref.

wujastyk commented 3 months ago

Can you try the version with javafx22-ea-28from here? https://builds.jabref.org/jdk-ea/

I tried this - no improvement.

wujastyk commented 3 months ago

JabRef 5.13--2024-03-20--82a0338 Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

The fullscreen-only problem appears only on my laptop (Thinkpad T580) and not on my dual-screen desktop setup. There, the same version of JabRef behaves just fine.

I don't know if it's related, but once again JabRef presents the "custom entry types" approval screen on every startup.

image

wujastyk commented 3 months ago

Can you test the latest 5.13 from here? https://builds.jabref.org/main/ We donwgraded javafx

Didn't help, for me.

karls0 commented 3 months ago

Hi, this version opens in full screen mode and the menues are not usable!

The latest version I can use, but still in full screen, is: JabRef 5.13--2024-03-08--8afe793 Linux 5.15.0-101-generic amd64 Java 21.0.2 JavaFX 21.0.2+5

Thank you for your work! Karl

Mit freundlichen Grüßen

Ing. Karl SCHUH Hauptstrasse 23a A-7434 Bernstein +43(664)3806107

Von: "Dominik Wujastyk" @.> An: "JabRef/jabref" @.> CC: "Karl SCHUH" @.>, "Comment" @.> Gesendet: Sonntag, 24. März 2024 04:55:12 Betreff: Re: [JabRef/jabref] Can't escape full screen + menus stay closed (after upgrade to 5.12/5.13) (Issue #10731)

Can you test the latest 5.13 from here? [ https://builds.jabref.org/main/ | https://builds.jabref.org/main/ ] We donwgraded javafx

Didn't help, for me.

— Reply to this email directly, [ https://github.com/JabRef/jabref/issues/10731#issuecomment-2016683770 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AAWNKJLODGWNWZSGOHO5U3TYZZFCBAVCNFSM6AAAAABBETJW46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGY4DGNZXGA | unsubscribe ] . You are receiving this because you commented. Message ID: @.***>

karls0 commented 3 months ago

Hi, this version 5.13.303 opens in full screen mode and the menus are not usable!

The latest version I can use, but still in full screen, is: JabRef 5.13--2024-03-08--8afe793 Linux 5.15.0-101-generic amd64 Java 21.0.2 JavaFX 21.0.2+5

Thank you for your work! Karl I am on: Host: mint-box Kernel: 5.15.0-101-generic x86_64 bits: 64 Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia using a dual-screen monitor setup

wujastyk commented 3 months ago

JabRef 5.13--2024-03-20--82a0338 Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

The fullscreen-only problem appears only on my laptop (Thinkpad T580) and not on my dual-screen desktop setup. There, the same version of JabRef behaves just fine.

PS, on the two-monitor desktop setup, JabRef doesn't have a Fullscreen mode at all. It's either maximized or not, but even maximized, it's still got it's top menubar and is not Fullscreen as such.

karls0 commented 3 months ago

To make it clear: JabRef occupies one monitor, the main Monitor, completely and therefore I have no access to the "statusbar" (containing the menu-button. The second monitor can be used for any other program that has been started before.

wujastyk commented 3 months ago

JabRef 5.13--2024-03-24--4432dcf Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

I uninstalled JabRef and went through my whole hard drive deleting all files that had "jabref" in the filename. Then I reinstalled today's JabRef, and it works properly, not in Fullscreen mode. But I'm sorry, I didn't keep a list of everything I deleted (I was kind of desperate). However, it was (at least) everything in

/var  
/etc  
~/.cache 
~/.local.share
~/.java/.userPrefs/org/jabref

I don't think it can be related, but I also ran a "refresh" on Firefox (v.124) just before the new install of JabRef.

wujastyk commented 3 months ago

JabRef 5.13--2024-03-24--4432dcf Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

I uninstalled JabRef and went through my whole hard drive deleting all files that had "jabref" in the filename. Then I reinstalled today's JabRef, and it works properly, not in Fullscreen mode. But I'm sorry, I didn't keep a list of everything I deleted (I was kind of desperate). However, it was (at least) everything in

/var  
/etc  
~/.cache 
~/.local.share
~/.java/.userPrefs/org/jabref

Addition:

Aaaargh. On the second use of JabRef, it reverted to the Fullscreen-only state. Grrr.

wujastyk commented 3 months ago

JabRef 5.13--2024-03-20--82a0338 Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

The fullscreen-only problem appears only on my laptop (Thinkpad T580) and not on my dual-screen desktop setup. There, the same version of JabRef behaves just fine.

JabRef 5.13--2024-03-25--b8f7f48 Linux 6.5.0-26-generic amd64 Java 21.0.2 JavaFX 22+30

This is wrong. I have a dual-monitor desktop setup at work (Dell) and yesterday's JabRef 5.13 goes to fullscreen on the main monitor just the same as on my laptop. But I did some work this morning on my dual-monitor desktop at home (Intel NUC) and the same JabRef version behaved just fine, with the menu bar, etc.

Siedlerchr commented 3 months ago

@wujastyk Do you have different desktop environments? Regarding Wayland I found this general issue here https://bugs.openjdk.org/browse/JDK-8326710

wujastyk commented 3 months ago

@wujastyk Do you have different desktop environments? Regarding Wayland I found this general issue here https://bugs.openjdk.org/browse/JDK-8326710

No, both desktops are set up identically. Linux mint, Cinnamon, Xorg, not Wayland. One has a NUC box, i5, the other a Dell system from 9 years ago, i7.

The latest Linux mint does have an experimental wayland option. I'll give it a try and report back.

wujastyk commented 3 months ago

I tried to start Wayland on my Linux Mint Cinnamon system (an alpha implementation is available at login) and kind of trashed my system. After a day of struggling, I have given up on fixing Cinnamon for the moment. From an alternative system CLI login I could install the MATE interface. It works fine, and at least I can use the damn machine now.

TLDR; JabRef works find under MATE and does not open in fullscreen etc.

wujastyk commented 3 months ago

JabRef 5.13--2024-03-30--af6d14f Linux 5.15.0-101-generic amd64 Java 21.0.2 JavaFX 22+30

Further to my adventures above, I had to wipe my laptop and reinstall LinuxMint Cinnamon. JabRef now works perfectly. It's no longer fullscreen, the menus operate as normal.

My machine before the Wayland disaster was pretty standard, no issues, up-to-date. So I'm a bit surprised that the Jabref issue has gone away. I guess there's some interaction between JabRef and Cinnamon-in-some-states. Sorry I can't help more.

adamqinawi commented 3 months ago

I was having this same issue. For context: I have an external monitor connected to my laptop. JabRef exhibits this behavior when it is on the external screen at launch. By moving it via hotkey to the built-in monitor and restarting, the issue is fixed. Then it can be replicated again by moving JabRef to the external monitor and restarting it.

JabRef 5.12 via Flatpak Linux Mint 21.3 Virginia Cinammon 6.0.4

wujastyk commented 3 months ago

JabRef 5.13--2024-03-30--af6d14f Linux 5.15.0-101-generic amd64 Java 21.0.2 JavaFX 22+30

JabRef 5.13--2024-03-30--af6d14f Linux 5.15.0-101-generic amd64 Java 21.0.2 JavaFX 22+30

Further to my adventures above, I had to wipe my laptop and reinstall LinuxMint Cinnamon. JabRef now works perfectly. It's no longer fullscreen, the menus operate as normal.

Not this morning. Once again, fullscreen and no easy access to menus. Why? This a fresh Linux installation on which JabRef was working fine a few days ago.

In case it helps, here are the startup messages when invoking JR from the CLI:

+ /opt/jabref/bin/JabRef
Messages are not initialized before accessing key: Display help on command line options
2024-04-07 16:40:02 [JavaFX-Launcher] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Unsupported JavaFX configuration: classes were loaded from 'module org.jabref.merged.module', isAutomatic: false, isOpen: true
2024-04-07 16:40:02 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Not updating theme because it hasn't changed
2024-04-07 16:40:02 [JavaFX Application Thread] org.jabref.gui.theme.ThemeManager.updateThemeSettings()
INFO: Theme set to Theme{type=DEFAULT, name=''} with base css StyleSheet{jrt:/org.jabref/org/jabref/gui/Base.css}
2024-04-07 16:40:04 [JavaFX Application Thread] org.jabref.gui.StateManager.setActiveDatabase()
INFO: No open database detected
2024-04-07 16:40:04 [JavaFX Application Thread] org.jabref.preferences.JabRefPreferences.getFetcherKeysFromKeyring()
WARN: JabRef could not open the key store
2024-04-07 16:40:04 [pool-1-thread-1] org.jabref.gui.JabRefDialogService.notify()
INFO: Opening: '/home/dom/Dropbox/localtexmf/bibtex/bib/biblio4-utf8.bib'

(JabRef:116626): Gdk-WARNING **: 16:40:04.746: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
2024-04-07 16:40:04 [JavaFX Application Thread] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Resource "" not found.
2024-04-07 16:40:07 [JavaFX Application Thread] sun.util.logging.internal.LoggingProviderImpl$JULWrapper.log()
WARN: Resource "" not found.
2024-04-07 16:40:11 [pool-1-thread-2] org.jabref.logic.util.io.FileUtil.find()
calixtus commented 3 months ago

I finally managed to install cinnamon. grafik

I can confirm the issue with fullscreen. The window is not in maximized mode but the window has the size of the whole screen. My guess would be that somehow the resizeable option must have been turned off, since also the maximize decoration is gone in the window... After some clicking around the maximize decoration came back.

Maybe has sthg to do with the old gtk2 framework?

calixtus commented 3 months ago

happens with xorg as well as with wayland

karls0 commented 3 months ago

Hi, I tried 5.14, but get the same problems - "full screen" and the menus don#t stay open to select anything. To sum it up: 5.13.233 full screen, menus are usable 5.13.246 full screen, menus are not usable 5.13.303 full screen, menus are not usable 5.14.23 full screen, menus are not usable My setup: Linux Mint 21.3 Virginia Cinnamon 6.0.4 Kernel 5.15.0-101.generic x86 64 Intel Coe i7 860 GeForce GTX166 Super 2 monitors

paalge commented 2 months ago

I have the same problem: JabRef 5.13--2024-04-01--6bdcf63 Linux 6.6.13+bpo-amd64 amd64 Java 21.0.2 JavaFX 22+30

Linux mint debian edition.

calixtus commented 2 months ago

Cinnamon Desktop environment? A pattern starts show. We should expand the jfxtester to create menus in a mwe to test jfx in cinnamon. @Siedlerchr

paalge commented 2 months ago

@calixtus Yes, I'm running cinnamon

System: Kernel: 6.6.13+bpo-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 Desktop: Cinnamon v: 6.0.4 tk: GTK v: 3.24.38 wm: muffin vt: 7 dm: LightDM v: 1.26.0 Distro: LMDE 6 Faye base: Debian 12.1 bookworm

calixtus commented 2 months ago

Fullscreen bug is probably caused by the default setting for JabRef, which should be changed. I will open a PR for this.

The menus and the window decorations bug though seems imho likely caused by a bug in cinnamon, since we could not reproduce the menu and decoration bug in another desktop environment.

wujastyk commented 2 months ago

I have opened a bug report over at the Cinnamon repo: https://github.com/linuxmint/cinnamon/issues/12164

wujastyk commented 2 months ago

JabRef 5.14--2024-04-17--8763a11 Linux 6.5.0-28-generic amd64 Java 21.0.2 JavaFX 22+30

I've had a breakthrough! This morning I upgraded my laptop from Linux kernel 5.15.0-102 to 6.5.0-28, and JabRef is behaving properly again in every way. Woot!

calixtus commented 2 months ago

This bug is getting weirder and weirder... What else did you update? Desktop Environment or GTK? Could someone else test with the latest kernel like @wujastyk did and give us feedback? Thanks!

paalge commented 2 months ago

@calixtus As stated above I'm running the 6.6.13+bpo-amd64 kernel and I have the problem