my matlab keeps crashing
Show older comments
matlab keeps crashing when i run a specific code, this code works perfectly on other computers. my computer is not old or anything like that. i do not have eny errors in the code.
4 Comments
Geoff Hayes
on 7 Nov 2015
ali - what is the code that you are running? Please post the code or a sample that illustrates the crash. Also, please tell us which version of MATLAB you are using and the OS of the computer where the code is causing the crash, and tell us the same for the computer where the code does not cause a crash.
John D'Errico
on 7 Nov 2015
Well, we don't know that you don't have any errors. All we know is what you tell us. But that does not exclude the possibility of errors in your code. Is your code purely MATLAB, or do you have compiled code in there? Nor do we know what you mean by "crashing". Does MATLAB exit? Does it bring down your computer, causing it to reboot? Does it simply freeze things up, or appear to do so? There are a variety of reasons why any of these scenarios might happen.
So without more information, it is impossible to help you very much.
ali jumaa
on 9 Nov 2015
Edited: Walter Roberson
on 10 Nov 2015
Image Analyst
on 10 Nov 2015
If MATLAB itself crashes and says that "MATLAB has encountered and internal error and needs to close", then you really need to read my answer below again.
Answers (2)
Image Analyst
on 7 Nov 2015
1 vote
If it's MATLAB that's actually crashing, rather than your program throwing an error, see the FAQ: http://matlab.wikia.com/wiki/FAQ#After_installation.2C_MATLAB_crashes_or_gives_an_error_message_when_I_try_to_run_MATLAB.
Shameem Hasan
on 14 Oct 2018
0 votes
How can I solve this crash problem and run my codes?
3 Comments
Image Analyst
on 14 Oct 2018
Did you see my answer above? That's pretty much the only way. The Mathworks can help you get it working, not us non-Mathworks people here.
Patrick Vianello
on 2 Nov 2022
perhaps because there is NO answer in the above!
Walter Roberson
on 2 Nov 2022
The user's (2018) crash dumps all reported
Assertion in void __cdecl `anonymous-namespace'::mwJavaAbort(void) at b:\matlab\src\jmi\javainit.cpp line 1346:
[ 0] 0x000000001111462a C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin\win64\libmwfl.dll+00083498
and their hs_error_pid files all reported a java crash in
jogamp.nativewindow.windows.GDI.DescribePixelFormat1
This was a problem that happened to a number of people in different programs, in the 2017 / 2018 time frame.
According to one user, the key was to remove one of AMD driver management programs and install the driver manually; https://community.amd.com/t5/drivers-software/amd-driver-problem/td-p/474097
That fits in with the report at http://forum.salemthegame.com/viewtopic.php?f=10&t=6422 in which a user said that the AMD software was lying about the drivers being completely up to date, and that the problem was fixed for them by updating AMD graphics drivers.
@Patrick Vianello: @Image Analyst did provide an answer, above, namely to call Mathworks Support. The volunteers cannot be expected to debug Mathworks crashes -- we do not have access to the source code, and we probably do not run the same hardware and software combinations as the users that have the crash problems.
Categories
Find more on Startup and Shutdown 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!