View Issue Details

IDProjectCategoryView StatusLast Update
0002719Slicer4Core: Base Codepublic2012-12-13 12:47
Reporternicole Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformlinuxOSOS Version
Product VersionSlicer 4.2.0 
Target VersionSlicer 4.2.1Fixed in VersionSlicer 4.2.1 
Summary0002719: Slicer.ini file being over written by running tests that use the --testing flag
Description

I'm losing my application settings every time I run a test that uses the --testing flag. I have to reset my extension paths and bookmarked directories and home module and DICOM DB when restarting Slicer.

Steps To Reproduce

Run Slicer normally, set up DICOM database path, do work that requires loading volumes from the db.
Exit.
Run ctest with a test that uses the --testing command, such as:
ctest -R py_AnnotationsTestingAddManyFiducials -VV
Restart Slicer, try to load a DICOM volume, you have to reset the path to the db.

Additional Information

I had a terminal window open to
/home/nicole/.config/NA-MIC
and was doing a long listing to check time stamps.
Before running the test (time stamp on Slicer.ini is from when I last exited Slicer):
8 -rw-r--r-- 1 nicole nicole 178 Jul 5 18:41 cookies.ini
0 drwxr-xr-x 2 nicole nicole 80 Jan 31 2011 Extensions/
8 -rw-r--r-- 1 nicole nicole 4793 Nov 1 17:08 Slicer.ini
8 -rw-r--r-- 1 nicole nicole 4354 Nov 1 12:58 SlicerTesting.ini

during the test the Slicer.ini file disappeared:
8 -rw-r--r-- 1 nicole nicole 178 Jul 5 18:41 cookies.ini
0 drwxr-xr-x 2 nicole nicole 80 Jan 31 2011 Extensions/
8 -rw-r--r-- 1 nicole nicole 4354 Nov 1 17:12 SlicerTesting.ini

after the test, the Slicer.ini file only has a temp dir set:
8 -rw-r--r-- 1 nicole nicole 178 Jul 5 18:41 cookies.ini
0 drwxr-xr-x 2 nicole nicole 80 Jan 31 2011 Extensions/
8 -rw-r--r-- 1 nicole nicole 29 Nov 1 17:13 Slicer.ini
8 -rw-r--r-- 1 nicole nicole 4354 Nov 1 17:13 SlicerTesting.ini

cat Slicer.ini
[General]
TemporaryPath=/tmp

Also happens on a Mac, but haven't been able to find steps to reproduce, will ask Andrey to comment.

TagsNo tags attached.

Relationships

related to 0002715 closedpieper Cryptic error message the first time a DICOM database is accessed 

Activities

fedorov

fedorov

2012-11-01 14:37

developer   ~0007013

I confirm I am able to reproduce this issue on mac.

I have to say I've been losing Slicer configuration without running any tests (sometimes after Slicer crashes), but hopefully this issue is related.

jcfr

jcfr

2012-11-07 05:59

administrator   ~0007096

FYI - I already started to work on that.

jcfr

jcfr

2012-11-07 11:30

administrator   ~0007107

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

Andriy> If a crash occurs, it's possible that some settings are lost because the QSettings hasn't yet been sync with the file system. If this is a problem, please create a dedicated mantis issue.

Issue History

Date Modified Username Field Change
2012-11-01 13:25 nicole New Issue
2012-11-01 13:25 nicole Status new => assigned
2012-11-01 13:25 nicole Assigned To => pieper
2012-11-01 14:37 fedorov Note Added: 0007013
2012-11-01 18:08 fedorov Assigned To pieper => jcfr
2012-11-06 09:57 jcfr Relationship added related to 0002715
2012-11-06 18:22 sankhesh Assigned To jcfr => sankhesh
2012-11-07 05:59 jcfr Assigned To sankhesh => jcfr
2012-11-07 05:59 jcfr Note Added: 0007096
2012-11-07 11:30 jcfr Note Added: 0007107
2012-11-07 11:30 jcfr Status assigned => resolved
2012-11-07 11:30 jcfr Fixed in Version => Slicer 4.2.1
2012-11-07 11:30 jcfr Resolution open => fixed
2012-12-13 12:47 nicole Status resolved => closed