On Windows Server 2019, verion 1809, build 17763.7009, running in Desktop mode. I've just upgraded from pgAdmin 9.1 to 9.2. I open it, connect to a database, and try to open the query tool. This can be either using the icon on the toolbar, right-clicking on the database and selecting the Query Tool menu option, or using Alt-Shift-Q. There is a brief flash where it looks like the query tool is trying to open, then the pane goes blank and stays that way. The resulting tabs then refuse to close.
Sorry I meant to add this occurred when I opened the query history, now it seems to be trying to open the query history view all the time and I cannot stop this, I would suggest when you open a new query tool or data view it should never default to query history.
@simon-kempster @InceptusSolutions This is fixed with https://github.com/pgadmin-org/pgadmin4/issues/8623. Are you using v9.2?
Can you share logs from View -> Toggle Dev tools -> Console?
This?
VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM4 sandbox_bundle:2
This? VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.
For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. warnAboutInsecureCSP @ VM4 sandbox_bundle:2
This is the log that I get after trying to open 3 query tool windows:
VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM4 sandbox_bundle:2
vendor.react.js?ver=90200:2 RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
dl @ vendor.react.js?ver=90200:2
vendor.react.js?ver=90200:2 Uncaught RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
vendor.react.js?ver=90200:2 RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
dl @ vendor.react.js?ver=90200:2
vendor.react.js?ver=90200:2 Uncaught RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
vendor.react.js?ver=90200:2 RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
dl @ vendor.react.js?ver=90200:2
vendor.react.js?ver=90200:2 Uncaught RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
vendor.react.js?ver=90200:2 RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
dl @ vendor.react.js?ver=90200:2
vendor.react.js?ver=90200:2 Uncaught RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM4 sandbox_bundle:2
vendor.react.js?ver=90200:2 RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
dl @ vendor.react.js?ver=90200:2
n.callback @ vendor.react.js?ver=90200:2
Va @ vendor.react.js?ver=90200:2
bs @ vendor.react.js?ver=90200:2
ys @ vendor.react.js?ver=90200:2
xs @ vendor.react.js?ver=90200:2
(anonymous) @ vendor.react.js?ver=90200:2
wc @ vendor.react.js?ver=90200:2
oc @ vendor.react.js?ver=90200:2
O @ vendor.others.js?ver=90200:97
C @ vendor.others.js?ver=90200:97
vendor.react.js?ver=90200:2 Uncaught RangeError: Incorrect locale information provided
at Date.toLocaleDateString ()
at A (sqleditor.js?ver=90200:1:1314554)
at I.isDaysBefore (sqleditor.js?ver=90200:1:1314942)
at I.getDatePrefix (sqleditor.js?ver=90200:1:1315034)
at I.getGroupHeader (sqleditor.js?ver=90200:1:1315669)
at sqleditor.js?ver=90200:1:1315798
at Array.map ()
at I.getGroups (sqleditor.js?ver=90200:1:1315773)
at sqleditor.js?ver=90200:1:1310243
at Object.$i [as useMemo] (vendor.react.js?ver=90200:2:274873)
A @ sqleditor.js?ver=90200:1
isDaysBefore @ sqleditor.js?ver=90200:1
getDatePrefix @ sqleditor.js?ver=90200:1
getGroupHeader @ sqleditor.js?ver=90200:1
(anonymous) @ sqleditor.js?ver=90200:1
getGroups @ sqleditor.js?ver=90200:1
(anonymous) @ sqleditor.js?ver=90200:1
$i @ vendor.react.js?ver=90200:2
(anonymous) @ vendor.react.js?ver=90200:2
t.QueryHistory @ sqleditor.js?ver=90200:1
gi @ vendor.react.js?ver=90200:2
Rl @ vendor.react.js?ver=90200:2
ks @ vendor.react.js?ver=90200:2
yc @ vendor.react.js?ver=90200:2
vc @ vendor.react.js?ver=90200:2
gc @ vendor.react.js?ver=90200:2
ac @ vendor.react.js?ver=90200:2
oc @ vendor.react.js?ver=90200:2
O @ vendor.others.js?ver=90200:97
C @ vendor.others.js?ver=90200:97
I just tried the upgrade scenario from v9.1 to v9.2 on Windows 11 but was unable to reproduce the issue. Regarding opening the Query History every time, pgAdmin remembers the last open tab (I need to confirm). Please try running some queries from the Query Editor and Launching the new Query Tool.
@InceptusSolutions
Download the attached zip, extract and copy the __init__.py file to paste it in <pgAdmin install dir>/web/pgadmin/browser directory. Restart pgAdmin.
browser-init.zip
Found an easier way.
SHIFT + ALQ + Q
and immediately start typing like a maniac and the query tab of the query tool you just opened will retain the focus.
Just don't try to look at your query history again.