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
Walter Roberson 2015-6-10
C / C++ Redistributable for your compiler is not installed on the machines with the problem?
Deepak challa
Deepak challa 2015-6-17
Are you suggesting to check the Visual Studio Installation options?

请先登录,再进行评论。

回答(2 个)

Deepak challa
Deepak challa 2015-6-10
Hello Salaheddin
I have tried it and i named it run.log, but no error shows up in there. I had put some debug messages to observe the progress before exit. My program has 4 iterations of an algorithm and log shows the messages for the 1st iteration and that is it - no error and the executable exits from task manager.
Thank you very much for your time and response.

Deepak challa
Deepak challa 2015-6-17
when I disable all the plots from the program, program completes without exiting abruptly on the PC where it did not work earlier. Not sure about why plots cause the *.exe to exit abruptly.
  1 个评论
Matt Zivney
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 CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by