Matlab Generated exe stops and exits without error/warning

8 vues (au cours des 30 derniers jours)
Deepak challa
Deepak challa le 10 Juin 2015
Commenté : Matt Zivney le 18 Juin 2015
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 commentaires
Walter Roberson
Walter Roberson le 10 Juin 2015
C / C++ Redistributable for your compiler is not installed on the machines with the problem?
Deepak challa
Deepak challa le 17 Juin 2015
Are you suggesting to check the Visual Studio Installation options?

Connectez-vous pour commenter.

Réponses (2)

Deepak challa
Deepak challa le 10 Juin 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 le 17 Juin 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 commentaire
Matt Zivney
Matt Zivney le 18 Juin 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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by