GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Query tab goes blank when viewing empty geometry · Issue #7655 · pgadmin-org/pgadmin4

Query tab goes blank when viewing empty geometry #7655

New issue
Copy link
New issue
Copy link
Closed
Closed
Query tab goes blank when viewing empty geometry#7655
Copy link
Assignees
RohitBhati8269
Labels
Bug
Milestone
8.13

Description

@jaygordon
jaygordon
opened on Jul 1, 2024
Issue body actions

Describe the bug

If I execute a PostGIS query that returns geometry values, then click the "View all geometries in the column" button in the geometry column's header:

  • If all selected geometries are non-empty, the Geometry Viewer will correctly open and map the geometries.
  • But if one or more of the selected geometries are empty, the contents of that Query Tool tab go blank. Clicking anywhere in that blank tab has no effect, and the tab can't be closed.

To Reproduce

Steps to reproduce the behavior:

  1. Open a query tab.
  2. Load the PostGIS extension if it isn't already loaded: CREATE EXTENSION postgis;
  3. Execute the following query to return two rows, one with an empty geometry and the other with a non-empty one.
WITH intersections AS (
    SELECT 'intersection of two different points' lbl,
    ST_Intersection('POINT(0 0)', 'POINT(1 1)') geom
  UNION ALL
    SELECT 'intersection of two identical points' lbl,
    ST_Intersection('POINT(2 2)', 'POINT(2 2)') geom
)
SELECT lbl,
    ST_IsEmpty(geom), --a result of "true" confirms that the geometry is empty
    ST_SetSrid(geom, 4326) --return the geometry so we can try to map it
FROM intersections;
  1. Select only the row for the non-empty geometry and click the "View all geometries in the column" button (screenshot 1, below). The Geometry Viewer should open and map the point (screenshot 2).
  2. Select the row for the empty geometry (and optionally the non-empty geometry) and click the "View all geometries in the column" button (screenshot 3). The entire tab shoud go blank and become nonresponsive (screenshot 4).

Expected behavior

I would expect the Geometry Viewer to open and for any non-empty geometries to be mapped while any empty geometries would be omitted from the map. If all selected geometries are empty I would expect a blank map, or alternatively, a notification that all selected geometries are empty.

Error message

I don't know if an error message is issued because I can't seet the Messages subtab of the Query tab, as the Query tab is blank and nonresponsive.

Screenshots

  1. Map the non-empty geometry:
    image

  2. Result:
    image

  3. Map empty and non-empty geometries:
    image

  4. Result:
    image

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Version: 10.0.19045
  • Mode: Desktop
  • pgAdmin4 version: 8.9
Reacted by Fredrik Hagfjäll

Activity

Next
  1. jaygordon
    added
    Bug
    on Jul 1, 2024
  2. pravesh-sharma commented on Jul 2, 2024

    @pravesh-sharma
    pravesh-sharma
    on Jul 2, 2024
    Contributor
    More actions

    Hi @jaygordon,

    Can you please share logs as well? You can find logs at File -> Runtime -> View log.

  3. pravesh-sharma
    added this to Not Refinedon Jul 2, 2024
  4. jaygordon commented on Jul 3, 2024

    @jaygordon
    jaygordon
    on Jul 3, 2024
    Author
    More actions

    Thanks, @pravesh-sharma . The log is below. I replaced some values with *** for privacy.

    The last thing logged is the launching of pdAdmin. I Then replicated the bug but nothing is logged when that occurs.

    pgAdmin Runtime Environment
    --------------------------------------------------------
    Python Path: "C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\python\python.exe"
    Runtime Config File: "C:\Users\Jay\AppData\Roaming\pgadmin\runtime_config.json"
    pgAdmin Config File: "C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\web\config.py"
    Webapp Path: "C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\web\pgAdmin4.py"
    pgAdmin Command: "C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\python\python.exe -s C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\web\pgAdmin4.py"
    Environment: 
      - ALLUSERSPROFILE: C:\ProgramData
      - APPDATA: C:\Users\Jay\AppData\Roaming
      - asl.log: Destination=file
      - CAMLIBS: C:\Program Files\darktable\lib\libgphoto2\2.5.30
      - ChocolateyInstall: C:\ProgramData\chocolatey
      - ChocolateyLastPathUpdate: 132825893873287359
      - CHROME_CRASHPAD_PIPE_NAME: \\.\pipe\crashpad_30108_LDOOOQEOJJQCRDYO
      - CHROME_RESTART: NW.js|Whoa! NW.js has crashed. Relaunch now?|LEFT_TO_RIGHT
      - codeartifact_auth_token: ***
      - CommonProgramFiles: C:\Program Files\Common Files
      - CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
      - CommonProgramW6432: C:\Program Files\Common Files
      - COMPUTERNAME: ***
      - ComSpec: C:\Windows\system32\cmd.exe
      - DriverData: C:\Windows\System32\Drivers\DriverData
      - GDAL_DATA: C:\Program Files\PostgreSQL\12\gdal-data
      - HOMEDRIVE: C:
      - HOMEPATH: \Users\Jay
      - IGCCSVC_DB: ***
      - IOLIBS: C:\Program Files\darktable\lib\libgphoto2_port\0.12.1
      - JAVA_HOME: C:\Program Files\Java\jdk-11.0.20+8
      - LOCALAPPDATA: C:\Users\Jay\AppData\Local
      - LOGONSERVER: \\***
      - NUMBER_OF_PROCESSORS: 8
      - OneDrive: C:\Users\Jay\OneDrive
      - OS: Windows_NT
      - Path: C:\Users\Jay\AppData\Local\Programs\pgAdmin 4\runtime;C:\Python312\Scripts\;C:\Python312\;C:\Python311\Scripts\;C:\Python311\;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Amazon\***\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Java\jdk-11.0.20+8\bin;C:\Users\Jay\AppData\Roaming\npm;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Ruby30-x64\bin;C:\Users\Jay\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-11.0.20+8\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.9.3\bin;C:\Users\Jay\AppData\Roaming\npm
      - PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
      - PGADMIN_INT_KEY: ***
      - PGADMIN_INT_PORT: 56656
      - PGADMIN_SERVER_MODE: OFF
      - POSTGIS_ENABLE_OUTDB_RASTERS: 1
      - POSTGIS_GDAL_ENABLED_DRIVERS: GTiff PNG JPEG GIF XYZ DTED USGSDEM AAIGrid
      - PROCESSOR_ARCHITECTURE: AMD64
      - PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
      - PROCESSOR_LEVEL: 6
      - PROCESSOR_REVISION: 8c01
      - ProgramData: C:\ProgramData
      - ProgramFiles: C:\Program Files
      - ProgramFiles(x86): C:\Program Files (x86)
      - ProgramW6432: C:\Program Files
      - PROJ_LIB: C:\Program Files\PostgreSQL\12\share\contrib\postgis-3.2\proj
      - PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
      - PUBLIC: C:\Users\Public
      - SESSIONNAME: Console
      - SystemDrive: C:
      - SystemRoot: C:\Windows
      - TEMP: C:\Users\Jay\AppData\Local\Temp
      - TMP: C:\Users\Jay\AppData\Local\Temp
      - USERDOMAIN: ***
      - USERDOMAIN_ROAMINGPROFILE: ***
      - USERNAME: Jay
      - USERPROFILE: C:\Users\Jay
      - windir: C:\Windows
      - ZES_ENABLE_SYSMAN: 1
    --------------------------------------------------------
    
    Total spawn time to start the pgAdmin4 server: 0.014 Sec
    2024-07-03 09:44:56,127: WARNING	werkzeug:	Werkzeug appears to be used in a production deployment. Consider switching to a production web server instead.
    
     * Serving Flask app 'pgadmin'
     * Debug mode: off
    
    ------------------------------------------
    Total time taken to ping pgAdmin4 server: 5.048 Sec
    ------------------------------------------
    Total launch time of pgAdmin4: 6.168 Sec
    ------------------------------------------
    Application Server URL: http://127.0.0.1:56656/?key=***
    
  5. yogeshmahajan-1903 commented on Jul 12, 2024

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Jul 12, 2024
    Contributor
    More actions

    Here is the error -
    Screenshot 2024-07-12 at 4 52 29 PM

    Reacted by Jay
  6. yogeshmahajan-1903
    added this to Ready for Sprint Bugs and removed this from Not Refinedon Jul 12, 2024
  7. akshay-joshi
    added
    EDB Sprint 179
    on Oct 9, 2024
  8. akshay-joshi
    added this to Current Sprint (213) and removed this from Ready for Sprint Bugson Oct 9, 2024
  9. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Oct 9, 2024
  10. pravesh-sharma
    self-assigned this
    on Oct 14, 2024
  11. pravesh-sharma
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Oct 14, 2024
  12. pravesh-sharma
    added a commit that references this issue on Oct 16, 2024

    Fixed an issue where the query tool was crashing when an empty geomet…

    102f03c
  13. akshay-joshi
    added a commit that references this issue on Oct 17, 2024

    Fixed an issue where the query tool was crashing when an empty geomet…

    5d008f0
  14. 2 remaining items

  15. RohitBhati8269
    self-assigned this
    on Oct 17, 2024
  16. RohitBhati8269 commented on Oct 18, 2024

    @RohitBhati8269
    RohitBhati8269
    on Oct 18, 2024
    Contributor
    More actions

    @pravesh-sharma please check the below issues:-

    1. You fixed the blank screen issue when user select both rows but when user only select single row whose value of isempty is true then it again goes on blank screen.
    2. when we able to see the geo view -> click on blue dot to see info of that -> opens a popup -> but there should be a value(true/false) of isempy field, attached an image:-
    Screenshot 2024-10-17 at 11 04 41 PM
    1. I have restore the countries.sql by which i got the data of countries and capitals so i checked and got same issue there:-
      a. When we select all rows of countries --> select geo view --> it goes on same blank screen issue attached an image of console errors:-
    Screenshot 2024-10-17 at 11 13 36 PM
  17. RohitBhati8269
    moved this from In Testing to 🏗 In Progress in Current Sprint (213)on Oct 18, 2024
  18. RohitBhati8269
    assigned
    pravesh-sharma
    and unassigned
    RohitBhati8269
    on Oct 18, 2024
  19. pravesh-sharma
    added 2 commits that reference this issue on Oct 18, 2024

    Resolved issues reported during testing of pgadmin-org#7655.

    46fdbd9

    Resolved issues reported during testing of pgadmin-org#7655.

    b1dab6e
  20. akshay-joshi
    added a commit that references this issue on Oct 18, 2024

    Resolved issues reported during testing of #7655.

    4d7fc8b
  21. pravesh-sharma
    assigned
    RohitBhati8269
    and unassigned
    pravesh-sharma
    on Oct 18, 2024
  22. pravesh-sharma
    moved this from 🏗 In Progress to In Testing in Current Sprint (213)on Oct 18, 2024
  23. RohitBhati8269 commented on Oct 18, 2024

    @RohitBhati8269
    RohitBhati8269
    on Oct 18, 2024
    Contributor
    More actions

    The issue is fixed and verified on the latest snapshot build.

    Env:
    OS - macOS 14.1 (Sonoma)
    Mode - Desktop

  24. RohitBhati8269
    closed this as completedon Oct 18, 2024
  25. RohitBhati8269
    moved this from In Testing to ✅ Done in Current Sprint (213)on Oct 18, 2024
  26. akshay-joshi
    removed this from Current Sprint (213)on Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @RohitBhati8269
    RohitBhati8269

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 8.13

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.