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

Crash exporting dxf using "Symbol layer symbology" #46245

Closed
2 tasks done
dario955i opened this issue Nov 27, 2021 · 9 comments
Closed
2 tasks done

Crash exporting dxf using "Symbol layer symbology" #46245

dario955i opened this issue Nov 27, 2021 · 9 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption DXF/DWG Relating to DXF or DWG importing/exporting

Comments

@dario955i
Copy link

dario955i commented Nov 27, 2021

Crash.zip

What is the bug or the crash?

I'm trying exporting dxf. If I do with a small vieport size (200mx200m) everything goes well. If I try with a bigger size (2km by 2km) qgis crashes and the dxf has been created is corrupt and you cannot open.

I see that if I export a big data Qgis can have some problem, but alert on exporting, like a warning, would be better, in order to reduce the dimension. It ould be interesting unsterstand if it is issue of RAM, processor, or whatever.

Please find attached source file with data.

Steps to reproduce the issue

  1. File
  2. Export as dxf
  3. crashes

Versions

Versione di QGIS
3.16.14-Hannover
Revisione codice QGIS
4279198
Compilato con Qt
5.15.2
Esecuzione con Qt
5.15.2
Compilato con GDAL/OGR
3.4.0
Esecuzione con GDAL/OGR
3.4.0
Compilato con GEOS
3.10.0-CAPI-1.16.0
Esecuzione con GEOS
3.10.0-CAPI-1.16.0
Compilato su SQLite
3.35.2
In esecuzione su SQLite
3.35.2
Versione client PostgreSQL
13.0
Versione SpatiaLite
5.0.1
Versione QWT
6.1.3
Versione QScintilla2
2.11.5
Compilato con PROJ
8.2.0
Esecuzione con PROJ
Rel. 8.2.0, November 1st, 2021
Versione SO
Windows 10 Version 2009
Attiva python plugin
autoSaver;
BivariateLegend;
changeDataSource;
clusterpoints;
concavehull;
DataPlotly;
EasyCustomLabeling;
FeatureGridCreator;
FreehandRasterGeoreferencer;
GeoCoding;
GroupStats;
HCMGIS;
isochrones;
LAStools;
layertilesmapcanvas;
localmaxfilter;
lockzoom;
mmqgis;
MultipleLayerSelection;
ntv2_transformations;
numericalDigitize;
OnlineRoutingMapper;
PointConnector;
processing_wbt;
qgis-maptiler-plugin;
Qgis2threejs;
QNEAT3;
QPackage;
qProf;
quick_map_services;
realcentroid;
shapefile_encoding_fixer;
shapetools;
spatial_query_with_values;
spline;
SpreadsheetLayers;
db_manager;
MetaSearch;
processing

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@dario955i dario955i added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 27, 2021
@gioman gioman added the Feedback Waiting on the submitter for answers label Nov 27, 2021
@gioman
Copy link
Contributor

gioman commented Nov 27, 2021

Export as dxf

@dario955i this is with project > export > export project as DXF or with another method?

Does it happens always, regardless the project and data?

@gioman gioman added the DXF/DWG Relating to DXF or DWG importing/exporting label Nov 27, 2021
@dario955i
Copy link
Author

dario955i commented Nov 27, 2021 via email

@gioman gioman changed the title Crash exporting dxf depending the size of the drawing Crash exporting dxf using "Symbol layer symbology" Nov 27, 2021
@gioman gioman added Crash/Data Corruption and removed Feedback Waiting on the submitter for answers labels Nov 27, 2021
@gioman
Copy link
Contributor

gioman commented Nov 27, 2021

In any case, in the previous mode my Qgis crashes.

@dario955i with any project/data or just a specific one? Can you attach a sample project + data that shows the issue?

@dario955i
Copy link
Author

It crashes with this big file. If I try with small portion or other small file it doesn't. I can check layer by layer if there is one in particular causing the crash.

@gioman
Copy link
Contributor

gioman commented Nov 28, 2021

. I can check layer by layer if there is one in particular causing the crash.

@dario955i thanks, then if you can attach it here.

@nyalldawson nyalldawson added the Feedback Waiting on the submitter for answers label Nov 28, 2021
@dario955i
Copy link
Author

dario955i commented Nov 30, 2021 via email

@gioman
Copy link
Contributor

gioman commented Nov 30, 2021

I guess my reply has not arrived to anybody because it was not “reply to all”.

@dario955i you should reply using Github web interface, not by replying by email to notifications.

I have detected one of the layer causing crash. As we are talking about data of public administration, is there any chance to send to only one recipient?

If you cannot attach the data here you can send it to me giovanni dot manghi at gmail dot com

@gioman
Copy link
Contributor

gioman commented Dec 7, 2021

I replicated the crash with a project/data that was sent to me privately, waiting to see if we can attach them here.

@gioman gioman removed the Feedback Waiting on the submitter for answers label Dec 7, 2021
@dario955i
Copy link
Author

Please see attached in the main comment "Crash.zip". thanks

rouault added a commit that referenced this issue Feb 11, 2022
DXF export: fix crash on some MultiPolygon geometries when offset != 0 (fixes #46245)
m-kuhn added a commit that referenced this issue Feb 12, 2022
…ports

[Backport queued_ltr_backports] DXF export: fix crash on some MultiPolygon geometries when offset != 0 (fixes #46245)
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 DXF/DWG Relating to DXF or DWG importing/exporting
Projects
None yet
Development

No branches or pull requests

3 participants