[Qgis-developer] crash calling OpenFeatureForm from python

Matthias Kuhn matthias at opengis.ch
Mon Nov 16 12:01:51 PST 2015


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
> 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

-- 
Matthias Kuhn
OPENGIS.ch - https://www.opengis.ch
Spatial • (Q)GIS • PostGIS • Open Source


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151116/1097da8b/attachment.sig>


More information about the Qgis-developer mailing list