Hi,
I also noticed a crash with a python code for a feature form.
Once I deleted the pyc file, it went well.
I supposed this was due to upgrading the QGIS version.
Is this expected behavior due to different libs?
Thanks,
Denis
On 11/16/2015 09:01 PM, Matthias Kuhn wrote:
Hi Régis,
The same issue was previously seen when using global variables in the
python logic attached to the form. Global variables are global, so
there's only one of them and when you open two forms they interfere.
Best,
Matthias
On 11/16/2015 12:15 PM, Régis Haubourg wrote:
Hi,
we have a sytematic crash with QGIS here (all tested versions).
We open custom UI forms with python associated so that user do not have to
manually enable and close editing on the layers (form with qgis relation
widget on another layer).
Crash occurs when opening simultaneously twos forms fo the same feature.
Saving any edit crashes.
Using native form opening action from identify window does not crash.
We saw references [1] [2] and qgis API warning about OpenFeatureForm and
preloadForm workaround [3]. Please find python scripts associated to layer
here [4]
We couldn't have this workaround change anything. Especially, I have no clue
that preloadForm(myuifile.ui) works well. When loading a wring file path, I
have no error.
Any idea?
Cheers
Régis
[1]
http://gis.stackexchange.com/questions/168448/why-does-openfeatureform-crash-qgis
[2]
http://forum.qt.io/topic/26562/crash-calling-c-method-using-quiloader-from-pyqt4
[3]
http://qgis.org/api/classQgisInterface.html#a11b90f38afd09ac5e9f363933ee4a509
[4]
https://drive.google.com/file/d/0BzatQbprJ-hjd2JzUE9nLS1yQWs/view?usp=sharing
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/crash-calling-OpenFeatureForm-from-python-tp5236589.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
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