Azzera filtri
Azzera filtri

App Designer Compiled App Crashes after ~48 Hours

32 visualizzazioni (ultimi 30 giorni)
Nathan Duisterhof
Nathan Duisterhof il 16 Apr 2024
Risposto: Sarthak il 22 Apr 2024
I have been using App Designer in Matlab 2023b to create shareable executable so my coworkers can use it to run tests in the Lab. The application works great, until it crashes after running for about 48hours. It's very consistent, never making it much longer then the 2 day mark. At first I thought it may be a memory issue, but depending on the test, I feel like that would change the amount of time taken to crash the app? I tried forcing a memory issue and running to see if I could recreate the crash but the app just froze it never crashed. Besides running for 2 days, I can't seem to come up with any way to replicate the issue.
Each time the app crashes a .dmp file gets placed in the AppData/Local/CrashDumps folder. I used WinDbg to take a look at the .dmp files and they all seem to point to some issue with the libcef.dll file. I'm not sure what to make of it though... What would magically make the app have an issue with the libcef.dll file after running correctly for 48hours?
Any help/insights would be greatly appreciated as this has been a thorn in my side for a while now and always having to wait 48hours to see if I fixed the issue has been quite challenging.
Here is the output from the .dmp file:
* *
* Exception Analysis *
* *
*** WARNING: Check Image - Checksum mismatch - Dump: 0x3bcd90, File: 0x3b3aed - C:\ProgramData\Dbg\sym\KERNELBASE.dll\2B72307B3a6000\KERNELBASE.dll
Key : Analysis.CPU.mSec
Value: 265
Key : Analysis.Elapsed.mSec
Value: 3322
Key : Analysis.IO.Other.Mb
Value: 4
Key : Analysis.IO.Read.Mb
Value: 0
Key : Analysis.IO.Write.Mb
Value: 10
Key : Analysis.Init.CPU.mSec
Value: 140
Key : Analysis.Init.Elapsed.mSec
Value: 8698
Key : Analysis.Memory.CommitPeak.Mb
Value: 391
Key : Failure.Bucket
Value: APPLICATION_FAULT_e0000008_libcef.dll!Unknown
Key : Failure.Hash
Value: {56f16d53-c57a-bf44-d7f6-f21520b427e0}
Key : Timeline.Process.Start.DeltaSec
Value: 278943
Key : WER.OS.Branch
Value: ni_release
Key : WER.OS.Version
Value: 10.0.22621.1
Key : WER.Process.Version
FILE_IN_CAB: MATLABWindow.exe.10536.dmp
CONTEXT: (.ecxr)
rax=0000000000000000 rbx=0000000000000000 rcx=534a202d2d2d3c0a
rdx=72746b6361747320 rsi=0000000000000000 rdi=0000033e03d41d00
rip=00007ffe43c65b0c rsp=000000a60b3f3a30 rbp=0000000000000006
r8=203a736d20373233 r9=65676e6576616353 r10=382820332e303620
r11=203e2d2029332e38 r12=000000a60b3f4340 r13=0000033e0080c000
r14=000000a60b3f4130 r15=000000a60b3f3f20
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
00007ffe`43c65b0c 0f1f440000 nop dword ptr [rax+rax]
Resetting default scope
ExceptionAddress: 00007ffe43c65b0c (KERNELBASE!RaiseException+0x000000000000006c)
ExceptionCode: e0000008
ExceptionFlags: 00000081
NumberParameters: 1
Parameter[0]: 0000000000000000
ERROR_CODE: (NTSTATUS) 0xe0000008 - <Unable to get error code text>
EXCEPTION_PARAMETER1: 0000000000000000
000000a6`0b3f3a30 00007ffd`8dcca07b : 000000b9`00c3b768 000000a6`0b3f41a8 00000000`00000000 000000a6`0b3fd900 : KERNELBASE!RaiseException+0x6c
000000a6`0b3f3b10 00007ffd`8dcca099 : 00000000`00000000 000000b9`00c3b648 000000b9`00c05570 00007ffd`9303b63d : libcef!cef_zip_reader_create+0x27a3b
000000a6`0b3f3b40 00007ffd`8dcca0b5 : 000000b9`0087b628 00007ffd`94025978 000000a6`0b3f4350 aaaaaaaa`00000000 : libcef!cef_zip_reader_create+0x27a59
000000a6`0b3f3b70 00007ffd`9317692c : 000000b9`009b8bd0 aaaaaaaa`aaaaaa00 aaaaaaaa`aaaaaa00 00000000`00000000 : libcef!cef_zip_reader_create+0x27a75
000000a6`0b3f3ba0 00007ffd`8fb54643 : 0000033e`03d41d00 000000a6`0b3f3d58 0000aa10`47034f0a 00007ffd`96c6ce20 : libcef!GetHandleVerifier+0x178091c
000000a6`0b3f3d20 00007ffd`8fb545de : 00000000`00000000 000000a6`0b3f3f20 000000a6`0b3f27f8 00000000`00000000 : libcef!cef_string_map_size+0x1af7cd3
000000a6`0b3f3d50 00007ffd`8fcbf1e3 : 00000000`00000019 00007ffd`8dca5310 00000000`00000000 0000033e`00230900 : libcef!cef_string_map_size+0x1af7c6e
000000a6`0b3fc9e0 00007ffd`902b6acb : 0000033e`30173100 0000033e`00230900 000000a6`0b3fca70 0000033e`0025aa00 : libcef!cef_string_map_size+0x1c62873
000000a6`0b3fca10 00007ffd`902b581b : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : libcef!CrashForExceptionInNonABICompliantCodeRange+0xfc8b
000000a6`0b3fca40 00007ffd`902add82 : 41b0a025`90333332 00000000`00000000 0000033e`002fe500 00000000`00000060 : libcef!CrashForExceptionInNonABICompliantCodeRange+0xe9db
000000a6`0b3fcb00 00007ffd`902b47ba : 00000262`0024acf9 00000000`00000001 00007ffd`96c2bcb1 00007ffd`8fb6fc68 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x6f42
000000a6`0b3fcb40 00007ffd`902b44fe : 00000000`00000000 0000aa10`4703b94a 000000b9`00245430 00000000`00000000 : libcef!CrashForExceptionInNonABICompliantCodeRange+0xd97a
000000a6`0b3fcbb0 00007ffd`902b434d : 000000a6`0b3fcc70 00007ffd`8fb5601d 0000aa10`4703b98a 0000033e`003740a0 : libcef!CrashForExceptionInNonABICompliantCodeRange+0xd6be
000000a6`0b3fcc10 00007ffd`902a8328 : 000000b9`00245430 0000009f`da98f4db 000000b9`003f6bd8 000000a6`0b3fce30 : libcef!CrashForExceptionInNonABICompliantCodeRange+0xd50d
000000a6`0b3fcca0 00007ffd`93e60c79 : 000000a6`0b3fcd48 00007ffd`8ea19a0e 00000000`0000010e 00007ffd`92fca475 : libcef!CrashForExceptionInNonABICompliantCodeRange+0x14e8
000000a6`0b3fccd0 00007ffd`92f07be8 : 000000b9`003962d0 00007ffd`8fb6c14c 00000000`00000000 0000aa10`4703bf4a : libcef!GetHandleVerifier+0x246ac69
000000a6`0b3fcd90 00007ffd`93567cb1 : 00000000`00000001 00000262`00027e41 0000033e`0080c000 000000a6`0b3fd000 : libcef!GetHandleVerifier+0x1511bd8
000000a6`0b3fcdf0 00007ffd`1fe4d3ad : 00000262`022e1cc1 00000000`00000003 0000033e`0080c000 00000262`00000000 : libcef!GetHandleVerifier+0x1b71ca1
000000a6`0b3fcf70 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : 0x00007ffd`1fe4d3ad
STACK_COMMAND: ~0s; .ecxr ; kb
SYMBOL_NAME: libcef+27a3b
IMAGE_NAME: libcef.dll
FAILURE_BUCKET_ID: APPLICATION_FAULT_e0000008_libcef.dll!Unknown
OS_VERSION: 10.0.22621.1
BUILDLAB_STR: ni_release
OSNAME: Windows 10
FAILURE_ID_HASH: {56f16d53-c57a-bf44-d7f6-f21520b427e0}
Followup: MachineOwner

Risposte (1)

Sarthak il 22 Apr 2024
Hello Nathan,
While you've considered memory leaks, the problem might be a different kind of resource leak (e.g., handles, GDI objects) in your app that manifests over time since your app crashes after -48 hours. I would advise you to monitor resource usage and see if you are able to look for trends that might point to a slow leak or a resource cap being reached.
If possible, you can also test your application in a different environment to identify if the problem is environment-specific.
You can also try to identify if specific features of your application are more closely associated with the crash.
Since the stack trace isn't very helpful, you can reach out to MathWorks Technical Support from the link below and they might be able to assist you further.
Hope this helps!


Scopri di più su App Building in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by