-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Align dash pattern to line length performance issues #41994
Comments
Can you share the style.xml definition of this symbol please? |
There's no attachment there... |
Trying again. As a zip file. |
I'd like to add my findings. Using a data defined override I've experienced the same or similar issue. The line dash pattern comes from an data defined override and if null values or values like "0;0" are present, memory and CPU usage rises until QGis crashes. <style type="text/css"> p, li { white-space: pre-wrap; } </style>
|
The original issue was fixed by #45233 -- it was caused by the symbol sizes in meters at scale. |
a dash pattern which is all 0 lengths This is rendered as no line, so we can skip out early Refs qgis#41994
a dash pattern which is all 0 lengths This is rendered as no line, so we can skip out early Refs #41994
a dash pattern which is all 0 lengths This is rendered as no line, so we can skip out early Refs #41994
a dash pattern which is all 0 lengths This is rendered as no line, so we can skip out early Refs #41994
Turning on the option for Align dash pattern to line length results in major performance issues in navigation within the layer style manager.
How to Reproduce
New user profile
create scratch layer
draw a line
in the layer styling, add a second simple line, slightly wider than the first.
make this one a dashed line. Align the dash patter to line length.
Canvas refreshes are unaffected, but navigation in the layer styling panel severely affected. Up to 5 seconds to make changes and refresh screens in the style manager.
Including Exception Bad Allocation error.
QGIS and OS versions
QGIS version
3.18.0-Zürich
QGIS code revision
bdef9fb
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.1.4
Running against GDAL/OGR
3.1.4
Compiled against GEOS
3.8.1-CAPI-1.13.3
Running against GEOS
3.8.1-CAPI-1.13.3
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.3.2
Running against PROJ
Rel. 6.3.2, May 1st, 2020
OS Version
Windows 10 (10.0)
Active python plugins
AnotherDXF2Shape;
pointsamplingtool;
profiletool;
quick_map_services;
db_manager;
MetaSearch;
processing
Additional context
The text was updated successfully, but these errors were encountered: