Matlab crashes on trying to import

I’m new to brainstorm. I downloaded and ran the brainstorm.m file. I followed the instructions and started a new protocol, added a new subjec, then i’m trying to import MEG/EEG by right click on Subject. Matlab crashes and gives the following bug:

MATLAB crash file:C:\Users\user1\AppData\Local\Temp\matlab_crash_dump.16404-1:


         Assertion detected at Tue Oct 16 20:44:28 2018

Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: NVIDIA Corporation GeForce 840M/PCIe/SSE2 Version 4.6.0 NVIDIA 398.36
Default Encoding : windows-1252
Deployed : false
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel® HD Graphics Family Version 20.19.15.4835
Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA GeForce 840M Version 24.21.13.9836
Host Name : hp
Java Crash Report : C:\Users\HPBENU~1\AppData\Local\Temp\hs_error_pid16404.log
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\R2017a
MATLAB Version : 9.2.0.556344 (R2017a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Home
Processor ID : x86 Family 6 Model 69 Stepping 1, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 17134)

Fault Count: 1

Assertion in void __cdecl `anonymous-namespace’::mwJavaAbort(void) at b:\matlab\src\jmi\jmi\javainit.cpp line 1411:
Fatal Java Exception. See Java Crash Report for details.

Register State (captured):
RAX = 00000000048823e8 RBX = 00000000048823e8
RCX = 00000001f042d220 RDX = 0000000000000000
RSP = 00000001f042d1a0 RBP = 000000001eddc508
RSI = 00000000048823e8 RDI = 0000000000000000

R8 = 0000000000000000 R9 = 00007ffbec160000
R10 = 0000000004872417 R11 = 0000000004872417
R12 = 000000001eddc508 R13 = 00000001f042d860
R14 = 0000000004872318 R15 = 0000000004882368

RIP = 00000000046aaa9a EFL = 00000206

CS = 0033 FS = 0053 GS = 002b

Stack Trace (captured):
[ 0] 0x00000000046a4fc3 bin\win64\libmwfl.dll+00085955
[ 1] 0x00000000046a3718 bin\win64\libmwfl.dll+00079640
[ 2] 0x00000000046a6b5a bin\win64\libmwfl.dll+00093018
[ 3] 0x00000000046a63a7 bin\win64\libmwfl.dll+00091047
[ 4] 0x00000000046aa4e8 bin\win64\libmwfl.dll+00107752
[ 5] 0x000000001ed79ec7 bin\win64\jmi.dll+00696007
[ 6] 0x000000005e327b6d C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll+02390893
[ 7] 0x000000005e310ad8 C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll+02296536
[ 8] 0x000000005e3288e6 C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll+02394342
[ 9] 0x000000005e32c2d8 C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll+02409176
[ 10] 0x000000005e3c3a48 C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll+03029576
[ 11] 0x00007ffc108ced2d C:\WINDOWS\SYSTEM32\ntdll.dll+00650541
[ 12] 0x00007ffc10836c86 C:\WINDOWS\SYSTEM32\ntdll.dll+00027782
[ 13] 0x00007ffc108cdc5e C:\WINDOWS\SYSTEM32\ntdll.dll+00646238
[ 14] 0x000000005e036adf C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\MSVCR100.dll+00223967

Hello,

Sorry to hear you’re having issues. In our experience, Matlab R2017a is a pretty stable release. Sadly, this crash file is generated by Matlab and not Brainstorm, and therefore doesn’t give us much debugging information.

The first and most obvious thing you could try would be to open Matlab and Brainstorm again and see if the error reoccurs.

The second thing you can do, since the crash file seems to be referring to a Java error, would be to increase the Java heap memory. From Matlab, go to the Home tab -> Preferences -> General -> Java Heap Memory and go ahead and increase it using the slider.

If that doesn’t work, you can submit the bug to Mathworks, the company that runs Matlab: https://www.mathworks.com/support/bugreports/

Other options include updating your version of Matlab, Java, or using another computer.

Best of luck,
Martin

Hello
Another thing you can try: make sure everything on your computer is up-do-date (start windows update manually if you disabled it), especially your graphics driver.
Otherwise, I don’t see other solutions that reporting the bug on the Mathworks website. They usually reply fast and provide efficient help in finding workarounds. This solution would work only if you have a valid Matlab license of course :slight_smile:
Francois