Bug report #14949
QGIS desktop calls otbApplicationLauncherCommandLine during startup
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
With QGIS 2.14 desktop on Windows, there is high CPU and memory usage from otbApplicationLauncherCommandLine.exe during QGIS splash screen. It looks to be about 100% increase from QGIS load time due to OTB. See attached screenshot.
I could not reproduce with 2.8.1
We are also tracking it on OTB bug tracker: https://bugs.orfeo-toolbox.org/view.php?id=1226
#3 Updated by Victor Poughon over 7 years ago
Alexander Bruy wrote:
Seems this happens because Processing tries to detect OTB version by launching otbcli_Smoothing command. Detecting version is needed to determine folder with algorithms descriptions.
Could you point me to the processing/QGIS source file where that happens? I can take a look at it. It should be possible to get the version number without using so much ram and time.
#4 Updated by Alexander Bruy over 7 years ago
Here is where version detection started https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/otb/OTBAlgorithmProvider.py#L61. And here is code where OTB tool executed https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/otb/OTBUtils.py#L123