Bug report #11015
Style manager crashes when renaming symbol to existing name
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Symbology | ||
Affected QGIS version: | 2.6.0 | Regression?: | No |
Operating System: | Windows x64 | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 19355 |
Description
When trying to rename a symbol in the QGIS symbol manager to a name which already exists, QGIS crashes.
This can easily happen when working in a symbol group and the existing symbol with the same name is in another group or when the symbols are of a different type.
If a new symbol is created in the symbol manager and the name which is entered already exists, a meaningful error message (name already exits, replace?) is correctly shown.
Minidump is attached.
Associated revisions
style manager: avoid name duplication (fixes #11015)
History
#1 Updated by Giovanni Manghi about 10 years ago
- Resolution set to fixed/implemented
- Status changed from Open to Closed
no more crash on qgis master.
#2 Updated by Jochen Huber about 10 years ago
- Status changed from Closed to Reopened
- File qgis-20141120-110643-5788-6444-exported.zip added
Hi, thanks for working on this!
Just tried opening the style manager in 2.6.0-1 stable (OSGeo4W, 64bit, Win7 SP1). When trying to rename a style to a name which already exists, no error is shown and the previous style seems to be replaced by the new one (here an overwrite warning would be helpful). After closing the style manager, I tried to reopen the style manager, which led to a crash (minidump).
When saving a style in the layer properties dialog and using an existing name, a warning message is shown. After accepting to overwrite the existing style, QGIS crashes when opening the style manager. So something still seems to become corrupt when overwriting styles.
#3 Updated by Giovanni Manghi about 10 years ago
- Affected QGIS version changed from 2.4.0 to 2.6.0
- Resolution deleted (
fixed/implemented) - Priority changed from Normal to Severe/Regression
confirmed, and in previous qgis releases did not caused the crash.
#4 Updated by Jürgen Fischer almost 10 years ago
- Status changed from Reopened to Closed
Fixed in changeset ce95c59b2618648bead268de8823179395a2292a.