-
-
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
crash on 2.2 and master when loading a vector style with missing SVG #18457
Comments
Author Name: Giovanni Manghi (@gioman) dataset and style attached
|
Author Name: aperi2007 - (aperi2007 -) is this the same of #18610? |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: aperi2007 - (aperi2007 -) I do some check. It do crash surely if I set the unavailable svg as a fill pattern and set to map-units. It start working, but after 2-3 zoom and pan the qgis crash and need to kill the zombie process to remove. |
Author Name: Radim Blazek (@blazek) Fixed in changeset "fc8f15a4e72aae997bd7b5f888ab4f418277f1ae".
|
Author Name: Radim Blazek (@blazek) The problem was that SVG cache was searched comparing file name to full path returned by QgsSymbolLayerV2Utils::symbolNameToPath(). For non existing file the symbolNameToPath() returns empty string and thus cached symbol was not found and a new entry was always inserted. I believe, that in theory it should work even without the fix. I am suspicious that it could be a bug in QMultiHash::insert() (i.e. QHash::insertMulti) not suitable for too many multi entries. It usually crashed when a key had few hundred of entries (300-400). |
Author Name: Radim Blazek (@blazek) Ticket fixed with funding from Regione Toscana-SITA (CIG:ZB10C90E5A).
|
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 9959
Affected QGIS version: master
Redmine category:symbology
Assignee: Radim Blazek
Did not crash on 2.0.1
Can provide sample if necessary.
Related issue(s): #18610 (relates)
Redmine related issue(s): 10153
The text was updated successfully, but these errors were encountered: