-
Notifications
You must be signed in to change notification settings - Fork 149
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
export crashes QGIS #32
Comments
removed wfs/wms layers and still crashes |
update preview function also crashes qgis. |
Do you have the error message? |
as you can see in the vid: no error message given! |
Nothing in the Python console? Next step - does the project export in qgis2leaf and/or qgis-ol3? |
Confirmed on Win7. Going to try to narrow it down to see if specific layers are the problem. |
EDIT: [It's not!!!] maybe my attribute tables with blanks in the names? |
From the vectors, it's the layer places_few_1_EPSG3857 - the others preview fine in OL3. |
unchecked this one. still no export created with leaflet export option. worked fine with openlayers |
Rasters not appearing in preview, but not crashing QGIS. |
So is the issue with that vector layer the CRS, or is there something else different about it? |
Leaflet export of the 3857 layer gives me an error:
|
Leaflet export of the single raster layer gives this error:
|
WMS layer works |
Ignore the "Algorithm not found" error - I had disabled Processing. I want to see if the latest commit has had an effect on this issue. |
No, I don't think the latest commit has helped this issue |
So do we think this issue is actually two issues, both relating to layers in other projections:
Are both of these correct? And does this issue have any other component issues not covered by these two? |
I think the Leaflet behaviour is because of the icon_exp field, but I'm not sure. |
Confirmed - hopefully fixed Leaflet issue in master now. |
QGIS crash on OL export/preview also occurs in qgis-ol3 - cause still unknown |
Now am confused. Try opening that layer on its own, not the project. That works. Is that because there is no project projection? |
@riccardoklinger Can you test the Leaflet export - is that problem in this issue fixed? In other words, is it just the QGIS crash on OL export which remains? |
Hi Tom, I was in a hurry: here my test with latest master: Geolicious GbR Riccardo Klinger mobil: 0176 63437298 Geolicious GbR Gesellschafter: Sitz der Gesellschaft: Berlin On Mon, May 11, 2015 at 5:56 PM, Tom Chadwin notifications@github.com
|
here my test with latest master: no style was applied under leaflet export and strange attribute names sorry, but I am in a hurry and just wanted to respond Geolicious GbR Riccardo Klinger mobil: 0176 63437298 Geolicious GbR Gesellschafter: Sitz der Gesellschaft: Berlin On Mon, May 11, 2015 at 6:41 PM, Riccardo Klinger <
|
I have to separate this out into different issues. I also cannot see enough detail in your vid - Youtube blurs out the text for me. So you have the following issues:
Thanks for the contribution when you have no time - I appreciate it - I just need to narrow it all down to specifics. |
Ah, no - you opened the raster problem as a separate issue #33, so let's keep that one to that issue. |
I think one needs to implement the check for "correct" attribute names like OL export crashes whole QGIS with such attributes, leaflet only show a video should have better quality in a few minutes. Geolicious GbR Riccardo Klinger mobil: 0176 63437298 Geolicious GbR Gesellschafter: Sitz der Gesellschaft: Berlin On Mon, May 11, 2015 at 7:43 PM, Tom Chadwin notifications@github.com
|
If you are confident that it is the unusual characters which causes the crash, that is great news - as you say, we can simply port over the qgis2leaf code to check for that. However, are you sure that is what causes the QGIS crash? If you only have that one layer open in QGIS, in a web-friendly projection, and export using the plugin, do you still get the error? My impression was that the crash was perhaps being caused by something to do with projections, and not by the special characters. |
just created a layer with UTM projection and proper attribute names. wrked Geolicious GbR Riccardo Klinger mobil: 0176 63437298 Geolicious GbR Gesellschafter: Sitz der Gesellschaft: Berlin On Mon, May 11, 2015 at 7:51 PM, Tom Chadwin notifications@github.com
|
OK, so what about:
Which one crashes QGIS with OL3 preview/export? |
I raised the lack of Leaflet styling in #45, and have now fixed it in master |
@riccardoklinger Can you upload the SHP whose name ends in 33, with the far-eastern field names and values? It's not in the ZIP you uploaded before. |
I am really struggling to understand the QGIS crash issue. If I OL preview/export the whole project uploaded above by @riccardoklinger, I get the crash. If I deselect all the layers apart from places_few_1_EPSG3857, I get the crash. If I restart QGIS to clear any project settings, and load places_few_1_EPSG3857 individually as a layer, it exports fine, even if I change the canvas's projection. So, I still don't know what about that layer makes QGIS crash. Has anyone experienced a QGIS crash with any other layer, or with that layer not in that project? |
Is this the same issue? https://github.com/volaya/qgis-ol3/issues/29 If so, I wonder what might be "wrong" with that layer? @boesiii, what was wrong with your layer which crashed qgis-ol3? |
There was something wrong with my geometry. I did a "Repair Geometry" using ArcGIS and it was fixed. |
I was looking at your issue. I downloaded your test data and experienced the same problem exporting to OL3 using Windows 7 64-bit. I think it might have something to do with the symbology of the layer you mentioned above. If you remove the symbology and recreate it, the export works fine. |
I wonder what specifically it is. I wondered whether it was the top style category with the blank value and legend, but removing this does not seem to stop the crash. Can you find any change to the style smaller than totally removing it which gets rid of the crash? I haven't yet. |
@boesiii Confirmed:
This takes you back to how the layer was styled when you load it. However, OL3 preview/export now works - no QGIS crash. I am therefore tempted to explain this as bad data, and close this issue, until we can determine precisely what about that layer caused it. We can always reopen this issue if necessary. Does anyone disagree (@riccardoklinger)? |
I think I have tracked down the issue. I first saved the style of the layer, then created a new qgis file, added problem shapefile, load problem style file, saved, closed. Created a new qgis file, added problem shapefile, styled layer without style file, saved, closed. I then compared both qgis files in notepad ++ and found that the "non-working" file had the following at line 211:
where as the "working" file had the following:
The "working" file also had the following additional lines at line 244:
If you revised the "non-working" file to include the changes from above then it does not cause the crash. |
Really nice work. So the style has some incorrectly escaped quotes? I wonder how on earth that happened. Final check: is there a difference in the incorrect style when exported, compared to the correct one? In other words, rather than comparing the whole .qgs, can you compare the exported style files? Regardless, I think we can call this bad data, and close this issue. Many thanks, @boesiii - I'm extremely grateful to you for tracking this one down. |
Yes the QML files (style) contain the bad text. |
okay, tried qgis2web first time.
used current master.
with this test project: http://www.digital-geography.com/wp-content/uploads/2015/04/test_data.zip
project contains local layers as well as wms and wfs servers.
crashed qgis after pressing on ol-export
Ubuntu 14.04 LTS 64 bit, qgis 2.8.1
video here:
https://www.youtube.com/watch?v=l43Yf4hJ-Ns
The text was updated successfully, but these errors were encountered: