Skip to content

JavaScript Error Prevents App UI from Loading #9762

@ZarehD

Description

@ZarehD

Description

For the last few weeks, pgAdmin has been misbehaving such that the app, after the splash screen closes, opens the main app window with either a blank white background or a gray background with the spinner + "loading..." message and stops there.

When I click the X icon to close the window, a err message-box is displayed with the info shown below.

Other times, even when the app UI manages to load, Query Tool scripts may or may not load, and when they don't load, their tab cannot be closed. The menu option View->Reload can sometimes fix the issue, but not always.

Installation

pgAdmin is installed with the Windows installer. I've uninstalled and re-installed the app, and even upgraded from v9.11 to 9.12 to v9.13. The issue persists regardless.

Version Info

PgAdmin Version: 9.13
OS: Windows 11 Pro, 25H2, w/ all patches applied

Log File

App Shortcut (modified to write the log file to the temp folder):

  • "C:\Program Files\pgAdmin 4\runtime\pgAdmin4.exe" > %TEMP%\pgAdmin-log\pgadmin-console.log
  • log file (%TEMP%\pgAdmin-log\pgadmin-console.log) has no content, and length is 0.

The Error Message-box Window

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'map')
    at bindMenuClicks (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/menu.js:35:23)
    at buildMenu (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/menu.js:118:18)
    at buildAndSetMenus (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/menu.js:184:14)
    at refreshMenus (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/menu.js:193:3)
    at updateConfigAndMenus (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/autoUpdaterHandler.js:26:5)
    at BrowserWindow.<anonymous> (file:///C:/Program%20Files/pgAdmin%204/runtime/resources/app/src/js/pgadmin.js:432:5)
    at BrowserWindow.emit (node:events:520:35)

[OK]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions