View Issue Details

IDProjectCategoryView StatusLast Update
0003876Slicer4Core: Base Codepublic2018-03-02 11:06
Reporterlassoan Assigned Tojcfr  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.5.0-1Fixed in Version 
Summary0003876: All python modules fail after uninstalling an extension
Description

Installed and then uninstalled SlicerRT extension. After that all Python modules failed to load.

Additional Information

THe problem is in the content of Slicer-23749.ini.

After installing SlicerRT th ini file contents is OK:

...

[LibraryPaths]
1\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3
2\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/cli-modules
3\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/qt-loadable-modules
size=3

[Paths]
1\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/cli-modules
size=1

[PYTHONPATH]
1\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/qt-scripted-modules
2\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/qt-loadable-modules/Python
size=2


After uninstalling SlicerRT:

[LibraryPaths]
size=0

[Paths]
size=0

[PYTHONPATH]
1\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/qt-scripted-modules
2\path=C:/Users/Andras/AppData/Roaming/NA-MIC/Extensions-23749/SlicerRT/lib/Slicer-4.3/qt-loadable-modules/Python
size=2

[EnvironmentVariables]
PYTHONPATH=

There are two issues:

  • [PYTHONPATH] still contains the SlicerRT paths
  • PYTHONPATH= is added to [EnvironmentVariables] => this causes all the Python module loading failures
TagsNo tags attached.

Relationships

has duplicate 0003933 closedpieper Launching stable 4.4.0 leads to error messages, but starts 
related to 0003894 closedpinter Python wrapped classes not loaded when starting from Visual Studio for debugging 

Activities

lassoan

lassoan

2014-11-13 21:47

developer   ~0012695

This is serious stuff and still happens in Slicer-4.4.

Users already reported Slicer not working and it took a lot of time to figure out what's happening and then explain them to go to their AppData dir, find the ini file corresponding to the corrupted Slicer release, delete it (this deletes all other non-default settings, too).

lassoan

lassoan

2014-11-13 21:50

developer   ~0012696

Not just for SlicerRT but for other extensions, too (for example VolumeClip). Maybe impacts all extensions, or all that contains Python scripted modules?

pieper

pieper

2014-12-31 06:29

administrator   ~0012823

Does this process to uninstall the application work to reset things?

http://www.slicer.org/slicerWiki/index.php/Documentation/4.4/FAQ#How_to_uninstall_Slicer.3F

lassoan

lassoan

2015-01-05 10:12

developer   ~0012830

Last edited: 2015-01-06 09:21

Uninstall does not help. The corrupted Slicer version becomes permanently broken on a computer where any extensions are uninstalled.

The reason is that c:\Users\<yourusername>\AppData\Roaming\NA-MIC\Slicer-NNNNN.ini becomes corrupted and it is not touched by the installation/uninstallation process.

lassoan

lassoan

2015-01-05 10:13

developer   ~0012831

On the most recent nightly build not just the Python modules not appear but Slicer sometimes will not even start if previously an extension was uninstalled.

pieper

pieper

2015-01-05 19:55

administrator   ~0012834

What happens if you uninstall it manually? Maybe we should add this step to the uninstall target. Or maybe we offer a script that performs the cleanup? (Or, better, of course, we fix the actual bug!).

lassoan

lassoan

2015-01-06 09:21

developer   ~0012837

I'm not sure what you mean by manual uninstall. If you run Uninstall from the start menu then the ini files are extensions are not touched. If we add the ini file to the uninstall target then we should delete all the extension files too (the extension files would be orphaned without the corresponding ini file).

lassoan

lassoan

2015-01-06 09:57

developer   ~0012838

This is a serious issue and it is present since almost 3 months already in both the latest stable version and all nightly versions.

We already know about a lot of occurrences and surely there are many more people who just give up using or trying Slicer because of this problem.

Is somebody working on the fix?

pieper

pieper

2015-01-06 14:39

administrator   ~0012840

I think we are saying the same thing - it sounds like extension installation should add some extra hooks to the uninstaller so that everything gets properly cleaned up.

lassoan

lassoan

2015-01-06 15:34

developer   ~0012841

Yes, removing extensions and config files on Slicer uninstall could be nice, but not essential (some people might actually prefer to keep settings).

The main issue though is that the ini files get corrupted when uninstalling extensions (not Slicer).

What is the plan for the fix? I may try to investigate this but the best would be if Jc or others who implemented extension installation/uninstallation could work on it.

pieper

pieper

2015-01-07 04:12

administrator   ~0012843

Jc is travelling to SLC today so we may be able to discuss it in the coming days. I personally have not looked at all at any of this.

lassoan

lassoan

2015-04-01 05:18

developer   ~0013004

Fixed in rev 24140

jcfr

jcfr

2015-04-01 12:34

administrator   ~0013005

Thanks Andras.

Issue History

Date Modified Username Field Change
2014-10-18 17:31 lassoan New Issue
2014-10-18 17:31 lassoan Status new => assigned
2014-10-18 17:31 lassoan Assigned To => jcfr
2014-11-13 21:47 lassoan Note Added: 0012695
2014-11-13 21:50 lassoan Note Added: 0012696
2014-11-13 21:50 lassoan Priority normal => high
2014-11-14 07:24 jcfr Status assigned => acknowledged
2014-11-14 07:24 jcfr Target Version => Slicer 4.4.1
2014-12-02 11:50 pinter Relationship added related to 0003894
2014-12-31 06:29 pieper Note Added: 0012823
2015-01-05 10:12 lassoan Note Added: 0012830
2015-01-05 10:13 lassoan Note Added: 0012831
2015-01-05 19:55 pieper Note Added: 0012834
2015-01-06 09:21 lassoan Note Added: 0012837
2015-01-06 09:21 lassoan Note Edited: 0012830
2015-01-06 09:57 lassoan Note Added: 0012838
2015-01-06 14:39 pieper Note Added: 0012840
2015-01-06 15:34 lassoan Note Added: 0012841
2015-01-07 04:12 pieper Note Added: 0012843
2015-03-27 22:00 jcfr Relationship added has duplicate 0003933
2015-04-01 05:18 lassoan Note Added: 0013004
2015-04-01 05:18 lassoan Status acknowledged => resolved
2015-04-01 05:18 lassoan Resolution open => fixed
2015-04-01 12:34 jcfr Note Added: 0013005
2015-09-09 08:29 jcfr Target Version Slicer 4.4.1 => Slicer 4.5.0-1
2018-03-02 11:06 jcfr Status resolved => closed