Matlab Generated exe stops and exits without error/warning
조회 수: 8 (최근 30일)
이전 댓글 표시
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
Walter Roberson
2015년 6월 10일
C / C++ Redistributable for your compiler is not installed on the machines with the problem?
답변 (2개)
Deepak challa
2015년 6월 17일
댓글 수: 1
Matt Zivney
2015년 6월 18일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!