Matlab has encountered an internal problem and needs to close ошибка

First of all, I am aware that there is a similar question here, but I read it and it concerns a different problem. Moving on to my problem, every time I am compiling a C file which is used from a

First of all, I am aware that there is a similar question here, but I read it and it concerns a different problem. Moving on to my problem, every time I am compiling a C file which is used from a function I get the error «MATLAB encountered an internal problem and needs to close». The compiling is done successfully by «Clang» on Mavericks OS X. Here is a screenshot of the error. More details (Matlab report etc.) can be, of course, provided upon request if one needs them to resolve the error.
Screenshot

The files can also be provided.

asked Dec 8, 2014 at 14:28

azal's user avatar

This is an known issue. Try this:

  1. Identify the location where MATLAB is installed
  2. Navigate to the sys/os/glnxa64 directory within this installation folder
  3. Rename libstdc++.so.6 library to libstdc++.so.6.old

Source: from MATWORK, it works for me

answered Mar 17, 2016 at 7:41

thanhtang's user avatar

thanhtangthanhtang

8461 gold badge9 silver badges15 bronze badges

That error is not because of the compiler. It is due to a segmentation fault once you run the MEX code. Somewhere in that code, you are accessing memory that you shouldn’t be allowed to access.

I suggest you debug your MATLAB code. Check out my post here to figure out how to debug your MEX code depending on your operating system.

Preventing a MEX file from crashing in MATLAB

Community's user avatar

answered Dec 8, 2014 at 15:07

rayryeng's user avatar

rayryengrayryeng

102k22 gold badges185 silver badges189 bronze badges

10

Hello! I have the same internal problem. Please help me to resolve it..

«MATLAB crash file:C:Users1AppDataLocalTempmatlab_crash_dump.8512-1:

————————————————————————

Access violation detected at Tue Apr 03 16:21:49 2018

————————————————————————

Configuration:

Crash Decoding : Disabled

Crash Mode : continue (default)

Current Graphics Driver: Unknown software

Default Encoding : windows-1251

Graphics card 1 : Intel Corporation ( 0x8086 ) Mobile Intel(R) 4 Series Express Chipset Family (Microsoft Corporation — WDDM 1.1) Version 8.15.10.2702

Graphics card 2 : Intel Corporation ( 0x8086 ) Mobile Intel(R) 4 Series Express Chipset Family (Microsoft Corporation — WDDM 1.1) Version 8.15.10.2702

Host Name : 1-ПК

MATLAB Architecture : win32

MATLAB Root : C:Program FilesMATLAB2015aMATLAB Production ServerR2015a

MATLAB Version : 8.5.0.197613 (R2015a)

OpenGL : software

Operating System : Майкрософт Windows 10 Pro

Processor ID : x86 Family 6 Model 23 Stepping 10, GenuineIntel

Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode

Window System : Version 10.0 (Build 16299)

Fault Count: 1

Abnormal termination:

Access violation

Register State (from fault):

EAX = 00000000 EBX = 00000000

ECX = 00000000 EDX = 095c8914

ESP = 00c22b84 EBP = 00c22b94

ESI = 082cb800 EDI = 0fe11930

EIP = 093c4aec EFL = 00010246

CS = 0000001b DS = 00000023 SS = 00000023

ES = 00000023 FS = 0000003b GS = 00000000

Stack Trace (from fault):

[ 0] 0x093c4aec C:Program FilesMATLAB2015aMATLAB Production ServerR2015asysjavajrewin32jrebinclientjvm.dll+00805612 JNI_GetCreatedJavaVMs+00023372

[ 1] 0x0921f99a C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32jmi.dll+00326042 mljGetArrayLength+00000026

[ 2] 0x303da683 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+00370307 PopupMenu::setUDI+00010883

[ 3] 0x303da1e0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+00369120 PopupMenu::setUDI+00009696

[ 4] 0x303d9c13 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+00367635 PopupMenu::setUDI+00008211

[ 5] 0x3048bbb0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+01096624 DAWorkspaceAdapterFactory::releaseWorkspaceAdapter+00194176

[ 6] 0x303ee17f C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+00450943 DASCreateDialog+00006911

[ 7] 0x303ed476 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+00447606 DASCreateDialog+00003574

[ 8] 0x04b10bf8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32udd.dll+00199672 UDClass::createObject+00000152

[ 9] 0x7b28ac3d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32udd_mi.dll+00371773 init__udd_mi+00007181

[ 10] 0x7b28a971 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32udd_mi.dll+00371057 init__udd_mi+00006465

[ 11] 0x09c1b99a C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+01161626 QueryMLFcnTable_mcos_impl+00762346

[ 12] 0x09c4ff48 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+01376072 QueryMLFcnTable_mcos_impl+00976792

[ 13] 0x1000ebf8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00060408 Mfh_MATLAB_fn::dispatch_fh+00000408

[ 14] 0x09b4a310 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00303888

[ 15] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[ 16] 0x027c4ff8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00217080 inPathNotification::function_delete_notification+00174312

[ 17] 0x027c5b6e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00220014 inPathNotification::function_delete_notification+00177246

[ 18] 0x02843997 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735639 MathWorks::MException::MExceptionEnvelope::GetStack+00000791

[ 19] 0x028437b0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735152 MathWorks::MException::MExceptionEnvelope::GetStack+00000304

[ 20] 0x027c318d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00209293 inPathNotification::function_delete_notification+00166525

[ 21] 0x027c2144 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00205124 inPathNotification::function_delete_notification+00162356

[ 22] 0x02865dea C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00876010 inIs_ws_variable+00001306

[ 23] 0x1000e508 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058632 Mfh_file::dispatch_fh_impl+00000600

[ 24] 0x1000e2ab C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058027 Mfh_file::dispatch_fh+00000027

[ 25] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[ 26] 0x09b22178 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00139640

[ 27] 0x09b21f09 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00139017

[ 28] 0x09b216db C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00136923

[ 29] 0x09b1611e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00090398

[ 30] 0x09b14d1d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00085277

[ 31] 0x09b247f6 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00149494

[ 32] 0x09ba98b8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00694456 QueryMLFcnTable_mcos_impl+00295176

[ 33] 0x09b201fd C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00131581

[ 34] 0x09b21572 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00136562

[ 35] 0x1000ebf8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00060408 Mfh_MATLAB_fn::dispatch_fh+00000408

[ 36] 0x09b4a310 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00303888

[ 37] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[ 38] 0x027e0a44 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00330308 inClearArrayInCurrentWS+00040420

[ 39] 0x027e0285 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00328325 inClearArrayInCurrentWS+00038437

[ 40] 0x027c1de1 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00204257 inPathNotification::function_delete_notification+00161489

[ 41] 0x02991bf9 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+02104313 inPathNotification::function_rebind_notification+00264745

[ 42] 0x027c2338 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00205624 inPathNotification::function_delete_notification+00162856

[ 43] 0x027ca7ae C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00239534 inPathNotification::function_delete_notification+00196766

[ 44] 0x027c5a3b C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00219707 inPathNotification::function_delete_notification+00176939

[ 45] 0x02843997 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735639 MathWorks::MException::MExceptionEnvelope::GetStack+00000791

[ 46] 0x028437b0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735152 MathWorks::MException::MExceptionEnvelope::GetStack+00000304

[ 47] 0x027c318d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00209293 inPathNotification::function_delete_notification+00166525

[ 48] 0x027c2144 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00205124 inPathNotification::function_delete_notification+00162356

[ 49] 0x02865dea C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00876010 inIs_ws_variable+00001306

[ 50] 0x1000e508 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058632 Mfh_file::dispatch_fh_impl+00000600

[ 51] 0x1000e2ab C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058027 Mfh_file::dispatch_fh+00000027

[ 52] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[ 53] 0x09b22178 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00139640

[ 54] 0x09b15e25 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00089637

[ 55] 0x09b14d1d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00085277

[ 56] 0x09b0e9d0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00059856

[ 57] 0x09b13816 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00079894

[ 58] 0x027d51f0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00283120 _constructor_lm_m+00022416

[ 59] 0x027d4d95 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00282005 _constructor_lm_m+00021301

[ 60] 0x1000ee58 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00061016 mdLogging::log_function_exit+00000104

[ 61] 0x1000e8a8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059560 Mfunction_handle::dispatch+00000424

[ 62] 0x027c4ff8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00217080 inPathNotification::function_delete_notification+00174312

[ 63] 0x027c5b6e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00220014 inPathNotification::function_delete_notification+00177246

[ 64] 0x02843997 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735639 MathWorks::MException::MExceptionEnvelope::GetStack+00000791

[ 65] 0x028437b0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00735152 MathWorks::MException::MExceptionEnvelope::GetStack+00000304

[ 66] 0x027c318d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00209293 inPathNotification::function_delete_notification+00166525

[ 67] 0x027c2144 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00205124 inPathNotification::function_delete_notification+00162356

[ 68] 0x02865dea C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00876010 inIs_ws_variable+00001306

[ 69] 0x1000e508 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058632 Mfh_file::dispatch_fh_impl+00000600

[ 70] 0x1000e2ab C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00058027 Mfh_file::dispatch_fh+00000027

[ 71] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[ 72] 0x09b22178 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00139640

[ 73] 0x09b15e25 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00089637

[ 74] 0x09b14d1d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00085277

[ 75] 0x09b4e759 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00321369

[ 76] 0x09b4e69a C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00321178

[ 77] 0x09b4e624 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00321060

[ 78] 0x00de4396 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos.dll+00017302 omCallMethod+00000038

[ 79] 0x3de423e7 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_diagnostic_mi.dll+00140263 sl_diagnostic_mi::utils::GeneralUtil::dispatchMsgToM+00003735

[ 80] 0x36528894 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_diagnostic_ui.dll+00034964 QueryMLFcnTable_sl_diagnostic_ui+00014580

[ 81] 0x6e3dc0c7 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00049351 sl_messaging::interception::MVInterceptor::intercept+00000279

[ 82] 0x6e3fd058 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00184408 sl_messaging::utils::Defines::NAGCTLR_AS_CALLER+00003192

[ 83] 0x6e3f67be C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00157630 sl_messaging::intf::SimulinkOutput::internalModelRename+00000190

[ 84] 0x6e45fba0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00064416 slmsgmgr::message_manager::MessageSinkUC::operator=+00000368

[ 85] 0x6e460c1e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00068638 slmsgmgr::message_manager::MessageManagerUC::getSink+00000574

[ 86] 0x6e464a2b C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00084523 slmsgmgr::message_manager::MessageRecordUC::getWideCharRecord+00011611

[ 87] 0x6e462672 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00075378 slmsgmgr::message_manager::MessageRecordUC::getWideCharRecord+00002466

[ 88] 0x6e462f1a C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00077594 slmsgmgr::message_manager::MessageRecordUC::getWideCharRecord+00004682

[ 89] 0x6e466552 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00091474 slmsgmgr::message_manager::MessageRecordUC::getWideCharRecord+00018562

[ 90] 0x0335a6c0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32boost_log-vc110-mt-1_49.dll+00042688 boost::log2_mt_nt5::basic_core<char>::push_record+00000320

[ 91] 0x6e45d0ed C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00053485 slmsgmgr::message_manager::MessageRecord<wchar_t>::operator=+00020061

[ 92] 0x6e460d86 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32message_manager.dll+00068998 slmsgmgr::message_manager::MessageManagerUC::pushRecord+00000022

[ 93] 0x6e3fde8e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00188046 sl_messaging::utils::Defines::NAGCTLR_AS_CALLER+00006830

[ 94] 0x6e3f29a7 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00141735 sl_messaging::intf::SimulinkMessagingUtil::startStage+00000695

[ 95] 0x6e3f1fba C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_messaging.dll+00139194 sl_messaging::intf::SimulinkEventNotifier::notifyEventBegin+00000522

[ 96] 0x69bd1162 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32libmwsimulink.dll+00201058 ExitPauseInDebuggerMenuSim+00001874

[ 97] 0x6a2a0928 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32libmwsimulink.dll+07342376 SLGlue::simulationStartPauseContinue+00000232

[ 98] 0x63245bcf C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_editor.dll+00220111 Simulink::SLCommonDomain::simulationStartPauseContinue+00000015

[ 99] 0x629f5376 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_mi.dll+00086902 SLM3I::mi::initCosSFBlockOpenNotification+00027910

[100] 0x629f48ac C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_mi.dll+00084140 SLM3I::mi::initCosSFBlockOpenNotification+00025148

[101] 0x629e517a C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32sl_mi.dll+00020858

[102] 0x09b0a944 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00043332

[103] 0x09b15fa4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00090020

[104] 0x09b14d1d C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00085277

[105] 0x09b0e9d0 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00059856

[106] 0x09b13816 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00079894

[107] 0x09b12667 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00075367

[108] 0x1000ebf8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00060408 Mfh_MATLAB_fn::dispatch_fh+00000408

[109] 0x09b4a310 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32mcos_impl.dll+00303888

[110] 0x1000e9b4 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059828 Mfunction_handle::dispatch+00000692

[111] 0x1000e12e C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00057646 mdSetCurrentIntFcnIndexProtected::~mdSetCurrentIntFcnIndexProtected+00001918

[112] 0x7ddc3221 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32libmx.dll+00406049 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000033

[113] 0x028668bf C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00878783 inFullFevalFcn+00000127

[114] 0x1000ee58 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00061016 mdLogging::log_function_exit+00000104

[115] 0x1000e8a8 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_dispatcher.dll+00059560 Mfunction_handle::dispatch+00000424

[116] 0x028443e3 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00738275 inCallFcn+00000131

[117] 0x02844381 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00738177 inCallFcn+00000033

[118] 0x02844328 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00738088 inCallFcnWithTrap+00000136

[119] 0x028442c3 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32m_interpreter.dll+00737987 inCallFcnWithTrap+00000035

[120] 0x3059bcc9 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+02211017 SafeCallMatlab+00000153

[121] 0x3059253f C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+02172223 ActionSchema::invokeCallback+00000095

[122] 0x30599772 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+02201458 DigCallbackInvoker::invokeUDI+00000162

[123] 0x305996ab C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+02201259 DigDefaultCallbackInvoker::invoke+00000043

[124] 0x3062b7ad C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32dastudio.dll+02799533 DeferredManager::get_instance+00000125

[125] 0x7b7216ab C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32uiw.dll+00464555 UIW_AttachThreadInput+00000843

[126] 0x7b7210e7 C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32uiw.dll+00463079 wsd_to_MSW+00004039

[127] 0x7b72119b C:Program FilesMATLAB2015aMATLAB Production ServerR2015abinwin32uiw.dll+00463259 wsd_to_MSW+00004219

If this problem is reproducible, please submit a Service Request via:

http://www.mathworks.com/support/contact_us/

A technical support engineer might contact you with further information.

Thank you for your help.»

I’ve just installed the new MATLAB R2013b for 64bit Mac, and my OS is OS X 10.8.4. I’m running into a consistent problem that I never had with R2013a. When I run one of my scripts (see below), the entire script goes through OK, but then I keep getting an error message «MATLAB has encountered an internal problem and needs to close.» Then I have to shut MATLAB down.

I have a feeling that I’ve goofed somewhere on the installation since I’m new to MATLAB, but I’m not sure.

This exact same script still runs fine on R2013a, which I’ve yet to uninstall. The script (making use of Psychtoolbox) is an experiment which opens a screen, presents some text, presents an audio file, and requires the participant to respond with 6 keystrokes. This script only presents two audio files, since I’m just testing it.

All the loops seem to work on both versions of MATLAB, and the screen closes at the end (which only happens after 2 passes through the main loop). I take this to mean the script is working, but something in a post stage is causing issues.

Any and all ideas are much appreciated!

-Josh

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%  SCREEN & AUDIO SETUP %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%
%% SCREEN %%
%%%%%%%%%%%%

% Set up a nice blank screen.
whichScreen = 0;

% Full Screen mode
%window = Screen(whichScreen, 'OpenWindow');

% Small screen mode used for code testing
window = Screen('OpenWindow',0, [450 450 500], [5,5, 550,550]);

white = WhiteIndex(window); % pixel value for white
Screen(window, 'FillRect', white);
Screen(window, 'Flip');

% Set global text size for the display.
Screen('TextSize', window, 15);
Screen(window,'TextFont','Arial');
Screen('TextStyle', window, 0)


%%%%%%%%%%%
%% AUDIO %%
%%%%%%%%%%%

% Set initial audio parameters:
nrchannels = 1; % All stimuli are mono-sounds.
freq = 44100;

% Initialize sound driver.
InitializePsychSound;

try
    pahandle = PsychPortAudio('Open', [], [], 3, freq, nrchannels);
catch
    % If the above fails, use the audio device's standard frequency.
    psychlasterror('reset'); % I believe this some reseting of the error made in 'try'.
    pahandle = PsychPortAudio('Open', [], [], 3, [], nrchannels);
end



%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%
%%%%% MAIN LOOP %%%%%
%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%


home = '/Users/josh/Dropbox/Beverlab/Fall_2013_Study/Design/Matlab/'

SampleExperiment = {strcat(home,'Stimuli/tokensA/gipa_mono.wav'),...
    strcat(home,'Stimuli/tokensB/gabo_mono.wav')};


timeLimit = 10; % Set up the time limit.
ans = 0;  % This is used to track whether or not the participant answered.
numStim = 2; % Just using 2 right now to test the code

ListenChar(0);

for i=1:numStim;
    token = char(SampleExperiment(1,randi([1,2]))); % randomly select a wave file from 'SampleExperiment' and assign it to 'token'
    [y,freq] = wavread(token); % Read the current wav file.
    wavedata = y';  % Transpose wav data.
    PsychPortAudio('FillBuffer', pahandle, wavedata); % fill the buffer, ready to play
    t1 = PsychPortAudio('Start', pahandle, 1, 0, 1); % play the wave file and get timestamp in one go

    while GetSecs<t1+timeLimit
        if ans<6
            [secs, keyCode, deltaSecs] = KbWait([],2,t1+timeLimit);
            if isempty(find(keyCode,1))
                break
            end
            if ~isempty(find(keyCode,1))
                ans=ans+1;
            end
        end
        if ans==6
            WaitSecs(rand*3+1);
            break
        end
    end
    if ans<6
        DrawFormattedText(window, 'Lets try that again...press 6 times', 'center', 'center');
        Screen(window, 'Flip');
        WaitSecs(1);
        Screen(window, 'FillRect', white);
        Screen(window, 'Flip');

        [y,freq] = wavread(token); % Read the current wav file.
        wavedata = y';  % Transpose wav data.
        PsychPortAudio('FillBuffer', pahandle, wavedata); % fill the buffer, ready to play
        t1 = PsychPortAudio('Start', pahandle, 1, 0, 1); % play the wave file and get timestamp in one go

        while GetSecs<t1+timeLimit
            if ans<6
                [secs, keyCode, deltaSecs] = KbWait([],2,t1+timeLimit);
                if isempty(find(keyCode,1))
                    break
                end
                if ~isempty(find(keyCode,1))
                    ans=ans+1;
                end
            end
            if ans==6
                WaitSecs(rand*3+1);
                break
            end
        end
    end
end


Screen('CloseAll')   

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Matlab error using save
  • Mass effect modder game data not found как исправить
  • Mask handle error 61 resmaskhandleerror
  • Marubox m600r ошибка батареи
  • Marta mt 1963 ошибка e4

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии