Bug report #7006
New core QgsOfflineEditingPlugin crashing app on exit
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Mac||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||16106|
On Mac, I get a EXC_BAD_ACCESS crash from the new moved-to-core QgsOfflineEditingPlugin when exiting QGIS.
See attached crash report of relevant info.
#4 Updated by Larry Shaffer almost 9 years ago
- Status changed from Closed to Reopened
That doesn't quite do it (though I thought it should). I still get the same destructor error. If I change the following (at line 74):
mProgressDialog = new QgsOfflineEditingProgressDialog( mQGisIface->mainWindow(), QgisGui::ModalDialogFlags );
mProgressDialog = new QgsOfflineEditingProgressDialog( 0, QgisGui::ModalDialogFlags );
all works well. I believe this is where the issue stems from. I tested the plugin with QgsOfflineEditingProgressDialog having no parent and it worked fine. Question is: when the plugin was moved into core, does mQGisIface->mainWindow() get deleted before or after the plugin?
It would be best for the dialog to have an app-based widget as a parent, so that the app's stylesheet can be inherited. What should be the dialog's parent in that case?