On 2 June 2018 at 22:57, Even Rouault <[email protected]> wrote: > Hi, > > wondering if I'm the only one in that case, but I get systematic crashes on > QGIS exit on Ubuntu 16.04, with master or 2.18 branch > This is super annoying conceptually, and on practice as well since on master, > gdb gets automatically attached to the process, which is slow. > > When running under Valgrind, this is typically due to things like the > following [1], but this is just an extract of > a long list of errors. > There are as many occurences of this as there are static variables using QT > data types in QGIS code base. > I experimented changing a few of them, by changing to static pointers > instead, and not as static members, and > with explicit cleanup() function to reclaim the memory explicitly from > QgsApplication::exitQgis(). > This works, but this is super tedious, and I'm wondering if I'm not missing > something obvious. > > Like if libqgis_core would be deinitialized after libQTCore. > > Do other people experiment that issue as well ? >
I personally haven't seen this on any of the platforms I build on (which includes Fedora, Ubuntu 18.04, and Windows), but can understand it would make bug fixing super annoying. I wonder if using Q_GLOBAL_STATIC would be a good fix here? Nyall _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
