Author Topic: 'Install modules' finds module that was already installed  (Read 4053 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
'Install modules' finds module that was already installed
« on: 2010 September 08 18:42:31 »


Hi,

I've reported this before but here is another case where searching for new modules (Carlos's modules in this case) re-found my Profile module and tried to load it again. As you can see from the console log the identical .dll was already loaded.

I have left the entire console contents intact in case it provides hints.

Code: [Select]
Initializing PixInsight...

JavaScript runtime initialized.

Installing 35 module(s):
C:/PCL64/bin/BackgroundModelization-pxm.dll
C:/PCL64/bin/BMP-pxm.dll
C:/PCL64/bin/CloneStamp-pxm.dll
C:/PCL64/bin/ColorCalibration-pxm.dll
C:/PCL64/bin/ColorManagement-pxm.dll
C:/PCL64/bin/ColorSpaces-pxm.dll
C:/PCL64/bin/Compatibility-pxm.dll
C:/PCL64/bin/Convolutions-pxm.dll
C:/PCL64/bin/Debayer-pxm.dll
C:/PCL64/bin/Deconvolution-pxm.dll
C:/PCL64/bin/DSLR_RAW-pxm.dll
C:/PCL64/bin/FITS-pxm.dll
C:/PCL64/bin/Geometry-pxm.dll
C:/PCL64/bin/Global-pxm.dll
C:/PCL64/bin/GREYCstoration-pxm.dll
C:/PCL64/bin/Image-pxm.dll
C:/PCL64/bin/ImageCalibration-pxm.dll
C:/PCL64/bin/ImageIntegration-pxm.dll
C:/PCL64/bin/ImageRegistration-pxm.dll
C:/PCL64/bin/IntensityTransformations-pxm.dll
C:/PCL64/bin/JPEG-pxm.dll
C:/PCL64/bin/JPEG2000-pxm.dll
C:/PCL64/bin/MaskGeneration-pxm.dll
C:/PCL64/bin/Morphology-pxm.dll
C:/PCL64/bin/NoiseGeneration-pxm.dll
C:/PCL64/bin/NoiseReduction-pxm.dll
C:/PCL64/bin/NoOperation-pxm.dll
C:/PCL64/bin/Obsolete-pxm.dll
C:/PCL64/bin/PixelMath-pxm.dll
C:/PCL64/bin/RestorationFilters-pxm.dll
C:/PCL64/bin/Sandbox-pxm.dll
C:/PCL64/bin/StarGenerator-pxm.dll
C:/PCL64/bin/TIFF-pxm.dll
C:/PCL64/bin/Wavelets-pxm.dll
c:/PCL64/dist/x64/Profile-pxm.dll
* Scripting resources updated.
35 of 35 module(s) installed.

Processing script file: C:/PCL64/bin/startup.scp

PixInsight Core 01.06.01.0625 (x86_64)
Copyright (C) 2003-2010 Pleiades Astrophoto
----------------------------------------------------------------------
Welcome to PixInsight. Started 2010 Sep 06 15:00:37 J2455446.12544 UTC

* Parallel processing enabled: Using 8 logical processors.
* Thread CPU affinity control enabled.
* PSM AutoSave enabled. Auto-save period: 30 seconds.

Reading 2 file(s):
C:/astro_disk/AstroImaging/Projects/_InProgress/M31-HS2/M31-HS2-rgb-backgroundcal.tif
Reading TIFF: 32-bit floating point, 3 channel(s), 3010x1988 pixels, chunky: 100%
C:/astro_disk/AstroImaging/Projects/_InProgress/M31-HS2/M31-HS2.tif
Reading TIFF: 32-bit floating point, 3 channel(s), 3010x1988 pixels, chunky: 100%

Reading 1 file(s):
C:/astro_disk/AstroImaging/Projects/_InProgress/vdb152/vdb152.tif
Reading TIFF: 32-bit floating point, 3 channel(s), 3005x1993 pixels, chunky: 100%

Crop: Processing view: vdb152
Writing swap files...
29.99 MB/s
Crop: -5, -5, -5, -5: 100%
0.167 s

Crop: Processing view: M31_HS2
Writing swap files...
58.33 MB/s
Crop: -5, -5, -5, -5: 100%
0.270 s

Crop: Processing view: M31_HS2_rgb_backgroundcal
Writing swap files...
89.28 MB/s
Crop: -5, -5, -5, -5: 100%
0.210 s

** Global security settings modified:
authenticateModules = false
allowDevelopmentModules = true
allowModuleCommandExecution = false
allowModuleGlobalSettingsChange = true
allowModuleConsoleTextRetrieval = false
enableJavaScriptFileRead = true
enableJavaScriptFileWrite = true
enableJavaScriptImageSave = true
enableJavaScriptImageModify = true
enableJavaScriptFileDownload = true
enableJavaScriptFileUpload = false
allowJavaScriptCommandExecution = true
allowJavaScriptRemoteExecution = false
allowJavaScriptConsoleTextRetrieval = false
protectScriptJavaScriptObject = true

run -execute-mode=auto "C:/PCL64/dist/BlindSolver5.js"

Processing script file: C:/PCL64/dist/BlindSolver5.js
BlindSolver Script started
Version Info:PixInsight Core 01.06.01.0625 (x86_64),625,1,6,1
Dialog opening
BlindSolverDialog running on current view
processing in fieldMinControl=130
processing in fieldMaxControl=150
ok_Button.onClick()
BlindSolverEngine.doResult()
Image size=2995
BlindSolverEngine::createTemporaryDirectory(): name=C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir

Writing file:
C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir/orig.jpg
Compressing JPEG: 3 channel(s), 2995x1983 pixels: 100%
BlindSolverEngine.solveFile():commandLine=time solve-field -u arcminwidth -L 130 -H 150 --no-plots --downsample 2 -d 30 C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir/orig.jpg
Executing external command

!time solve-field -u arcminwidth -L 130 -H 150 --no-plots --downsample 2 -d 30 C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir/orig.jpg
Unable to start external process: time
Executing external command done
BlindSolverEngine::deleteDir(): dirName=C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir
BlindSolverEngine::deleteDir(): names=C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir/orig.jpg
BlindSolverEngine::deleteDir(): fileName=C:/Users/sander/AppData/Local/Temp/PixinsightTmpDir/orig.jpg
BlindSolver Script done
*** Error [000]: C:/PCL64/dist/BlindSolver5.js, line 836: Could not solve this image

Writing file:
C:/astro_disk/AstroImaging/Projects/_InProgress/M31-HS2/M31-HS2.tif
Writing TIFF: 32-bit floating point, 3 channel(s), 3000x1978 pixels, chunky: 100%

Writing file:
C:/astro_disk/AstroImaging/Projects/_InProgress/vdb152/vdb152.tif
Writing TIFF: 32-bit floating point, 3 channel(s), 2995x1983 pixels, chunky: 100%

Installing 15 module(s):
C:/PCL64/dist/x64/carlos/Blur-pxm.dll
C:/PCL64/dist/x64/carlos/CHT-pxm.dll
C:/PCL64/dist/x64/carlos/ColorRange-pxm.dll
C:/PCL64/dist/x64/carlos/FFTRegister-pxm.dll
C:/PCL64/dist/x64/carlos/GammaStretch-pxm.dll
C:/PCL64/dist/x64/carlos/GaussianBlur-pxm.dll
C:/PCL64/dist/x64/carlos/GradientMapper-pxm.dll
C:/PCL64/dist/x64/carlos/HistogramEqualization-pxm.dll
C:/PCL64/dist/x64/carlos/LHT-pxm.dll
C:/PCL64/dist/x64/carlos/QuickSTF-pxm.dll
C:/PCL64/dist/x64/carlos/ReadPSF-pxm.dll
C:/PCL64/dist/x64/carlos/Seed-pxm.dll
C:/PCL64/dist/x64/carlos/SelectiveBlend-pxm.dll
C:/PCL64/dist/x64/carlos/Sharpen-pxm.dll
C:/PCL64/dist/x64/Profile-pxm.dll
<* failed *>
* Scripting resources updated.
14 of 15 module(s) installed.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: 'Install modules' finds module that was already installed
« Reply #1 on: 2010 September 10 01:47:28 »
Hi Sander,

Thanks for the detailed report. Now I know what happens.

You have installed the following module at PI startup:

c:/PCL64/dist/x64/Profile-pxm.dll

and later you're trying to install this one:

C:/PCL64/dist/x64/Profile-pxm.dll

The bug is in that the module installation subsystem is applying case-sensitive comparisons to Windows drive letters. 'c:' and 'C:' should be treated as the same directory element but they are not. I'll check if case-sensitive comparisons are being applied to drive letters only, or also to the rest of path name elements, as Windows file systems are case insensitive. Obviously this is a Windows only bug; it cannot happen on other platforms.

The workaround is replacing 'c:' with 'C:'. You can do that easily by editing the configuration file.

This bug will be fixed in the next version. Thanks for finding and reporting it.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: 'Install modules' finds module that was already installed
« Reply #2 on: 2010 September 10 05:40:57 »
Thanks Juan. I thought module loading is done based on class names or some other runtime ID rather than paths. Otherwise you can reload the same .dll more than once and that won't work.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity