Bug report #15590
m:n relationships in QGIS cause mini dump and crash
|Affected QGIS version:||2.16.2||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||23514|
I experience a crash whenever I use the qgisRelationWidget on a m:n relationship within QGIS. I have 2 parent tables that share a child in SQLite/Spatialite database and 2 relationships defined in the QGIS project. civic_join (Ref layer: jtbl_a, ref field: fk2, Ref'ed layer: civic_points, Ref'ed field: UNIQUE_ID id: civic_join) wo_join (Ref layer: jtbl_a, ref field: fk1, Ref'ed layer: wotbl, Ref'ed field: woid id: wo_join). Using Form Value Relation I have the fk2 referencing the address field in an auto complete so that you can search the address of a civic instead of the pk. For the jtbl_a both fk1 and fk2 fields work together to form a composite pk for the table.
The mini dump file proclaims "The thread tried to read from or write to a virtual address for which it does not have the appropriate access". I can manually edit each table and field from within QGIS as well as build relationships between tables through manually editing from within the attributes tables. Before issuing a bug report I enlisted the assistance of the qgisuser group for possible errors or assistance; I was directed to file a bug report where it seems that this maybe an issue within the relationship handling itself.