View Issue Details

IDProjectCategoryView StatusLast Update
0003823Slicer4Extension: SlicerRT / Module: Plastimatchpublic2016-09-30 11:30
Reporterlassoan Assigned Togregsharp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionFixed in VersionSlicer 4.5.0-1 
Summary0003823: Plastimatch and dependent modules cannot be loaded on windows 8
Description

Installed the latest nightly build of Slicer and SlicerRT extension.

Lots of modules are missing (all that rely on Plastimatch) and the following is logged by Slicer:

[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/cli-modules/plastimatch_slicer_bsplineLib.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/cli-modules/plastimatch_slicer_dicomrt_exportLib.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/cli-modules/plastimatch_slicer_dicomrt_importLib.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/cli-modules/plastimatch_slicer_landwarpLib.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/cli-modules/plastimatch_slicer_xformwarpLib.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/qt-loadable-modules/qSlicerContourComparisonModule.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[CRITICAL][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Error(s):
Cannot load library C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23625/SlicerRT/lib/Slicer-4.3/qt-loadable-modules/qSlicerDicomRtExportModule.dll: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
[DEBUG][Qt] 28.08.2014 17:30:31 [] (unknown:0) - Number of registered modules: 157
[C

Logged the loading process with sxstrace and got this:

ERROR: Cannot resolve reference Microsoft.VC90.OpenMP,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
ERROR: Activation Context generation failed.
End Activation Context Generation.

So, it seems that the installation package does not contain Microsoft.VC90.OpenMP. Installing VC2008 redistributable package would probably make the problem go away, but I'm not sure users could figure this out.

Either CMake (more precisely: InstallRequiredSystemLibraries.cmake) should be extended or the missing DLL should be added to the Slicer CMake files.

TagsNo tags attached.

Activities

gregsharp

gregsharp

2014-08-29 07:50

developer   ~0012443

Hmm, yes I see. This is a problem. I wonder why it never came up before.

For a short term, I will disable OpenMP for Windows build.

lassoan

lassoan

2014-08-29 07:58

developer   ~0012444

It did not come up before because the packaging was broken before so that not the right redistributable DLLs were included in Windows packages. Therefore if somebody did not have VS2008 redistributable package installed, then Slicer did not start.

Now DLLs that are required by Slicer core are correctly included, so Slicer starts, but OpenMP DLL is not included, so SlicerRT can have problems even if Slicer start correctly.

gregsharp

gregsharp

2014-08-29 08:57

developer   ~0012445

Workaround committed, not yet fully tested.

https://www.assembla.com/code/dG15GuCs4r4l4UeJe5cbCb/ctGUxGF88r4yH5acwqjQXA/commit/1945

Andras, I agree with your analysis. Good to fix InstallRequiredSystemLibraries.cmake. I will prepare a patch.

gregsharp

gregsharp

2014-08-29 12:53

developer   ~0012446

Bug report to CMake.

http://www.cmake.org/Bug/view.php?id=15117

gregsharp

gregsharp

2014-08-29 13:54

developer   ~0012447

Patch submitted to cmake mantis and email list.

http://www.cmake.org/pipermail/cmake/2014-August/058439.html

gregsharp

gregsharp

2014-09-02 09:01

developer   ~0012448

Patch accepted. Will roll with CMake 3.1.

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bdb5007b

gregsharp

gregsharp

2014-09-02 09:50

developer   ~0012449

Slicer will need a little patch as well.

https://github.com/Slicer/Slicer/pull/177

jcfr

jcfr

2015-11-02 15:04

administrator   ~0013512

Fixed in r24125
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=24125

pinter

pinter

2016-04-13 14:39

developer   ~0013857

The issue reappeared, see
http://slicer-devel.65872.n3.nabble.com/SlicerRT-not-working-on-Windows-with-new-4-5-stable-build-td4036487.html

gregsharp

gregsharp

2016-09-30 11:29

developer   ~0014136

Fixed.

https://app.assembla.com/spaces/slicerrt/tickets/664-plastimatch-openmp-disabled-on-windows/details#

gregsharp

gregsharp

2016-09-30 11:30

developer   ~0014137

Fixed https://app.assembla.com/spaces/slicerrt/tickets/664-plastimatch-openmp-disabled-on-windows/details#

Issue History

Date Modified Username Field Change
2014-08-28 15:13 lassoan New Issue
2014-08-28 15:13 lassoan Status new => assigned
2014-08-28 15:13 lassoan Assigned To => gregsharp
2014-08-29 07:50 gregsharp Note Added: 0012443
2014-08-29 07:58 lassoan Note Added: 0012444
2014-08-29 08:57 gregsharp Note Added: 0012445
2014-08-29 12:53 gregsharp Note Added: 0012446
2014-08-29 13:54 gregsharp Note Added: 0012447
2014-09-02 09:01 gregsharp Note Added: 0012448
2014-09-02 09:50 gregsharp Note Added: 0012449
2015-11-02 15:04 jcfr Note Added: 0013512
2015-11-02 15:04 jcfr Status assigned => resolved
2015-11-02 15:04 jcfr Fixed in Version => Slicer 4.5.0-1
2015-11-02 15:04 jcfr Resolution open => fixed
2016-04-13 14:39 pinter Note Added: 0013857
2016-04-13 14:39 pinter Status resolved => confirmed
2016-09-30 11:29 gregsharp Note Added: 0014136
2016-09-30 11:30 gregsharp Note Added: 0014137
2016-09-30 11:30 gregsharp Status confirmed => closed