Bug report #744
Qgis crash associated with vector actions
|Assignee:||Gavin Macaulay -|
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||10803|
I have been able to consistently crash qgis by doing this:
1) Start qgis and load project that has vectors with actions.
2) Click on vector in the legend and then click on Identify Feature.
3) In the Identify Results window, click on an action.
(my action opens up a window that says "starting konqueror ftp://..." and then konqueror brings up the ftp site)
4) Click on the Close button in the window that says "starting konqueror" will crash qgis.
I have attached the debug messages I got on my Konsole.
#1 Updated by Tim Sutton about 13 years ago
On mac osx I can replicate this by e.g. making an action that dues
Then quickly pressing cancel while running the action. In the console the final message is:
terminate called without an active exception
I did some research on this and it seems one offered solution is to initialise the offending pointer like this:
x = new(std::nothrow) foo;
I tried doing this on the message output (initialised in qgisapp.cpp) and the various other members in qgsrunprocess.cp but was not able to resolve the issue this way. I also tried explicitly calling terminate() or kill() on the qprocess but that also didnt fix the issue. Perhaps Gavin has some idea?