Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing WFS in 32bit Windows Install #17640

Closed
qgib opened this issue Nov 1, 2013 · 17 comments
Closed

Crashing WFS in 32bit Windows Install #17640

qgib opened this issue Nov 1, 2013 · 17 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 1, 2013

Author Name: Heikki Vesanto (@HeikkiVesanto)
Original Redmine Issue: 8979
Affected QGIS version: 2.0.1
Redmine category:web_services_clients/wfs
Assignee: Jürgen Fischer


QGIS crashed when identifying or selecting certain features through a WFS connection. This seems to effect the windows 32 bit stand alone and OSGeo4W installs, installed on either a 32 bit or 64 bit computer.

So using the 64 bit install on a 64 bit computer works fine, but using the 32 bit install on a 64 bit or 32 bit computer causes an issue.

Tested on 2.0.1, and master through OSGeo4W.

Replication:
Add in a WFS, for example from the British Geological Survey:
http://ogc.bgs.ac.uk/cgi-bin/BGS_Bedrock_and_Superficial_Geology/wms?

Add in the layer:
UKContShelf BGS 1:1M Seabed Sediments

Open up the attribute table. Select feature number 99 and zoom to it, select any other feature, and re-select feature number 99. At this point my QGIS crashes, with the message "Crash dumped". This is not limited to the BGS WFS connection, however this is an open WFS so should be able to be tested by all.

I have attached a project file, which should open up the WFS and zoom to a feature that causes the crash.

Of note, if all of the features are selected (or a large number) then it does not, also the feature can be selected from the attribute table.

I would be happy to provide further information.

QGIS version:
QGIS version 2.0.1-Dufour QGIS code revision 34139bc
Compiled against Qt 4.7.1 Running against Qt 4.7.1
Compiled against GDAL/OGR 1.9.2 Running against GDAL/OGR 1.9.2
Compiled against GEOS 3.3.8-CAPI-1.7.8 Running against GEOS 3.3.8-CAPI-1.7.8
PostgreSQL Client Version 8.3.10 SpatiaLite Version 4.1.1
QWT Version 5.2.1 PROJ.4 Version 480
QScintilla2 Version 2.6.2 This copy of QGIS writes debugging output


Related issue(s): #17978 (relates)
Redmine related issue(s): 9378


@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2013

Author Name: Giovanni Manghi (@gioman)


I cannot replicate this issue, using both a normal Windows installation and a Virtual Machine.

Have you tested run qgis without loading plugins? Or just tested on another machine?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Hi,

Same crash happens for me but a bit earlier. Load data from WFS, open attribute table, select one, zoom, close attribute table, select a neighbouring feature and crash, no need to select again the first selected feature. Tested with two WFS servers with polygon feature types. QGIS version 2.0.1 on 32-bit Windows Vista. QGIS installed with installer.

@qgib
Copy link
Contributor Author

qgib commented Nov 2, 2013

Author Name: Giovanni Manghi (@gioman)


Jukka Rahkonen wrote:

Hi,

Same crash happens for me but a bit earlier. Load data from WFS, open attribute table, select one, zoom, close attribute table, select a neighbouring feature and crash, no need to select again the first selected feature. Tested with two WFS servers with polygon feature types. QGIS version 2.0.1 on 32-bit Windows Vista. QGIS installed with installer.

On Windows/QGIS 2.0.1 I'm struggling with WFS polygon layers (it usually says that the layer it is not valid), but it seems to work on master. Anyway I cannot replicate the issue. Have you tested run qgis with no plugins (--noplugins)?

@qgib
Copy link
Contributor Author

qgib commented Nov 2, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Sorry, but I do not know how to start QGIS with no plugins on Windows. I suppose I should edit something in the file C:\Program Files\QGIS Dufour\bin\qgis.bat

@@echo off
call "%~dp0\o4w_env.bat"
call "%OSGEO4W_ROOT%"\apps\grass\grass-6.4.3\etc\env.bat
@echo off
path %PATH%;%OSGEO4W_ROOT%\apps\qgis\bin;%OSGEO4W_ROOT%\apps\grass\grass-6.4.3\lib
set QGIS_PREFIX_PATH=%OSGEO4W_ROOT:\=/%/apps/qgis
set GDAL_FILENAME_IS_UTF8=YES
rem Set VSI cache to be used as buffer, see #15688
set VSI_CACHE=TRUE
set VSI_CACHE_SIZE=1000000
start "QGIS" /B "%OSGEO4W_ROOT%"\bin\qgis-bin.exe %*@

@qgib
Copy link
Contributor Author

qgib commented Nov 2, 2013

Author Name: Giovanni Manghi (@gioman)


Jukka Rahkonen wrote:

Sorry, but I do not know how to start QGIS with no plugins on Windows. I suppose I should edit something in the file C:\Program Files\QGIS Dufour\bin\qgis.bat

you can just modify the shortcut in your desktop/start menu. Or just disable/uninstall all plugins and restart qgis.

@qgib
Copy link
Contributor Author

qgib commented Nov 2, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Hi,

The shortcut points to that qgis.bat file I referred as
"C:\Program Files\QGIS Dufour\bin
ircmd.exe" exec hide C:\PROGRA1\QGISDU1\bin\qgis.bat
Anyway, I disabled all the plugins and behaviou is the same. You can see it from a video http://latuviitta.org/documents/QGIS_20_WFS_select_feature_crash.swf

This time I had to do "Select one feature" many times before crash happened, more often the second select is enough.

@qgib
Copy link
Contributor Author

qgib commented Nov 3, 2013

Author Name: Giovanni Manghi (@gioman)


Jukka Rahkonen wrote:

Hi,

The shortcut points to that qgis.bat file I referred as
"C:\Program Files\QGIS Dufour\bin
ircmd.exe" exec hide C:\PROGRA1\QGISDU1\bin\qgis.bat
Anyway, I disabled all the plugins and behaviou is the same. You can see it from a video http://latuviitta.org/documents/QGIS_20_WFS_select_feature_crash.swf

This time I had to do "Select one feature" many times before crash happened, more often the second select is enough.

can you post the url of the server you are using?

@qgib
Copy link
Contributor Author

qgib commented Nov 3, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


http://hip.latuviitta.org/cgi-bin/tinyows

I used the feature type "municipalities". It is my own server and I know from the logs that QGIS does not discuss with WFS when the crash happens. It has done the GetFeature and continues then with cached data.

@qgib
Copy link
Contributor Author

qgib commented Nov 3, 2013

Author Name: Giovanni Manghi (@gioman)


Jukka Rahkonen wrote:

http://hip.latuviitta.org/cgi-bin/tinyows

I used the feature type "municipalities". It is my own server and I know from the logs that QGIS does not discuss with WFS when the crash happens. It has done the GetFeature and continues then with cached data.

confirmed with this server/layer, and does not happen on qgis 1.8


  • fixed_version_id was configured as Future Release - High Priority
  • priority_id was changed from Normal to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Jan 26, 2014

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2014

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from Severe/Regression to High

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2014

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from High to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2014

Author Name: Jürgen Fischer (@jef-n)


  • assigned_to_id was configured as Jürgen Fischer

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2014

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "8d7e61abd2cc0c1e41eeb4b68fe96dc148997d13".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Future Release - High Priority to Version 2.2
  • status_id was changed from Closed to In Progress

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2014

Author Name: Jürgen Fischer (@jef-n)


  • status_id was changed from In Progress to Closed

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2014

Author Name: Heikki Vesanto (@HeikkiVesanto)


I can confirm that in the developer version QGIS code revision: 8f7c879 the issue is no longer present. Thanks, much appreciated.

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Crash/Data Corruption labels May 24, 2019
@qgib qgib added this to the Version 2.2 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant