I think I found the cause of the issue when trying to remove a layer that
was already removed.
To reproduce in Python console:
# add raster
l1 = qgis.utils.iface.addRasterLayer("C:\Users\a\
Desktop\LC81900312013105LGN01_B2.tif", "raster1")remove manually the raster # try to remove the raster QgsMapLayerRegistry.instance().removeMapLayer(l1.id()) QGIS crashes Cheers, Luca 2016-09-03 11:57 GMT+02:00 Luca Congedo <[email protected]>: > Hi Matthias, > > yes, it happens in Windows when removing the group manually (it seems that > Linux is not affected). > I had a button in the plugin for removing the temporary rasters which I > have now disabled in a plugin update. > > Luca > > > 2016-09-03 11:53 GMT+02:00 Matthias Kuhn <[email protected]>: > >> Hi Luca, >> >> does it also happen when you do the same process manually? >> >> Matthias >> >> On 09/03/2016 11:43 AM, Luca Congedo wrote: >> > Hello everybody, >> > >> > removing a group (created by the Semi-Automatic Classification Plugin) >> > containing rasters from QGIS layers causes a crash. >> > To reproduce, if you create 2 or more classification previews with the >> > Semi-Automatic Classification Plugin and then remove the group >> > 'Class_temp_group' from the layers. >> > Is there anything I can do at the plugin level, or should I open a >> ticket? >> > >> > Thank you, >> > Luca >> > >> > >> > _______________________________________________ >> > Qgis-developer mailing list >> > [email protected] >> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer >> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer >> > >> _______________________________________________ >> Qgis-developer mailing list >> [email protected] >> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer > > >
_______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
