Bug report #14949
QGIS desktop calls otbApplicationLauncherCommandLine during startup
|Affected QGIS version:||2.14.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22898|
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 4 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 4 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