[Qgis-developer] QGIS crash removing group containing rasters
Luca Congedo
semiautomatic.blogger at gmail.com
Sat Sep 3 08:09:31 PDT 2016
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 <semiautomatic.blogger at gmail.com>:
> 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 <matthias at opengis.ch>:
>
>> 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
>> > Qgis-developer at lists.osgeo.org
>> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160903/bddc9ee5/attachment.html>
More information about the Qgis-developer
mailing list