Why matlab coder crash with - Assertion detected

31 views (last 30 days)
TripleSSSS
TripleSSSS on 9 Sep 2020
Commented: TripleSSSS on 16 Sep 2020
I used matlab coder in order to compile DNN code.
During the compilation of matlab to mex, matlab coder pops out with an error that cause matlab to brutality close
Assertion at b:\matlab\src\dnn_core\base\cnnclassconstruction.cpp line 181:
In populateFcnMap: Assertion failed: SeseStmt::isa(callExpr->root())
Afterwards matlab crashes and immidetly close. any reason for that and how to fix that?
I'm using matlab 2020A. the code compiles sucessfully in matlab 2018 update 7.
Here is the full dump message
--------------------------------------------------------------------------------
Assertion detected at יום ד ספט 09 01:39:29 2020 +0300
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1255
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 1060 6GB Version 25.21.14.2600 (2019-7-21)
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 530 Version 21.20.16.4551 (2016-11-18)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6483905
MATLAB Root : D:\MatlabR2020a64bit
MATLAB Version : 9.8.0.1380330 (R2020a) Update 2
OpenGL : hardware
Operating System : Microsoft Windows 7 Enterprise
Process ID : 9512
Processor ID : x86 Family 6 Model 94 Stepping 3, GenuineIntel
Session Key : 8b295243-8fee-4fda-a85f-456b6289a7c6
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Assertion at b:\matlab\src\dnn_core\base\cnnclassconstruction.cpp line 181:
In populateFcnMap: Assertion failed: SeseStmt::isa(callExpr->root())
Register State (captured):
RAX = 000007fecb3619a8 RBX = 000007fecb3619a8
RCX = 000000000a9d8e70 RDX = 0000000000000000
RSP = 000000000a9d8df0 RBP = 00000000000000b5
RSI = 000007fe2a432ce8 RDI = 0000000000000000
R8 = 000007fffffd9000 R9 = 000007fef6c7ea40
R10 = 0000d973b03c4d1d R11 = 000007fecb3519ba
R12 = 000000000a9d9aa0 R13 = 0000000e060745f0
R14 = 000000000a9d94b0 R15 = 000007fecb3518e8
RIP = 000007fecb10476a EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x000007fecb0fc9c3 D:\MatlabR2020a64bit\bin\win64\libmwfl.dll+00051651 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x000007fecb0f98a8 D:\MatlabR2020a64bit\bin\win64\libmwfl.dll+00039080 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x000007fecb10009b D:\MatlabR2020a64bit\bin\win64\libmwfl.dll+00065691 foundation::core::diag::symbols::getSymbolAddress+00012859
[ 3] 0x000007fecb0ff3f9 D:\MatlabR2020a64bit\bin\win64\libmwfl.dll+00062457 foundation::core::diag::symbols::getSymbolAddress+00009625
[ 4] 0x000007fecb1040af D:\MatlabR2020a64bit\bin\win64\libmwfl.dll+00082095 foundation::core::diag::terminate+00000063
[ 5] 0x000007fe9211c740 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00640832 mwboost::serialization::singleton_module::unlock+00343392
[ 6] 0x000007fe8a010e1a D:\MatlabR2020a64bit\bin\win64\cg_ir.dll+05115418 client_assertion_failed+00000026
[ 7] 0x000007fe2a254f53 D:\MatlabR2020a64bit\bin\win64\dnn_core.dll+00347987 pir::DnnComponent::orderingSupported+00003331
[ 8] 0x000007fe2a24fb7f D:\MatlabR2020a64bit\bin\win64\dnn_core.dll+00326527 pir::DnnCtx::deleteNetwork+00001279
[ 9] 0x000007fe2a28e4e1 D:\MatlabR2020a64bit\bin\win64\dnn_core.dll+00582881 CG::transform::CpuCnnLowering::processScope+00000097
[ 10] 0x000007fe8993c282 D:\MatlabR2020a64bit\bin\win64\cgir_support.dll+03326594 CG::ScopeTransform::apply+00000098
[ 11] 0x000007fe922603c0 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+01967040 mwboost::serialization::singleton_module::unlock+01669600
[ 12] 0x000007fe9225c4a2 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+01950882 mwboost::serialization::singleton_module::unlock+01653442
[ 13] 0x000007fe9225a483 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+01942659 mwboost::serialization::singleton_module::unlock+01645219
[ 14] 0x000007fe92258070 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+01933424 mwboost::serialization::singleton_module::unlock+01635984
[ 15] 0x000007fe920fa8a5 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00501925 mwboost::serialization::singleton_module::unlock+00204485
[ 16] 0x000007fe920f2577 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00468343 mwboost::serialization::singleton_module::unlock+00170903
[ 17] 0x000007fe920f1d05 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00466181 mwboost::serialization::singleton_module::unlock+00168741
[ 18] 0x000007fe920f1797 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00464791 mwboost::serialization::singleton_module::unlock+00167351
[ 19] 0x000007fe920f15a2 D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+00464290 mwboost::serialization::singleton_module::unlock+00166850
[ 20] 0x000007fe923f54cb D:\MatlabR2020a64bit\bin\win64\emlcoder.dll+03626187 MLTerminate_emlcoder+00609003
[ 21] 0x000007febdeea723 bin\win64\pgo\mcos_impl.dll+00501539 mdIsA+00045955
[ 22] 0x000007febdee9a9f bin\win64\pgo\mcos_impl.dll+00498335 mdIsA+00042751
[ 23] 0x000007febdeea4f3 bin\win64\pgo\mcos_impl.dll+00500979 mdIsA+00045395
[ 24] 0x000007febdf23211 bin\win64\pgo\mcos_impl.dll+00733713 mdMethodListAllFcn+00024413
[ 25] 0x000007febdf23150 bin\win64\pgo\mcos_impl.dll+00733520 mdMethodListAllFcn+00024220
[ 26] 0x000007febe12ec70 bin\win64\pgo\mcos_impl.dll+02878576 namedArgsToCell+00004736
[ 27] 0x000007febe13ae79 bin\win64\pgo\mcos_impl.dll+02928249 namedArgsToCell+00054409
[ 28] 0x000007fecbcf5175 bin\win64\mcos.dll+00151925 omDirectCallMethod+00000069
[ 29] 0x000007fec2bd9df2 bin\win64\pgo\libmwlxeindexing.dll+00368114 MathWorks::lxe::MatrixModuleImplementation::SetHeterogeneousArray+00013546
[ 30] 0x000007fec2c5a506 bin\win64\pgo\libmwlxeindexing.dll+00894214 MathWorks::lxe::assign_paren_shared_xvalue_ptr_uninitialized_to_struct+00007110
[ 31] 0x000007fec2b84773 bin\win64\pgo\libmwlxeindexing.dll+00018291 MathWorks::lxe::at_rparen+00000715
[ 32] 0x000007fec2b84773 bin\win64\pgo\libmwlxeindexing.dll+00018291 MathWorks::lxe::at_rparen+00000715
[ 33] 0x000007fec2b846e9 bin\win64\pgo\libmwlxeindexing.dll+00018153 MathWorks::lxe::at_rparen+00000577
[ 34] 0x000007fec2b84547 bin\win64\pgo\libmwlxeindexing.dll+00017735 MathWorks::lxe::at_rparen+00000159
[ 35] 0x000007fec3b41ce4 bin\win64\pgo\m_lxe.dll+00531684
[ 36] 0x000007fec3c8b655 bin\win64\pgo\m_lxe.dll+01881685 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>+00127361
[ 37] 0x000007fec3b4033b bin\win64\pgo\m_lxe.dll+00525115
[ 38] 0x000007fec3b3e6ff bin\win64\pgo\m_lxe.dll+00517887
[ 39] 0x000007fec3b3562e bin\win64\pgo\m_lxe.dll+00480814
[ 40] 0x000007fec3b34358 bin\win64\pgo\m_lxe.dll+00475992
[ 41] 0x000007fec3b33fdc bin\win64\pgo\m_lxe.dll+00475100
[ 42] 0x000007fec70b25d0 bin\win64\pgo\m_dispatcher.dll+00075216 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000784
[ 43] 0x000007fec70b226d bin\win64\pgo\m_dispatcher.dll+00074349 Mfh_file::dispatch_with_reuse+00000045
[ 44] 0x000007fec56f6ae2 bin\win64\pgo\m_lxe.dll+29584098 mwboost::archive::detail::pointer_oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+00758386
[ 45] 0x000007fec3b4644b bin\win64\pgo\m_lxe.dll+00549963
[ 46] 0x000007fec3b46389 bin\win64\pgo\m_lxe.dll+00549769
[ 47] 0x000007fec6bec35b bin\win64\pgo\m_interpreter.dll+00050011 inFullFevalFcn+00000379
[ 48] 0x000007fec70ab3bc bin\win64\pgo\m_dispatcher.dll+00046012 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000172
[ 49] 0x000007fec70b42fc bin\win64\pgo\m_dispatcher.dll+00082684 mdWhichInfo::fill_hidden_and_non_contextual+00006444
[ 50] 0x000007fec70b44d9 bin\win64\pgo\m_dispatcher.dll+00083161 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 51] 0x000007fec3b4317b bin\win64\pgo\m_lxe.dll+00536955
[ 52] 0x000007fec3b40d47 bin\win64\pgo\m_lxe.dll+00527687
[ 53] 0x000007fec3c52c65 bin\win64\pgo\m_lxe.dll+01649765 MathWorks::lxe::ShutdownLxeEngine+00057593
[ 54] 0x000007fec3c52b8f bin\win64\pgo\m_lxe.dll+01649551 MathWorks::lxe::ShutdownLxeEngine+00057379
[ 55] 0x000007fec3c528f3 bin\win64\pgo\m_lxe.dll+01648883 MathWorks::lxe::ShutdownLxeEngine+00056711
[ 56] 0x000007fec3b41ce4 bin\win64\pgo\m_lxe.dll+00531684
[ 57] 0x000007fec3cf44b1 bin\win64\pgo\m_lxe.dll+02311345 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,mwboost::shared_ptr<MathWorks::lxe::MatlabIrTree> >::oserializer<mwboost::archive::binaryTerm_oarchive,mwboost::shared_ptr<MathWorks::lxe::MatlabIrTree> >+00062217
[ 58] 0x000007fec3b4033b bin\win64\pgo\m_lxe.dll+00525115
[ 59] 0x000007fec3b3e6ff bin\win64\pgo\m_lxe.dll+00517887
[ 60] 0x000007fec3b3562e bin\win64\pgo\m_lxe.dll+00480814
[ 61] 0x000007fec3b34358 bin\win64\pgo\m_lxe.dll+00475992
[ 62] 0x000007fec3b33fdc bin\win64\pgo\m_lxe.dll+00475100
[ 63] 0x000007fec70b25d0 bin\win64\pgo\m_dispatcher.dll+00075216 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000784
[ 64] 0x000007fec70b226d bin\win64\pgo\m_dispatcher.dll+00074349 Mfh_file::dispatch_with_reuse+00000045
[ 65] 0x000007fec3b4317b bin\win64\pgo\m_lxe.dll+00536955
[ 66] 0x000007fec3b40d47 bin\win64\pgo\m_lxe.dll+00527687
[ 67] 0x000007fec3c52c65 bin\win64\pgo\m_lxe.dll+01649765 MathWorks::lxe::ShutdownLxeEngine+00057593
[ 68] 0x000007fec3c52b8f bin\win64\pgo\m_lxe.dll+01649551 MathWorks::lxe::ShutdownLxeEngine+00057379
[ 69] 0x000007fec3c528f3 bin\win64\pgo\m_lxe.dll+01648883 MathWorks::lxe::ShutdownLxeEngine+00056711
[ 70] 0x000007fec3b41ce4 bin\win64\pgo\m_lxe.dll+00531684
[ 71] 0x000007fec3cf44b1 bin\win64\pgo\m_lxe.dll+02311345 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,mwboost::shared_ptr<MathWorks::lxe::MatlabIrTree> >::oserializer<mwboost::archive::binaryTerm_oarchive,mwboost::shared_ptr<MathWorks::lxe::MatlabIrTree> >+00062217
[ 72] 0x000007fec3b33f8d bin\win64\pgo\m_lxe.dll+00475021
[ 73] 0x000007fec3b36344 bin\win64\pgo\m_lxe.dll+00484164
[ 74] 0x000007fec3b3745d bin\win64\pgo\m_lxe.dll+00488541
[ 75] 0x000007fec3b3704f bin\win64\pgo\m_lxe.dll+00487503
[ 76] 0x000007fec3c40fb4 bin\win64\pgo\m_lxe.dll+01576884 MathWorks::lxe::StartupLxeEngine+00374224
[ 77] 0x000007fec3b3f30b bin\win64\pgo\m_lxe.dll+00520971
[ 78] 0x000007fec3b3562e bin\win64\pgo\m_lxe.dll+00480814
[ 79] 0x000007fec3b346ac bin\win64\pgo\m_lxe.dll+00476844
[ 80] 0x000007fec3aef715 bin\win64\pgo\m_lxe.dll+00194325
[ 81] 0x000007fec3b344b0 bin\win64\pgo\m_lxe.dll+00476336
[ 82] 0x000007fec3c7a2ad bin\win64\pgo\m_lxe.dll+01811117 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>+00056793
[ 83] 0x000007fec70b4807 bin\win64\pgo\m_dispatcher.dll+00083975 mdWhichInfo::find+00000787
[ 84] 0x000007fec70b5479 bin\win64\pgo\m_dispatcher.dll+00087161 Mfh_file::dispatch+00000045
[ 85] 0x000007febdef3b71 bin\win64\pgo\mcos_impl.dll+00539505 mdIsA+00083921
[ 86] 0x000007febdef419e bin\win64\pgo\mcos_impl.dll+00541086 mdIsA+00085502
[ 87] 0x000007febdee9cf3 bin\win64\pgo\mcos_impl.dll+00498931 mdIsA+00043347
[ 88] 0x000007febdeea4f3 bin\win64\pgo\mcos_impl.dll+00500979 mdIsA+00045395
[ 89] 0x000007febdef6239 bin\win64\pgo\mcos_impl.dll+00549433 mdIsA+00093849
[ 90] 0x000007febdef614c bin\win64\pgo\mcos_impl.dll+00549196 mdIsA+00093612
[ 91] 0x000007febdef60bf bin\win64\pgo\mcos_impl.dll+00549055 mdIsA+00093471
[ 92] 0x000007febdf14412 bin\win64\pgo\mcos_impl.dll+00672786 mdIsA+00217202
[ 93] 0x000007fec70b42fc bin\win64\pgo\m_dispatcher.dll+00082684 mdWhichInfo::fill_hidden_and_non_contextual+00006444
[ 94] 0x000007fec70b44d9 bin\win64\pgo\m_dispatcher.dll+00083161 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 95] 0x000007fec3b4317b bin\win64\pgo\m_lxe.dll+00536955
[ 96] 0x000007fec3b40d47 bin\win64\pgo\m_lxe.dll+00527687
[ 97] 0x000007fec3c52c65 bin\win64\pgo\m_lxe.dll+01649765 MathWorks::lxe::ShutdownLxeEngine+00057593
[ 98] 0x000007fec3c52b8f bin\win64\pgo\m_lxe.dll+01649551 MathWorks::lxe::ShutdownLxeEngine+00057379
[ 99] 0x000007fec3c529c3 bin\win64\pgo\m_lxe.dll+01649091 MathWorks::lxe::ShutdownLxeEngine+00056919
[100] 0x000007fec3b41ce4 bin\win64\pgo\m_lxe.dll+00531684
[101] 0x000007fec3c7ad51 bin\win64\pgo\m_lxe.dll+01813841 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,ir::IrTree>+00059517
[102] 0x000007fec3b33f8d bin\win64\pgo\m_lxe.dll+00475021
[103] 0x000007fec3b36344 bin\win64\pgo\m_lxe.dll+00484164
[104] 0x000007fec3b3745d bin\win64\pgo\m_lxe.dll+00488541
[105] 0x000007fec3b3704f bin\win64\pgo\m_lxe.dll+00487503
[106] 0x000007fec3c40fb4 bin\win64\pgo\m_lxe.dll+01576884 MathWorks::lxe::StartupLxeEngine+00374224
[107] 0x000007fec3b3f30b bin\win64\pgo\m_lxe.dll+00520971
[108] 0x000007fec3b3562e bin\win64\pgo\m_lxe.dll+00480814
[109] 0x000007fec3b346ac bin\win64\pgo\m_lxe.dll+00476844
[110] 0x000007fec3ba5abf bin\win64\pgo\m_lxe.dll+00940735
[111] 0x000007fec3ba5c2b bin\win64\pgo\m_lxe.dll+00941099
[112] 0x000007fec3ba5b22 bin\win64\pgo\m_lxe.dll+00940834
[113] 0x000007fec3b046cf bin\win64\pgo\m_lxe.dll+00280271
[114] 0x000007fec3b035eb bin\win64\pgo\m_lxe.dll+00275947
[115] 0x000007fec6bf4f32 bin\win64\pgo\m_interpreter.dll+00085810 inFullEvalFcn+00000162
[116] 0x000007fec658e66b D:\MatlabR2020a64bit\bin\win64\libmwbridge.dll+00058987 ioFullEvalcFcn+00000411
[117] 0x000007fec70ab3bc bin\win64\pgo\m_dispatcher.dll+00046012 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000172
[118] 0x000007fec70b1f12 bin\win64\pgo\m_dispatcher.dll+00073490 Mlm_file::needToCheckoutLicense+00002674
[119] 0x000007fec70b143d bin\win64\pgo\m_dispatcher.dll+00070717 Mfh_MATLAB_fn_impl::dispatch+00000045
[120] 0x000007fec3b44002 bin\win64\pgo\m_lxe.dll+00540674
[121] 0x000007fec3b41ce4 bin\win64\pgo\m_lxe.dll+00531684
[122] 0x000007fec3c20179 bin\win64\pgo\m_lxe.dll+01442169 MathWorks::lxe::StartupLxeEngine+00239509
[123] 0x000007fec3b33f8d bin\win64\pgo\m_lxe.dll+00475021
[124] 0x000007fec3b36344 bin\win64\pgo\m_lxe.dll+00484164
[125] 0x000007fec3b3745d bin\win64\pgo\m_lxe.dll+00488541
[126] 0x000007fec3b3704f bin\win64\pgo\m_lxe.dll+00487503
[127] 0x000007fec3c40fb4 bin\win64\pgo\m_lxe.dll+01576884 MathWorks::lxe::StartupLxeEngine+00374224
  1 Comment
Darshan Ramakant Bhat
Darshan Ramakant Bhat on 9 Sep 2020
Thanks for reporting this. Can you please attach files with steps to reproduce this crash ?

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!