MATLAB coder works in R2019b version but crashes in R2022b when I run a particular code. Assertion Detected error
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Assertion detected at 2023-11-22 13:41:14 +0100
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Desktop Environment : GNOME-Classic:GNOME
GNU C Library : 2.17 stable
Graphics Driver : Uninitialized software
Graphics card 1 : 0x15ad ( 0x15ad ) 0x405 Version 2.15.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 1837592
MATLAB Root : /share/giseh_de0_prod/matlab/R2022b/RedHatEL-7/x86_64
MATLAB Version : 9.13.0.2126072 (R2022b) Update 3
OpenGL : software
Operating System : "Red Hat Enterprise Linux Server release 7.9 (Maipo)"
Process ID : 31839
Processor ID : x86 Family 23 Model 49 Stepping 0, AuthenticAMD
Session Key : 0e4f58d6-84ce-4108-a721-9800435d848d
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12004000), display :100
Fault Count: 1
Assertion in mxArray* {anonymous}::MxCreateStringNCharsT_safe<SourceType>::operator()(const char*, const SourceType*, size_t) const [with SourceType = char; mxArray = mxArray_tag; size_t = long unsigned int] at array2.cpp line 500:
mxCreateString called with non-UTF-8 input: 290�/4kts
Current Thread: 'MCR 0 interpret' id 140393463928576
Register State (captured):
RAX = 0000000000000000 RBX = 00007fb0308003a8
RCX = 0000000000000000 RDX = 00007fb0307ea008
RSP = 00007fafe68b5370 RBP = 00007fafe68b5750
RSI = 00007fb0307d02a2 RDI = 00007fafe68b5380
R8 = 0000000000000000 R9 = 00007fb030b539a0
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 00007fafe68b6050 R13 = 00007fb0307f0328
R14 = 00007fb0308003a8 R15 = 00007fafe68b5bb0
RIP = 00007fb03077e8cf EFL = 0000000000000000
CS = 0000 FS = 0000 GS = 0000
0 comentarios
Respuestas (1)
Shreeya
el 8 de Oct. de 2024
Hello
From MATLAB R2022a onwards, calling a shared library from MATLAB expects UTF-8 encoded strings. Returning a string with non-UTF-8 encoded string causes MATLAB to crash due the above mentioned assertion error.
For example, to use an external library with MATLAB R2022a or later, modifcation of the source code is required such that the DLL always returns valid UTF-8 encoded strings.
Also refer to the below MATLAB Answers link to understand various other scenarios which may cause MATLAB to crash due to the same underlying cause:
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!