Compiling error: Assertion failed: (), function find, file management.cpp, line 761.
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
The Matlab MCR crashes when I try to call a function from a Matlab DLL using Python. The error is :
A s s e r t i o n f a i l e d : f i n d : n o a c t i v e c o n t e x t f o r t y p e ' s t r u c t ` a n o n y m o u s n a m e s p a c e ' : : A l r e a d y R e p o r t e d F a i l u r e '
F u n c t i o n : f o u n d a t i o n : : u s m : : D e t a i l < s t r u c t f o u n d a t i o n : : u s m : : s c o p e : : M v m > : : f i n d , f i l e B : \ m a t l a b \ f o u n d a t i o n \ u s m \ m a n a g e m e n t . c p p , l i n e 7 6 1
--------------------------------------------------------------------------------
Assertion detected at 2023-06-14 14:41:36 +0200
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : true
Graphics Driver : Unknown hardware
Graphics card 1 : MirrorOp ( 0x0 ) MirrorOp Virtual Graphics Adaptor Version 1.1.110.31 (2018-6-19)
Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA Quadro T1000 Version 30.0.14.7239 (2021-10-13)
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 : Unknown
MATLAB Root : C:\Bib\Prod\Distrib\win64\MCR\V911
MATLAB Version : 9.11.0.2022996 (R2021b) Update 4
OpenGL : hardware
Operating System : Microsoft Windows 10 Entreprise
Process ID : 21544
Processor ID : x86 Family 6 Model 165 Stepping 2, GenuineIntel
Session Key : 5261a371-79f7-468b-ac3a-bdab823c88eb
Window System : Version 10.0 (Build 19045)
Fault Count: 1
Assertion in foundation::usm::Detail<struct foundation::usm::scope::Mvm>::find at B:\matlab\foundation\usm\management.cpp line 761:
find: no active context for type 'struct `anonymous namespace'::AlreadyReportedFailure'
Current Thread: '' id 8808
Register State (captured):
RAX = 00007fffa616d9d8 RBX = 00007fffa616d9d8
RCX = 000000f02b3ede60 RDX = 0000000000000000
RSP = 000000f02b3edda0 RBP = 00000000000002f9
RSI = 000002b44c04ba40 RDI = 00007fffa616d9d8
R8 = 0000000000000004 R9 = 000000f02b3edd18
R10 = 0000000000000015 R11 = 0000000000000000
R12 = 000000f02b3ee490 R13 = 000000f02b3ef3f8
R14 = 00007fffca103b48 R15 = 00007fffa615d918
RIP = 00007fffa604138a EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x00007fffa603a043 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfl.dll+00041027 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007fffa6037338 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfl.dll+00029496 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007fffa603d87d C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfl.dll+00055421 foundation::core::diag::symbols::getSymbolAddress+00013293
[ 3] 0x00007fffa603c161 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfl.dll+00049505 foundation::core::diag::symbols::getSymbolAddress+00007377
[ 4] 0x00007fffa6040c0b C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfl.dll+00068619 foundation::core::diag::terminate+00000059
[ 5] 0x00007fffca0e3abd C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfoundation_usm.dll+00015037 foundation::usm::getErrorHandler+00000061
[ 6] 0x00007fffca0f7fb8 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwfoundation_usm.dll+00098232 foundation::usm::Detail<foundation::usm::scope::Mvm>::find+00000184
[ 7] 0x00007fff0908dfa1 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmwbridge.dll+00057249 ioSetIoCallbacks+00006113
[ 8] 0x00007fffc7d92808 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libut.dll+00206856 utVprintf+00000600
[ 9] 0x00007fffc8a61153 C:\Bib\Prod\Distrib\win64\MCR\V911\bin\win64\libmex.dll+00397651 mexPrintf+00000035
MATLAB is exiting because of fatal error
Does anyone have an idea what this could be?
0 Commenti
Risposte (1)
Sreeram
il 1 Ott 2024
Hi Amch,
It seems you are experiencing the crash due to access issues with a folder specified in Windows registry. This is a known issue in MATLAB R2021b. Updating to MATLAB R2022a fixes the issue. If updating is not possible, the issue can be resolved by following these steps:
1. Check registry path:
Run this command in Command Prompt:
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal
2. If the registry value points to an invalid or inaccessible location, reset the value:
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_SZ /d "C:\Users\<username>\Documents" /f
Where <username> will be your username.
For detailed steps, consult the Bug Reports website:
I hope this helps.
0 Commenti
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!