Page MenuHomePhabricator

time-out on loading multiple executable causes non to load in CTK-CLI
Closed, WontfixPublic

Description

Hi,

if a number of executable or a larger one is loaded "process operation timed out" - errors may occur on requesting the xml data.

This causes empty XML-files to be cached.

Once a cache entry exists the CLI does not try to retrieve the xml data again. This means, once an integration failed it will always fail.

Including the following snippet in
CTK-src\Libs\CommandLineModules\Core\ctkCmdLineModuleManager.cpp (line 183ff)
may solve this.

if (xml.isEmpty() && fromCache)

{
  // newly fetch the XML description
  try
  {
    xml = backend->rawXmlDescription(location);
  }
  catch (...)
  {
    // cache the failed attempt
    d->ModuleCache->cacheXmlDescription(location, newTimeStamp, QByteArray());
    throw;
  }
}

Event Timeline

additionally change !process.waitForFinished() to !process.waitForFinished(-1) in
ctkCmdLineModuleBackendLocalProcess::rawXmlDescription() (line 174 in D:\Dipp\bin\MITK-superbuild\CTK-src\Libs\CommandLineModules\Backend\LocalProcess\ctkCmdLineModuleBackendLocalProcess.cpp)

kislinsk closed this task as Wontfix.Jun 20 2018, 6:25 AM
kislinsk claimed this task.
kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.