You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if name == "main":
unittest.main()
################################################
I get the following result:
##########
Called!
.
Ran 1 test in 0.119s
OK
Segmentation fault
###########
If, on the contrary, I comment out the line where the connection is set or if I use other signals such as layerRemoved or layersAdded instead of layersRemoved, I get:
###########
.
Ran 1 test in 0.111s
OK
###########
I'm using QGIS 2.14.2 on a GNU/Linux machine.
The text was updated successfully, but these errors were encountered:
The crash is due to QgsEditorWidgetRegistry::mapLayerWillBeRemoved when the cast is done QgsVectorLayer* vl = qobject_cast<QgsVectorLayer*>( mapLayer ); QGIS crashed.
fixed_version_id was changed from Future Release - Lower Priority to Version 2.14
priority_id was changed from Normal to Severe/Regression
category_id was changed from Python plugins to Vectors
Fixed in changeset "4b0df5bc5b71523ad35db050c57ca3c04c2b6d1e".
status_id was changed from Open to Closed
qgib
added
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Vectors
Related to general vector layer handling (not specific data formats)
labels
May 25, 2019
Author Name: gcarrillo - (gcarrillo -)
Original Redmine Issue: 15088
Affected QGIS version: 2.14.2
Redmine category:vectors
There seems to be an issue connecting the SIGNAL layersRemoved from QgsMapLayerRegistry.
For example, if I save this script to a file, and run it from the Linux terminal:
################################################
import unittest
from qgis.core import QgsApplication, QgsMapLayerRegistry
class SIGNALTest( unittest.TestCase ):
if name == "main":
unittest.main()
################################################
I get the following result:
##########
Called!
.
Ran 1 test in 0.119s
OK
Segmentation fault
###########
If, on the contrary, I comment out the line where the connection is set or if I use other signals such as layerRemoved or layersAdded instead of layersRemoved, I get:
###########
.
Ran 1 test in 0.111s
OK
###########
I'm using QGIS 2.14.2 on a GNU/Linux machine.
The text was updated successfully, but these errors were encountered: