Nikonti.dll makes MATLAB crashing during use of MMCore

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Nikonti.dll makes MATLAB crashing during use of MMCore

Fabien Jammes
Dear all,

I am using MMCore with MATLAB to control my setup. 
I changed from an old computer with MATLAB 2013 and Windows XP, 32bits to a brand new Windows 10 , 64bits, MATLAB 2018 computer.
I control my Nikon Ti microscope and my Andor EMCCD camera. I initially had trouble creating a MMCore object because Nikon Ti.dll created an error while loading my MM configuration. After downloading the latest version of Nikon Ti SDK, the program launched and everything was fine.

However,  during use it seems that repetitive use of the microscope stage makes the MATLAB program froze and then crash with the following error statements:

MATLAB crash file:C:\Users\CELLCU~1\AppData\Local\Temp\matlab_crash_dump.8572-1:

 

--------------------------------------------------------------------------------

       Unhandled C++ exception detected at Thu Nov 08 04:01:27 2018 +0100

--------------------------------------------------------------------------------

 

Configuration:

  Crash Decoding           : Disabled - No sandbox or build area path

  Crash Mode               : continue (default)

  Default Encoding         : US-ASCII

  Deployed                 : false

  Graphics Driver          : NVIDIA Corporation GeForce GTX 1060 6GB/PCIe/SSE2 Version 4.6.0 NVIDIA 399.07

  Graphics card 1          : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 1060 6GB Version 24.21.13.9907 (2018-8-21)

  Java Version             : Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

  MATLAB Architecture      : win64

  MATLAB Entitlement ID    : 815975

  MATLAB Root              : C:\Program Files\MATLAB\R2018b

  MATLAB Version           : 9.5.0.944444 (R2018b)

  OpenGL                   : hardware

  Operating System         : Microsoft Windows 10 Education

  Process ID               : 8572

  Processor ID             : x86 Family 6 Model 158 Stepping 10, GenuineIntel

  Window System            : Version 10.0 (Build 16299)

 

Fault Count: 1

Abnormal termination

 

Register State (from fault):

  RAX = 0000000000000000  RBX = 00000003f217e8b0

  RCX = 000000000000031b  RDX = 46000000000000c0

  RSP = 00000003f217e740  RBP = 00000003f217e880

  RSI = 0000000080020009  RDI = 00007ff906d68048

 

   R8 = 00000003f217e2e0   R9 = 0000000000000000

  R10 = 000000005cfd3ca0  R11 = ffffffffffff3300

  R12 = 00000003f217eed0  R13 = 0000000000000000

  R14 = 000000000008e836  R15 = 0000000000000001

 

  RIP = 00007ff9216e50d8  EFL = 00000206

 

   CS = 0033   FS = 0053   GS = 002b

 

Stack Trace (from fault):

[  0] 0x00007ff9216e50d8                 C:\Windows\System32\KERNELBASE.dll+00282840 RaiseException+00000104

[  1] 0x000000005cf814f1 C:\Program Files\MATLAB\R2018b\sys\java\jre\win64\jre\bin\MSVCR100.dll+00398577 CxxThrowException+00000129

[  2] 0x00007ff906ce1553          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00988499 GetDeviceDescription+00060915

[  3] 0x00007ff906ce115c          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00987484 GetDeviceDescription+00059900

[  4] 0x00007ff906c6e5b7          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00517559 InitializeModuleData+00495448

[  5] 0x00007ff906c82aef          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00600815 InitializeModuleData+00578704

[  6] 0x00007ff906c85401          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00611329 InitializeModuleData+00589218

[  7] 0x00007ff906c7b467          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00570471 InitializeModuleData+00548360

[  8] 0x00007ff906c80096          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00589974 InitializeModuleData+00567863

[  9] 0x00007ff906c7ddbf          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00581055 InitializeModuleData+00558944

[ 10] 0x000000001102202a      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00008234

[ 11] 0x00000000111007ad      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00919469 DllUnregisterServer+00414377

[ 12] 0x0000000011060b89      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00265097

[ 13] 0x00000000110567f2      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00223218

[ 14] 0x00000000110e3173      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00799091 DllUnregisterServer+00293999

[ 15] 0x000000001104d75f      C:\Program Files\Nikon\Shared\Bin\NikonTi.dll+00186207

[ 16] 0x00007ff922afb85d                     C:\Windows\System32\USER32.dll+00047197 CallWindowProcW+00001245

[ 17] 0x00007ff922afb1ef                     C:\Windows\System32\USER32.dll+00045551 DispatchMessageW+00000431

[ 18] 0x00007ff906c871f7          C:\Micro-Manager-1.4\mmgr_dal_NikonTI.dll+00618999 InitializeModuleData+00596888

[ 19] 0x00007ff922331fe4                   C:\Windows\System32\KERNEL32.DLL+00073700 BaseThreadInitThunk+00000020

[ 20] 0x00007ff92471cb31                      C:\Windows\SYSTEM32\ntdll.dll+00445233 RtlUserThreadStart+00000033



It would seem that the NikonTi.dll is again at fault. 

Do you have any potential solution ? I think it is linked to the performance of the computer that is too fast for the MMCore object.

I tried introducing pause of 0.5 seconds for the MMCore to catch up after moving the stage of the Ti but it didn't fix the problem.


Thanks you in advance :)


--
Best Regards,

Fabien Jammes


_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general