Bug report #9369
"duplicate layer" takes ages to duplicate spatialite layers
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17969|
When duplicating spatialite layers using the "Duplicate layer" command from the contextual menu, it takes sometimes up to 10 seconds for the duplicate to appear in the layer list.
It seem to happen especially when the project is complex (lots of layers) and open since some time (the problem does not appear on a freshly opened file).
I'll try to be more precise, but the bug is not that easy to reproduce (still, it happened to me often).
First consequence : since there is absolutely no feedback during that time, the user can be tempted to run the command again or conclude the function does not work.
Second consequence : under certain conditions (for instance if you close the project between running the command and it's effect), QGIS crashes (with "minidump dumped to...").
I'm not sure if it's the same issue, but when using the "add to canvas" command from the DBManager, the same delay sometimes occurs...
#2 Updated by Regis Haubourg over 7 years ago
Hi, I confirm the issue. It occurs for large projects only after having worked for a while.
Really hard to reproduce but occurs every time you make production work as always ;-) ..
it also affects plugin menu layer form project that adds layers to a project. adding raw data from file or database is fast..