clients icon indicating copy to clipboard operation
clients copied to clipboard

Bitwarden app not showing when second display is turning off

Open 3579km opened this issue 4 years ago • 10 comments

Describe the Bug

Bitwarden app is not showing when second display is turning off

Steps To Reproduce

  1. Connect second display monitor to PC
  2. Run Bitwarden app
  3. Move Bitwarden app to the second screen
  4. Disconnect second display monitor from PC
  5. Reboot PC
  6. Run Bitwarden app

Expected Result

After rebooting PC and running Bitwarden app should running normally

Actual Result

After rebooting PC and start Bitwarden, the app is running in background mode (available in Task manager), but not showing its interface. Possibly app expecting second display which now is disconnected from computer

Screenshots or Videos

Environment

  • Operating system: Windows 10 version 20H2 (OS build 19042.746)
  • Bitwarden Build Version: 1.24.6
  • 2 display screens

Additional Context

3579km avatar Feb 03 '21 14:02 3579km

Starting having this today. But I can't get it to show on either displays anymore. App is running but no window.

mctehlers avatar Mar 03 '21 19:03 mctehlers

Same here - Bitwarden application window was not displaying on any screen, while running in the taskmanager and the icon was visible in the taskbar. Removing (backing up) the config folder in AppData/Roaming made the app work again as expected.

Shtoomik avatar Jun 04 '21 11:06 Shtoomik

This may be related to how we save the Electron window position. There should be some way of checking whether the saved position is out of bounds and adjusting accordingly.

eliykat avatar Jun 06 '21 22:06 eliykat

The C:\Users<USER>\AppData\Roaming\Bitwarden\data.json contains a property 'mainwindowSize'. When my bitwarden app was not visible, mainwindowSize.displayBounds.x and mainwindowSize.displayBounds.y where both 0. You need to close bitwarden before making any changes in data.json as the app overwrites values when its closed. I changed both x and y to 256, restarted and the window was visible again. However, currently my displaybounds have negative values, but the app is fine...

stefan-isele avatar Jan 24 '22 09:01 stefan-isele

I have a laptop + multi monitor setup, and after disconneting my monitors and restarting the computer, had the same issue - bitwarden did not detect that it's trying to appear out of current monitor).

mainwindowSize.displayBounds.x in C:\Users<USER>\AppData\Roaming\Bitwarden\data.json was something negatice - changing that to 0 fixes the issue.

GameBurrow avatar May 28 '22 18:05 GameBurrow

Having similar issue, probably due to laptop + multiple monitors layouts(landscape + portrait), and change the negative y value fixed it.

pstarliu avatar Sep 30 '22 01:09 pstarliu

This fixed it for me as well. Nice find! The specific change in the C:\Users\<USER>\AppData\Roaming\Bitwarden\data.json file was setting global.window.x and global.window.y both from -32768 to 0.

ynaamad avatar Dec 19 '22 02:12 ynaamad

same issue here. data.json workaround works, but this could use some fixing.

marcotielen avatar Jul 15 '23 18:07 marcotielen

Had this bug several times already, REALLY annoying. Always had to set "x": 0 or "y": 0 in data.json under global window, restart Bitwarden app and then it reappeard on the main monitor again.

Please fix it soon, thanks.

lsteger1983 avatar Mar 12 '24 20:03 lsteger1983

Still an issue.

piotrlis98 avatar May 05 '24 13:05 piotrlis98

Just had this happen to me today as well, so still a current issue

stocktaylor avatar Jun 07 '24 22:06 stocktaylor

Happened here also. The setting is now named global_desktopSettings_window.

UUSim avatar Jun 20 '24 10:06 UUSim

Had this happen to me today. 2024.7.0. It happens quite often. However, this was the first time that I couldn't move it to the main screen with Win+Arrowkey

Faulty/buggy %appdata%\Bitwarden\data.json "global_desktopSettings_window": { "width": 2748, "height": 1430, "isMaximized": false, "displayBounds": { "x": 0, "y": 0, "width": 5120, "height": 1440 }, "zoomFactor": 1, "x": 6814, "y": 0 },

It worked again after setting "zoomFactor": 1, "x": 0, "y": 0 },

cloudrootab avatar Jul 17 '24 10:07 cloudrootab