Build Error CGIR assertion 'lhsType.isMatrix() == rhsType.isMatrix() || lhsType.pointerLevel() > 1' failed in 'b:\matlab​\src\cgir_​construct\​utils\rtwc​g_prop.cpp​:2069'

조회 수: 5 (최근 30일)
I try to build a model with Matlab2018b and Embedded Coder 7.1 for generation of the code.
I add the report due to the pop-up mesasge "Please report this to MathWorks if you can cause it to recur"
Matlab2018b / Embedded Coder 7.1
CGIR assertion 'lhsType.isMatrix() == rhsType.isMatrix() || lhsType.pointerLevel() > 1' failed in 'b:\matlab\src\cgir_construct\utils\rtwcg_prop.cpp:2069' [ 0] 0x00000002494a0e65 bin\win64\libmwcgir_construct.dll+00396901 RTWCG::PropagateSizes::propRHS+00000165 [ 1] 0x000000024949cb7f bin\win64\libmwcgir_construct.dll+00379775 RTWCG::PropagateSizes::propExprStmt+00000207 [ 2] 0x00000002494a0a3d bin\win64\libmwcgir_construct.dll+00395837 RTWCG::PropagateSizes::propNode+00000733 [ 3] 0x00000002494927a6 bin\win64\libmwcgir_construct.dll+00337830 RTWCG::PropagateSizes::apply+00000438 [ 4] 0x00000002494900bc bin\win64\libmwcgir_construct.dll+00327868 RTWCG::RTWPropagateSizes+00000188 [ 5] 0x00000002794e7ab9 bin\win64\rtwcg.dll+06191801 SLCG::Pass::TransformName::slcg::writing_to_scm+00026297 [ 6] 0x0000000271064172 bin\win64\cgir_support.dll+03031410 CG::ScopeTransform::apply+00000098 [ 7] 0x0000000279499550 bin\win64\rtwcg.dll+05870928 SLCG::Pass::Driver::execute+00000880 [ 8] 0x00000002794962b6 bin\win64\rtwcg.dll+05857974 SLCG::Pass::Driver::addTransform+00000086 [ 9] 0x0000000023b51415 bin\win64\slcg_driver.dll+00136213 load_slcg_driver+00083205 [ 10] 0x00000002794ab39b bin\win64\rtwcg.dll+05944219 SLCG::Pass::optimizeAndEmitCodePhase1+00000331 [ 11] 0x00000002793900e0 bin\win64\rtwcg.dll+04784352 RTWCG::RTWCGModule::OptimizeAndEmitCodePhase1+00000080 [ 12] 0x00000002761488f6 bin\win64\libmwsimulink.dll+12486902 DiscreteBlockExecWrapper::getAdaptorEnable+00098630 [ 13] 0x000000027613c936 bin\win64\libmwsimulink.dll+12437814 DiscreteBlockExecWrapper::getAdaptorEnable+00049542 [ 14] 0x00000002761c0a62 bin\win64\libmwsimulink.dll+12978786 DiscreteBlockExecWrapper::getAdaptorSystemInitialize+00137874 [ 15] 0x00000002761c9464 bin\win64\libmwsimulink.dll+13014116 DiscreteBlockExecWrapper::getAdaptorSystemInitialize+00173204
### Build procedure for model: aborted due to an error.
Unexpected or internal error encountered in "in CGIR: b:\matlab\src\cgir_construct\utils\rtwcg_prop.cpp line 2069: lhsType.isMatrix() == rhsType.isMatrix() || lhsType.pointerLevel() > 1 ". Please report this to MathWorks if you can cause it to recur

답변 (1개)

Song-Hyun Ji
Song-Hyun Ji 2023년 7월 25일
Do you use S-function, Stateflow, or FunctionCaller... in your model? Would you elaborate to explain your model and background furthermore like "The model was working but it crashed after some modification", etc? Would you check if the issue is in the latest version like R2023a or would you try to use R2019b at least? Please report this issue officially through the following URL.

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by