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

if you remove a layer from map canvas without saving it QGIS crashes #3

Open
Anafi opened this issue Jun 15, 2017 · 5 comments
Open
Labels

Comments

@Anafi
Copy link
Contributor

Anafi commented Jun 15, 2017

No description provided.

@Anafi Anafi added the bug label Jun 15, 2017
@Anafi Anafi added this to the SSS11 workshop milestone Jun 15, 2017
@jorgegil
Copy link
Collaborator

Indeed this happens only if the tool dockwidget is closed. Must be a signal left connected.

@Morri1234
Copy link
Contributor

It mostly happens when you add features after creating the required layer and remove the layer without committing changes.

@jorgegil
Copy link
Collaborator

Ok, it also happens in those circumstances. Removing an editable layer with unsaved commits.

I'll look into it as part of the restructuring.

@jorgegil
Copy link
Collaborator

I've not been able to capture this event with the remote debugger. QGIS crashes before the process goes to the functions called by the remove layer signal.
We'll leave this for now, knowing the problem is there, and letting users know as well.

@jorgegil
Copy link
Collaborator

jorgegil commented Jun 29, 2017

To be more specific on when it happens:

  1. the layer has new features added
  2. the user removes the layer (without saving)
  3. the user chooses to discard the changes
  4. QGIS crashes

Otherwise it just gets rid of the layer. It works if the unsaved changes are attributes or modified vertices, or if the user chooses to save the changes when asked by QGIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants