MATLAB Crashes while I try to generate C-code

2 views (last 30 days)
surya
surya on 13 Jul 2013
Hello! I've a perfectly working M-file, it does solve a finite element problem and generates several vectors and matrices of dimensions (500x500). It has an iterative procedure that increments the sizes of matrices and vectors. Now, the file generates Mex, but when I try to generate C code, it crashes. Any idea why?
Configuration:
Crash Decoding : Disabled
Default Encoding : windows-1252
MATLAB Architecture: win64
MATLAB Root : C:\Program Files\MATLAB\R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Microsoft Windows 8
Processor ID : x86 Family 6 Model 42 Stepping 7, GenuineIntel
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 6.2 (Build 9200)
Fault Count: 1
Assertion at b:\matlab\src\cg_ir\base_core\factory\nodefactory.cpp line 1378:
StaticMatrixType::isa(aMatType) && StaticMatrixType::isa(originalMatType)
I'm using MATLAB 2013a, 64bit, Compiler MS VC++ 2012
  1 Comment
Fred Smith
Fred Smith on 15 Jul 2013
This is a bug in MATLAB Coder. Please report it to MathWorks and we will look into it. If you can provide reproduction steps for us that would be greatly appreciated.
If you want to solve your problem immediately, you could try the R2013b prerelease in the hopes that the problem is solved already.
Thanks!
-Fred

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 13 Jul 2013
See the FAQ: http://matlab.wikia.com/wiki/FAQ#After_installation.2C_MATLAB_crashes_or_gives_an_error_message_when_I_try_to_run_MATLAB.. Any crashes of MATLAB (but not your custom program you wrote) should be reported to them.

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!