-RM-135-MR-Saving and/or Loading doesn't work.
When I save a current project, nii.gz files have correct path, but are unable to load:
Module Problem Module: Data Module Could not load ""/home/math/...t1.brain.nii.gz"". Reason: unknown file type: ".gz""
How to reproduce:
- load a nii.gz file
- Save project to file
- close OpenWalnut
- start OpenWalnut with the previously saved project file
This is what is inside of the project file (with modified path):
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Modules and Properties
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MODULE:0:Navigation Slices
// Property Group: Properties
PROPERTY:(0,Name)=Navigation Slices
PROPERTY:(0,active)=1
PROPERTY:(0,No transparency)=0
// Property Group: Slices
PROPERTY:(0,Slices/Show Sagittal Slice)=1
PROPERTY:(0,Slices/Show Coronal Slice)=1
PROPERTY:(0,Slices/Show Axial Slice)=1
PROPERTY:(0,Slices/Sagittal Position)=127.5
PROPERTY:(0,Slices/Coronal Position)=127.5
PROPERTY:(0,Slices/Axial Position)=63.5
// Property Group END: Slices
// Property Group END: Properties
DATA:1:"/home/math/...t1.brain.nii.gz"
// Property Group: Properties
PROPERTY:(1,Name)=t1.brain.nii.gz
PROPERTY:(1,active)=1
PROPERTY:(1,Transformation matrix)=0
// Property Group: Data-Set Properties
// Property Group END: Data-Set Properties
// Property Group: Texture Properties
PROPERTY:(1,Texture Properties/Name)=t1.brain.nii.gz
PROPERTY:(1,Texture Properties/Minimum)=0
PROPERTY:(1,Texture Properties/Scale)=2917
PROPERTY:(1,Texture Properties/Alpha)=1
PROPERTY:(1,Texture Properties/Enable Threshold)=0
PROPERTY:(1,Texture Properties/Threshold)=0
PROPERTY:(1,Texture Properties/Interpolate)=1
PROPERTY:(1,Texture Properties/Colormap)=5
PROPERTY:(1,Texture Properties/Active)=1
// Property Group END: Texture Properties
// Property Group END: Properties
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Connections
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ROI Structure
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Sorry. Not Yet Implemented.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Camera definitions
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
CAMERA:0:Main View
//Camera Matrices: "Main View"
MANIPULATOR:(0,Matrix)=1;0;0;0;0;0;1;0;0;-1;0;0;127.5;-5.10001;63.5;1
MANIPULATOR:(0,HomeEye)=127.5;-5.10001;63.5
MANIPULATOR:(0,HomeCenter)=127.5;127.5;63.5
MANIPULATOR:(0,HomeUp)=0;0;1
//Camera Matrices END: "Main View"
This is the output (with modified path):
*DEBUG [Data Module] Loading data from ""/home/math/...t1.brain.nii.gz"".
*DEBUG [Navigation Slices] Waiting ...
Exception thrown! Callstack's backtrace:
trace: WException::WException(std::string const&) -> lib/libopenwalnut.so.1(_ZN10WExceptionC2ERKSs+0x11d) [0x7f247bcfbebd]
trace: WDHException::WDHException(std::string const&) -> lib/libopenwalnut.so.1(_ZN12WDHExceptionC1ERKSs+0x9) [0x7f247bc18bb9]
trace: WMData::moduleMain() -> /local/home/math/repos/OpenWalnut/build/release/bin/../lib/openwalnut/data/libdata.so.1.3.0(_ZN6WMData10moduleMainEv+0x39b6) [0x7f24516054e6]
trace: WModule::threadMain() -> lib/libopenwalnut.so.1(_ZN7WModule10threadMainEv+0x1cb) [0x7f247bd2ee5b]
trace: WThreadedRunner::threadMainSave() -> lib/libopenwalnut.so.1(_ZN15WThreadedRunner14threadMainSaveEv+0x1a) [0x7f247bc9aa1a]
trace: boost::detail::thread_data >::run() -> lib/libopenwalnut.so.1(_ZN5boost6detail11thread_dataINS_8functionIFvvEEEE3runEv+0x1e) [0x7f247bc9ccce]
trace: thread_proxy() -> /usr/lib/libboost_thread.so.1.46.1(thread_proxy+0x69) [0x7f2478326ba9]
trace: () -> /usr/lib/nvidia-current-updates/libGL.so.1(+0xa225a) [0x7f24755a625a]
*ERROR [KernelRootContainer] Error in module "Data Module". Forwarding to nesting container.
*ERROR [Module (Data Module)] WException. Notifying. Message: Could not load ""/home/math/...t1.brain.nii.gz"". Reason: unknown file type: ".gz""
*WARNING [Project Loader] In the module with ID 1 a problem occurred. Connections and properties relating to this module will fail.
(from redmine: created on 2012-02-14, closed on 2012-02-14)