Bug report #9369

"duplicate layer" takes ages to duplicate spatialite layers

Added by Olivier Dalang about 10 years ago. Updated about 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
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

Description

Hi !

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...

Thanks !

History

#1 Updated by Giovanni Manghi about 10 years ago

  • Status changed from Open to Feedback
  • Target version set to Future Release - High Priority

I'm not able to replicate, it would be possible to attach sample data/project?

#2 Updated by Regis Haubourg almost 10 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..

#3 Updated by Paolo Cavallini almost 10 years ago

Can it be Yet Another incarnation of the problem of changing SpatiaLite version? The behaviour has changed, and now it is advisable not to insert individual records, but use transactions instead.

#4 Updated by Giovanni Manghi over 8 years ago

what is the status of this issue? I can't replicate even with large projects. Can a sample project and data be shared? Please leave feedback.

#5 Updated by Giovanni Manghi about 8 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

Closing for lack of feedback and because I cannot replicate with recent releases, but please reopen if still true (and attaching project and data to allow us replicate). Cheers!

Also available in: Atom PDF