Bug report #14037
frequent crash when editing data in relation forms (standard relation form-widget, generated by qgis)
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||win||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||22050|
When I edit data in in the subform of the standard generated form, qgis often crashes.
A jpg that shows a form in edit mode with generated crash and the layer properties of the layer are attached.
#3 Updated by Gerhard Spieles almost 6 years ago
- File relation_and_emdeded_form_212_crashqgis.jpg added
- File projectproerities_relations.jpg added
- File emeded_form_relationreferenz.jpg added
In QGIS 2.12.2, crash occurs also (see attached jpg). In 2.12.2 the data in embeded forms are not schown and when you only activate the edit mode in subform, without taking any changes, QGIS ask to save and write a NULL Value in the relation field.
I have tested this behaviour and it seems, that crash and QGIS-asking to save for not taken changes only occurs, when relationreferences with embeded forms are activated. Screenshots of the embeded forms properities and relationdefinitions are attached.
For normal forms with realtion and no emeded forms in subform via relationreference, QGIS works fine.
#7 Updated by Gerhard Spieles almost 6 years ago
- File vg_flaechenmanagement.zip added
I have tested with lates master. The crash occurs, when in layer "pflegemassnahmen", properities, fields, in field2 in the relation reference widget is buit with an expression (in my case : nr || ', Adat: ' || "auftr_dat" || ', Fa: ' || "firma"). If there ist only the field 'nr' choosen, then it seems to work without crash.
Another strange behaviour since 2.12: when you only activate the edit mode in subform, without taking any changes, QGIS ask for saving changes, when you press edit button again.