I found that it happens only if QgsProject.setInstance(project) was called before. Now I see the warning in QgsProject.setInstance(): "calling this method can have serious, unintended consequences, including instability, data loss and undefined behavior. Use with EXTREME caution!"
Maybe there should be /Transfer/ in sip? I used QgsProject.setInstance(project) as a workaround to the problem with temporary XXXXXX_styles.db remaining open. Any idea how to use it with EXTREME caution? Radim On Mon, Jun 5, 2023 at 8:50 PM Denis Rouzaud <denis.rouz...@gmail.com> wrote: > Hi Radim, > > The error is occurring in the constructor of QgsProject (from > QgsProject::instance) where it cannot construct a QSettings. > > I was afraid this crash was due to the recent changes in settings, but I > don't see this as related. This bug was not occurring before 3.30 ? > > Cheers, > Denis >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer