pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

GUI Invisible on Startup Due to Out-of-Range Bounds in config.json

Open rodgermoore opened this issue 1 year ago • 0 comments

Describe the bug

When starting pgAdmin 4 on Windows 11, the application starts but the GUI is invisible. This occurs when the previous application state was saved with a different display setup. The bounds in %APPDATA%/pgadmin4/config.json were out of range for the current display configuration.

To Reproduce

Steps to reproduce the behavior:

  1. Set bounds in config.json to an out-of-range situation for your current display setup.
  2. Start pgAdmin 4.
  3. Observe that no user interface appears when starting pgAdmin 4.

Expected behavior

pgAdmin 4 should check if the set bounds exist with the current display setup. If they do, use them; otherwise, reset the bounds to [0,0] to ensure the GUI is visible.

Error message

There is no error message displayed.

Screenshots

No screenshots are available.

Desktop (please complete the following information):

  • OS: Windows 11 Enterprise
  • Mode: Desktop
  • Package type: Windows executable

Additional context

  • OS Version: 23H2
  • OS Build: 22631.3880
  • Windows Feature Experience Pack: 1000.22700.1020.0
  • Installation Date: July 26, 2023

The problem can be solved by resetting bounds to x=0, y=0. pgAdmin should implement a check to verify if the set bounds exist within the current display setup. If true, use the existing bounds; otherwise, reset the bounds to [0,0].

Relevant config details: APP_NAME = "pgAdmin 4" APP_RELEASE = 8 APP_REVISION = 10 APP_VERSION = "8.10" COMMIT_HASH = "ab25238f17bd52aa361db487a94435e97beb62c6 2024-07-29" DATA_DIR = "C:\Users\REDACTED\AppData\Roaming\pgadmin" IS_WIN = True SERVER_MODE = False

Note: All paths containing personal information have been redacted.

rodgermoore avatar Aug 04 '24 07:08 rodgermoore