Deployed app crashes due to "access violation"

For compatibility reasons, I am creating a standalone application on MATLAB 2015a 32-bit and compiling it with Matlab Compiler 6.0. The goal of the deployed app is to collect input from the user, which is then saved into a .txt file in a specified project folder. The user can then reload a previous project if they type in the specified project name.
There is a subfolder in the project folder called 'images' where pictures are saved from the previous project. The application is supposed to read the .jpg files in that folder so it can be previewed by the user. However, when it tries to load an existing project with pictures in the 'images' folder, the deployed app immediately crashes. When I delete the 'images' folder or if the 'images' folder is empty, the project information successfully loads. This only happens in the deployed version, not when I start the application directly in the Matlab command window.
Why is my deployed app crashing and what can I do to fix it?
Below is the error log from the deployed app:
------------------------------------------------------------------------
Access violation detected at Mon Jan 06 14:11:24 2020
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Intel Intel(R) UHD Graphics 620 Version 4.4.0 - Build 25.20.100.6581
Default Encoding : windows-1252
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 620 Version 25.20.100.6581
MATLAB Architecture : win32
MATLAB Root : C:\Program Files (x86)\MATLAB\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Enterprise
Processor ID : x86 Family 6 Model 142 Stepping 11, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
Window System : Version 10.0 (Build 18362)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
EAX = 00000000 EBX = 2b86e310
ECX = 00000000 EDX = 049843ec
ESP = 0baf94ec EBP = 0baf94f0
ESI = 3cb99628 EDI = 3cb99628
EIP = 7cfc584b EFL = 00010206
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault):
[ 0] 0x7cfc584b C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcr.dll+00350283 mcrInstance::MCallbackAttach+00000011
[ 1] 0x7cfdaace C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcr.dll+00436942 mcr::unittest::is_lxe_mode+00000238
[ 2] 0x7b8bffdc C:\Program Files (x86)\MATLAB\R2015a\bin\win32\libmwgui.dll+00065500 MCallback::init+00000220
[ 3] 0x7b8be785 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\libmwgui.dll+00059269 MCallback::MCallback+00000037
[ 4] 0x7b8bf7cf C:\Program Files (x86)\MATLAB\R2015a\bin\win32\libmwgui.dll+00063439 MCallback::clone+00000063
[ 5] 0x2bb9fc6b C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hgdatatypes.dll+00064619 graphics::datatype::CallbackDataType::copy+00000027
[ 6] 0x05164fe1 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos.dll+00020449 mcos::COSDataType::copyInternal+00000017
[ 7] 0x2c1ce7d4 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hg.dll+04122580 gbtdatatypes::SingleCharacterDataType::getType+00450484
[ 8] 0x2c19462a C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hg.dll+03884586 gbtdatatypes::SingleCharacterDataType::getType+00212490
[ 9] 0x2c1a31a4 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hg.dll+03944868 gbtdatatypes::SingleCharacterDataType::getType+00272772
[ 10] 0x2c1b6ebc C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hg.dll+04026044 gbtdatatypes::SingleCharacterDataType::getType+00353948
[ 11] 0x04844c8d C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos_impl.dll+00085133
[ 12] 0x04851135 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos_impl.dll+00135477
[ 13] 0x048502cb C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos_impl.dll+00131787
[ 14] 0x04890704 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos_impl.dll+00395012 mcos::plugins::init__pm_init+00016836
[ 15] 0x049151e0 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\mcos_impl.dll+00938464 QueryMLFcnTable_mcos_impl+00539184
[ 16] 0x7a4f2e35 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hgbuiltins.dll+00536117
[ 17] 0x7a4f2c7b C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hgbuiltins.dll+00535675
[ 18] 0x7a505947 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hgbuiltins.dll+00612679 hgbuiltins::PlotParser::operator=+00040439
[ 19] 0x7a505755 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\hgbuiltins.dll+00612181 hgbuiltins::PlotParser::operator=+00039941
[ 20] 0x084dee58 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\m_dispatcher.dll+00061016 mdLogging::log_function_exit+00000104
[ 21] 0x084de8a8 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\m_dispatcher.dll+00059560 Mfunction_handle::dispatch+00000424
[ 22] 0x07b24ff8 C:\Program Files (x86)\MATLAB\R2015a\bin\win32\m_interpreter.dll+00217080 inPathNotificati

Answers (0)

Categories

Find more on Application Deployment in Help Center and File Exchange

Products

Release

R2015a

Asked:

on 6 Jan 2020

Community Treasure Hunt

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

Start Hunting!