Hi, 

As a follow-up to my previous mail, here is what I could give a deeper look to: 

- I started the building process from the beginning on another computer with 
the same configuration, except for the OS which was Microsoft Windows 7 
(service pack 1, x64). I didn't encounter the same error and was able to 
successfully launch the Workbench with the simulation plugin on. 
- I tried to suppress everything related to MITK on the computer running under 
Windows 10 and started once more, in case there would have been a conflict I 
would not have been aware of. Once again I was able to go through all the 
building process without any error, but encountered the same problem ( memory 
access violation) when running the Workbench. 
- I finally updated my Windows 10 version with the anniversary update (version 
1607, build 14393), but this was also unsuccessful. 

Considering these elements I would say the problem is likely to come either 
from windows 10 or from conflicting files on my computer I couldn't find. 

Were you running on Windows 10 when you tried to reproduce the error? Or do you 
know if a test has been made recently on Windows 10 (I saw it was part of the 
Tier 2 supported platforms)? 
Otherwise the problem must be specifically related to something on my computer. 

Regards, 


Camille 

----- Original Message -----

From: "Camille Krewcun" <camille_krew...@orange.fr> 
To: "Stefan Dinkelacker" <s.dinkelac...@dkfz-heidelberg.de> 
Cc: mitk-users@lists.sourceforge.net 
Sent: Mercredi 1 Février 2017 16:18:41 
Subject: Re: [mitk-users] [Simulation plugin] Execution error at plugin loading 


Hi Stefan, 

Thanks for your answer! 

I did exactly the same as you described in the first two lines of your message 
(and encountered the same forced switch on for the Boost libraries). 

As for the things that could have gone wrong: 

- I didn't encounter any error during the superbuild (although warnings were 
triggered), and everything was built successfully 
- I used the debug batch file (StartVS_debug.bat) to launch the Workbench after 
compiling in Debug mode. I also tried to do all the building process in Release 
mode (also following the same steps as you described), using this time the 
release batch file, and apparently encountered what seems to be the same error. 
- I checked that both simulation plugins (org.mitk.simulation and 
org.gui.qt.simulation) were indeed switched on 

I finally tried to delete all the Workbench folders in the AppData directory 
but I still encounter the same error, although not with the same callstack as 
plugins were directly loaded (and not updated). However a call to the 
insertArchive method is also made during this loading process, and it triggers 
the error when used relatively to the org.mitk.simulation plugin. 

I made a lot of manipulations relatively to MITK lately, and I'm not sure that 
I'm not missing anything. I'll try to reproduce the problem in a "clean" 
machine, starting from 2016.03 sources only, and going through the entire 
building process. 

I'll keep you updated if I encounter the error once more. 

Best, 


Camille 

----- Original Message -----

From: "Stefan Dinkelacker" <s.dinkelac...@dkfz-heidelberg.de> 
To: "Camille Krewcun" <camille_krew...@orange.fr>, 
mitk-users@lists.sourceforge.net 
Sent: Mercredi 1 Février 2017 15:15:18 
Subject: RE: [mitk-users] [Simulation plugin] Execution error at plugin loading 



Hi, 

I have just done a superbuild with your setup (2016.03, CMake 3.7, VS 2013 
Community Update 5, and Qt 5.4.2). I switched on MITK_USE_SOFA in the 
superbuild. Boost with a few libraries were force switched on then. I 
configured again and generated the superbuild solution. I built the project 
MITK-Configure in Debug Configuration, and then switched in CMake to the 
MITK-build directory to switch on the two simulation plugins. 
Configure/Gerenrate. I used the debug batch file (!) to open the MITK solution 
and built/run MITKWorkbench. So everything works for me. 

Thing that might have gone wrong in your case: 

- Did you check, that the superbuild was completely successful? 
- Did you use the right batch file to open the MITK solution? 
- Did you switch on both simulation plugins? 
- If you’re sure that everything was built successfully, you can either go to 
%APP_DATA%/../Local/DKFZ and delete all the Workbench folders to force a clean 
start of the Workbench, or pass /BlueBerry.clean once as argument to the 
Workbench, which will do the same (remember to remove the argument later). You 
can add the argument in the properties of the MITKWorkbench project 
(Configuration Properties -> Debugging -> Command Arguments). 

Best 
Stefan 



From: Camille Krewcun [mailto:camille_krew...@orange.fr] 
Sent: Dienstag, 31. Januar 2017 17:54 
To: mitk-users@lists.sourceforge.net 
Subject: [mitk-users] [Simulation plugin] Execution error at plugin loading 


Hello everyone, 

I encounter an execution error (memory access violation) when trying to launch 
MITK Workbench with the simulation plugin. 

This error seems to result from a call to the insertArchive method of 
ctkPluginStorageSQL (relatively to org.mitk.simulation plugin), through the 
updateDB method. However I have difficulties to trace back the exact cause of 
the problem through the plugin loading process. 

Has this situation been encountered before? 

I leave more information concerning the error and my environment below. 

Best regards, 

Camille 


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Build information: 

Working on Microsoft Windows 10 Professional (original version 10240) 

MITK 2016.03 release sources 
CMake 3.7.0 
Visual Studio 2013 Community (Update 5) 
Qt 5.4.2 

All third party libraries automatically downloaded and built during MITK 
superbuild 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Error message: 

" Unhandled exception at 0x00007FFF19064FF5 (SofaCore_1_0d.dll) in 
MitkWorkbench.exe: 0xC0000005: Access violation reading location 
0x00007FFF0A90F530. " 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
Callstack when error is triggered: 

> SofaCore_1_0d.dll!boost::detail::sp_counted_base::release() Line 103 
SofaCore_1_0d.dll!boost::detail::shared_count::~shared_count() Line 471 
[External Code] 
SofaCore_1_0d.dll!boost::checked_delete<sofa::core::ObjectFactory::ClassEntry>(sofa::core::ObjectFactory::ClassEntry
 * x) Line 34 
SofaCore_1_0d.dll!boost::detail::sp_counted_impl_p<sofa::core::ObjectFactory::ClassEntry>::dispose()
 Line 79 
SofaCore_1_0d.dll!boost::detail::sp_counted_base::release() Line 104 
SofaCore_1_0d.dll!boost::detail::shared_count::~shared_count() Line 471 
[External Code] 
SofaCore_1_0d.dll!sofa::core::ObjectFactory::~ObjectFactory() Line 37 
[External Code] 
Qt5Cored.dll!QLibraryPrivate::unload_sys() Line 150 
Qt5Cored.dll!QLibraryPrivate::unload(QLibraryPrivate::UnloadFlag flag) Line 549 
Qt5Cored.dll!QPluginLoader::unload() Line 256 
CTKPluginFramework.dll!ctkPluginStorageSQL::insertArchive(QSharedPointer<ctkPluginArchiveSQL>
 pa, QSqlQuery * query) Line 491 
CTKPluginFramework.dll!ctkPluginStorageSQL::updateDB() Line 333 
CTKPluginFramework.dll!ctkPluginStorageSQL::open() Line 179 
CTKPluginFramework.dll!ctkPluginStorageSQL::ctkPluginStorageSQL(ctkPluginFrameworkContext
 * framework) Line 64 
CTKPluginFramework.dll!ctkPluginFrameworkContext::init() Line 161 
CTKPluginFramework.dll!ctkPluginFrameworkPrivate::init() Line 56 
CTKPluginFramework.dll!ctkPluginFramework::start(const QFlags<enum 
ctkPlugin::StartOption> & options) Line 112 
CTKPluginFramework.dll!ctkPluginFrameworkLauncher::startup(QRunnable * 
__formal) Line 521 
CTKPluginFramework.dll!ctkPluginFrameworkLauncher::run(QRunnable * 
endSplashHandler, const QVariant & argument) Line 425 
MitkAppUtil.dll!mitk::BaseApplication::main(const 
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> 
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
 > > > & args) Line 686 
PocoUtild.dll!Poco::Util::Application::run() Line 333 
MitkAppUtil.dll!mitk::BaseApplication::run() Line 784 
MitkWorkbench.exe!main(int argc, char * * argv) Line 41 
[External Code] 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to