Bug report #7877

Crash when saving .qml style file for layer

Added by Larry Shaffer over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Symbology
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:16751

Description

  1. Open properties for a shapefile layer (not tested with other types, yet)
  2. Choose to save .qml style file
  3. Crash

Reportedly worked fine on May 16, 2013.

Crash report from Mac OS 10.7.5 attached, though I do not think it is a platform-specific issue.

May be related to commits 34c85c8, a98ffed or 99aaa59

save-to-qml_crash-report.txt Magnifier (10.6 KB) Larry Shaffer, 2013-05-21 12:28 PM


Related issues

Duplicated by QGIS Application - Bug report #7882: QGIS 1.9. 0 Alpha on Windows XP, crash on load qml style Closed 2013-05-22

Associated revisions

Revision b7f1987b
Added by Matthias Kuhn over 11 years ago

[Fix #7877] Crash when saving layer style as qml

History

#1 Updated by Giovanni Manghi over 11 years ago

confirmed on Linux.

#2 Updated by ramon . over 11 years ago

Confirmed Windows (7 - 64bit).

Suspect also causing crashes when loading saved styles as well.

I've dumps from windows if they're helpful for both the save and load case. They're too big to load up here, but I can put them somewhere if they'll help.

#3 Updated by Matthias Kuhn over 11 years ago

  • Status changed from Open to Closed

#4 Updated by Simon Dedman over 11 years ago

  • Status changed from Closed to Reopened

Tentative reopening, not sure if this should be a new bug, but:
When trying to save a style, nothing happens. No crash, but also nothing saved.
When trying to save as 'sld' format, gives error:
"ERROR: failed to create sld file as . Check file permissions and retry."

(am just saving in a documents subfolder in windows 7. layer type is csv points)

#5 Updated by Giovanni Manghi over 11 years ago

  • Resolution set to worksforme
  • Status changed from Reopened to Closed

Simon Dedman wrote:

Tentative reopening, not sure if this should be a new bug, but:
When trying to save a style, nothing happens. No crash, but also nothing saved.
When trying to save as 'sld' format, gives error:
"ERROR: failed to create sld file as . Check file permissions and retry."

(am just saving in a documents subfolder in windows 7. layer type is csv points)

it works fine for CSV layers on QGIS master. Are you using QGIS master? Seems anyway a local (permissions?) issue. Eventually attach a project (with data) to allow us replicate the issue.

#6 Updated by Simon Dedman over 11 years ago

  • Assignee changed from Matthias Kuhn to Giovanni Manghi

Hi Giovanni.
I updated my Win7 copy to latest master this afternoon, checked again, didn't work. All my files are saved in my dropbox folder in My Documents, which isn't a restricted access folder, and I've been saving various other files there today (interpolations, etc., as well as vector styles). On my linux copy (also latest master), which uses all the same files thanks to the dropbox sync, I can save the csv style, both as qml and sld.
Any thoughts why the windows7 build might have this problem when the linux one doesn't?

#7 Updated by Giovanni Manghi over 11 years ago

  • Category changed from Project Loading/Saving to Symbology
  • Crashes QGIS or corrupts data changed from Yes to No
  • Resolution deleted (worksforme)
  • Operating System set to Windows
  • Assignee deleted (Giovanni Manghi)
  • Status changed from Closed to Reopened

Simon Dedman wrote:

Tentative reopening, not sure if this should be a new bug, but:
When trying to save a style, nothing happens. No crash, but also nothing saved.
When trying to save as 'sld' format, gives error:
"ERROR: failed to create sld file as . Check file permissions and retry."

(am just saving in a documents subfolder in windows 7. layer type is csv points)

Confirmed under Windows, at least for CSV layers added with the "add delimited text" tool.

#8 Updated by Giovanni Manghi over 11 years ago

  • Resolution set to fixed
  • Status changed from Reopened to Closed
  • Operating System deleted (Windows)

Confirmed under Windows, at least for CSV layers added with the "add delimited text" tool.

it is anyway a different issue from the originally reported here, and it is also not a regression as it doesn't work also on qgis 1.8. I will file a separate ticket.

Also available in: Atom PDF