Bug report #17870
Auxiliary Storage not saved when project is saved
|Affected QGIS version:||master||Regression?:||Yes|
|Operating System:||Windows 7||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||25765|
I'm using QGIS 2.99.0-267 (05c7132518) via OSGeo4W. When working with layer labels, the information stored in auxiliary data is not saved but deleted when the project is saved. I have to go through and redo all of my label tweaks. However, I do not have to re-choose a primary key for the auxiliary storage, that part does get saved. The only thing I use the Auxiliary Storage for is label editing (for now). It had worked in a previous build of QGIS 2.99, but I guess a recent change broke it.
#7 Updated by James M almost 2 years ago
This issue has happened to me three times in the last month using QGIS 3.2 and 3.4 but it doesn't happen all the time.
I will use the auxiliary storage to manually position labels and save and this often persists when I re-open a project (I have been doing spot checks on the QDB as I am working and saving to make sure it is writing information, which it is). However, sometimes when I re-open the project that has previously saved the label positions in the auxiliary storage I notice that all of my labels have reverted to default positioning, and then when I check the QDB file it is empty (0 bytes), when previously it was showing that information had been stored.
Then when I look at the properties for layers were using auxiliary storage for label placement everything seems to be set up correctly (showing the unique id) but there are no features listed. Also when I look at my layer style properties, the data driven Label Coordinate X and Y properties are RED (instead of YELLOW) and I need to update them to 'Store Data In the Project' to get the label positioning to work again.
So it does manage to save the data to the auxiliary storage database sometimes, and the positioning usually persists upon re-opening a project, but sometimes the table just dumps the data. Also, when I notice that the label positioning has disappeared the QDB 'modified' date shows the last time I would have used/saved it, not the current attempt at opening, so I would assume that it is not dumping upon reopening the project but sometimes when saving/closing a project previously (with no error reported).