yubioath-flutter icon indicating copy to clipboard operation
yubioath-flutter copied to clipboard

Dual monitors + scaled primary monitor can cause application interface to not load

Open mcisbuthl opened this issue 4 years ago • 8 comments

  • Yubico Authenticator version: 5.0.4
  • Operating system and version: Windows 10 20H2
  • YubiKey model and version: YubiKey 5 NFC
  • Bug description summary: Running with dual monitors under some monitor configurations, the Yubico Authenticator application will work on first run then, given the steps below, will not render a UI for subsequent opens. Changing configurations and reopening can restore the UI, but repeating the steps results in the same outcome.

Steps to reproduce

  1. Have 2 monitors on Windows 10 (in this case, both 1080p)
  2. Scale the primary monitor to 150% through display settings
  3. Open Yubico Authenticator
  4. Move Yubico Authenticator to the secondary monitor
  5. Close Yubico Authenticator
  6. Open Yubico Authenticator. No UI is rendered, and no error is indicated.

Note: in the first case I noticed this, both monitors were scaled to 150%. Testing of various configurations showed that the primary monitor being scaled up was the prerequisite for the error to occur, and the secondary need not be scaled.

Expected result

Application interface opens up as usual

Actual results

No interface is presented. Hovering over the application in the task bar indicates a blank-looking window exists, but that window can not be brought to front and definitely does not have the content of the normal Yubico Authenticator window.

Other info

Attempts were made to alleviate this issue through reboots, deletion of YKAuth configs, reinstallation of the application, to no avail. Each would result in the UI once again appearing, but repeating the steps would again result in the issue.

The issue seems to occur only if the application is on the secondary monitor when closed.

mcisbuthl avatar Mar 10 '21 14:03 mcisbuthl

I have a similar issue(1440p and 1080p monitor both on 100%). Closing it on my second monitor causes the ui not to load and the software to be not responding in. However you can temporarily fix it if you set opengl to software as mentioned in #678 Still. This is very annoying and I hope for a fix soon

TobiasGoetz avatar Mar 11 '21 11:03 TobiasGoetz

Hey, Thanks for reporting this. @mcisbuthl does it help if you set QT_OPENGL to software? Just as @TobiasGoetz mentioned.

fdennis avatar Mar 11 '21 12:03 fdennis

@fdennis While it definitely sounded similar to me and promising, I unfortunately did not see a fix from QT_OPENGL.

> set QT_OPENGL=software
> yubioath-desktop.exe
[ move to second monitor, close ]
> yubioath-desktop.exe
[ renders no GUI, taskbar falsely indicates one exists ]

mcisbuthl avatar Mar 11 '21 14:03 mcisbuthl

This sounds like a positioning issue, the window is incorrectly being positioned "off screen". Try giving the window focus by clicking on its taskbar entry, then use the WIN+ARROW keys to try to move it around. Usually this will succeed in positioning it correctly on screen.

dainnilsson avatar Mar 11 '21 15:03 dainnilsson

@dainnilsson no dice. As I mentioned, the window that the taskbar indicates exists is blank from its preview, which is obviously weird. I did give repositioning a shot, but it did not allow that "window" to take focus; clicking it then win+arrow resulted in no visible changes.

mcisbuthl avatar Mar 15 '21 15:03 mcisbuthl

I have this issue also, but alongside this, resizing the window crashes the app when on my primary screen.

Primary screen == 4k (3840x2160) (150%) Secondary == 2k (3440x1440) (125%)

Setting QT_OPENGL=software as mentioned above seems to fix the resize issue for me.

This is running on Win10 Pro, 128GB RAM, RTX 2080ti with latest nvidia drivers.

Added the resize issue to this ticket as it seems related.

digiservnet avatar Apr 12 '21 10:04 digiservnet

Same issue here. Had to move everything back to monitor 1 and shut off scaling to get it back. Windows 10 with nvidia. Attempting to move the app did nothing. It shows up on monitor 1's taskbar but the app window never shows.

jmurgolo avatar May 18 '21 14:05 jmurgolo

One year after and issue still not resolved. Just downloaded the latest Authenticator app, same problem with UI on dual monitor. Windows 10 21H2.

mario801 avatar Jun 15 '22 07:06 mario801

Yubico Authenticator 6.0 has now been released and uses a new codebase. As such, this issue has been marked with the legacy label, and will be automatically closed in 7 days. If this issue is still relevant to Yubico Authenticator 6, please comment on the issue saying so, and it will be kept open (or be re-opened). Sorry for the inconvenience!

dainnilsson avatar Nov 16 '22 10:11 dainnilsson