Matlab Generated exe stops and exits without error/warning

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

Sign in to comment.

Answers (2)

Deepak challa
Deepak challa on 10 Jun 2015
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 on 17 Jun 2015
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 Comment
Matt Zivney
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

Sign in to comment.

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!