Matlab Generated exe stops and exits without error/warning
7 views (last 30 days)
Show older comments
I created a matlab executable package using "deploytool", with the MCR installer. Once the package is built. I install the MCR and then run the exe using the installed files in the "application" folder. The *.exe generated works fine in some PCs but not in other PCs. In some PCs, exe starts execution and randomly in between the execution it stops and without any error message in the log. I cannot see the *.exe in the Task Manager. In the same PC if i run the matlab code (not the exe), it runs fine. Not sure how to debug this issue.
2 Comments
Walter Roberson
on 10 Jun 2015
C / C++ Redistributable for your compiler is not installed on the machines with the problem?
Answers (2)
Deepak challa
on 17 Jun 2015
1 Comment
Matt Zivney
on 18 Jun 2015
Hi,
This is occurring on my PC so I'll try to provide more info.
With Matlab version R2015a, if I just run Matlab .m file with figures, I get a crash and then this message:
Warning: MATLAB previously crashed due to a low-level graphics error. To prevent another crash in this session, MATLAB is using software OpenGL instead of using your graphics hardware. To save this setting for future sessions, use the opengl('save', 'software') command. For more information, see Resolving Low-Level Graphics Issues.
If I use command opengl('save', 'software') then the .m file runs Ok.
We added this command to our .exe but it's still not running on my PC as expected. As Deepak mentioned, if we don't generate figures the .exe runs Ok, but even if we just generate a blank figure it doesn't run.
Do you know how we can resolve this?
Thanks,
Matt
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!