Matlab 'internal problem' error when running scripts containing movies (GStreamer installed properly!)

Psychtoolbox version: 3.0.13 - Flavor: beta - Corresponds to SVN Revision 8129 but is *locally modified* !


GStreamer version: 1.10.0


Platform: Windows 10 Pro 64-bit


Hi all,

Whenever I run a script containing movies (e.g.  SimpleMovieDemo.m) I get the message “MATLAB had encountered an internal problem and needs to close”. When I click on details I get the text that I have included below. I have minimal knowledge of how programs work and I really have no idea from the text what the problem is. However, I have successfully installed Psychtoolbox before on other computers and have had no problems. I have installed GStreamer properly including all components. I’m not sure if this is relevant, but I have to include “Screen('Preference', 'SkipSyncTests', 1)” in all scripts because they won’t run otherwise. 


I would be extremely grateful for any help with this. I am using Psychtoolbox to run psychology experiments which contain video files and this issue is a massive inconvenience. 



Many thanks,


Maria



Error details: 



MATLAB crash file:C:\Users\Maria\AppData\Local\Temp\matlab_crash_dump.4604-1:



------------------------------------------------------------------------

          Access violation detected at Sun Nov 20 13:44:45 2016

------------------------------------------------------------------------


Configuration:

  Crash Decoding      : Disabled - No sandbox or build area path

  Crash Mode          : continue (default)

  Current Graphics Driver: Unknown hardware 

  Default Encoding    : windows-1252

  Deployed            : false

  Graphics card 1     : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 5500 Version 10.18.15.4268

  Graphics card 2     : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon R7 M265 Series Version 15.200.1045.0

  Host Name           : Maria-PC

  MATLAB Architecture : win64

  MATLAB Entitlement ID: 2916696

  MATLAB Root         : C:\Program Files\MATLAB\R2016b

  MATLAB Version      : 9.1.0.441655 (R2016b)

  OpenGL              : hardware

  Operating System    : Microsoft Windows 10 Pro

  Processor ID        : x86 Family 6 Model 61 Stepping 4, GenuineIntel

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

  Window System       : Version 10.0 (Build 14393)


Fault Count: 1



Abnormal termination:

Access violation


Register State (from fault):

  RAX = 000000008bc83708  RBX = 000000002b0b67b0

  RCX = 00000000ffffffff  RDX = 0000000000000001

  RSP = 00000000043fa8e0  RBP = 0000000000000006

  RSI = 000000008bc87000  RDI = 00000000087e45d9

 

   R8 = 0000000000000000   R9 = 000000002b5fdcf6

  R10 = ad302c647260612c  R11 = 8101010101010100

  R12 = 000000008bc8a0ee  R13 = 00000000087e4600

  R14 = 00000000087e45e2  R15 = 0000000000000000

 

  RIP = 000000008bc414aa  EFL = 00010206

 

   CS = 0033   FS = 0053   GS = 002b


Stack Trace (from fault):

[  0] 0x000000008bc414aa C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\libgstisomp4.dll+00005290

[  1] 0x000000000877ddb4 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00318900 gst_pipeline_get_latency+00002212

[  2] 0x000000000877f934 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00325940 gst_plugin_register_static_full+00003076

[  3] 0x000000000878b88f C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00374927 gst_query_set_context+00000575

[  4] 0x000000000878cdc4 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00380356 gst_registry_remove_plugin+00002020

[  5] 0x000000000878ce36 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00380470 gst_registry_remove_plugin+00002134

[  6] 0x000000000878e868 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00387176 gst_update_registry+00002808

[  7] 0x0000000008731b90 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00007056

[  8] 0x0000000008e4b7f8      C:\gstreamer\1.0\x86_64\bin\libglib-2.0-0.dll+00243704 g_option_context_parse+00000856

[  9] 0x0000000008732527 C:\gstreamer\1.0\x86_64\bin\libgstreamer-1.0-0.dll+00009511 gst_init_check+00000215

[ 10] 0x00007ffe4fa36903 C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64+00289027 mexFunction+00239523

[ 11] 0x00007ffe4fa2dda2 C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64+00253346 mexFunction+00203842

[ 12] 0x00007ffe4fa2c852 C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64+00247890 mexFunction+00198386

[ 13] 0x00007ffe4fa5e4bf C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64+00451775 mexFunction+00402271

[ 14] 0x00007ffe4f9fc51e C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64+00050462 mexFunction+00000958

[ 15] 0x00000000fc5fc5d1 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00116177 mexRunMexFile+00000129

[ 16] 0x00000000fc5fb2e2 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00111330 mexFeature_mexver+00001794

[ 17] 0x00000000fc5fa506 C:\Program Files\MATLAB\R2016b\bin\win64\libmex.dll+00107782 mexUnlock+00020182

[ 18] 0x0000000015f746de C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00018142 Mfh_file::dispatch_fh_impl+00000434

[ 19] 0x0000000015f744b6 C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00017590 Mfh_file::dispatch_fh+00000062

[ 20] 0x0000000015f75827 C:\Program Files\MATLAB\R2016b\bin\win64\m_dispatcher.dll+00022567 Mfunction_handle::dispatch+00001015

[ 21] 0x0000000016f18c29 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00887849 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00798773

[ 22] 0x0000000016f2728f C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00946831 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00857755

[ 23] 0x0000000016f27b75 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00949109 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00860033

[ 24] 0x0000000016f29151 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00954705 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00865629

[ 25] 0x0000000016f29c95 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00957589 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00868513

[ 26] 0x0000000016f2932f C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00955183 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00866107

[ 27] 0x0000000016f2940d C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00955405 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00866329

[ 28] 0x0000000016f18041 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00884801 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00795725

[ 29] 0x0000000016e99eab C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00368299 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00279223

[ 30] 0x0000000016e99740 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00366400 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00277324

[ 31] 0x0000000016e93f8f C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00343951 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00254875

[ 32] 0x0000000016e93aa1 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00342689 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00253613

[ 33] 0x0000000016e93991 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00342417 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00253341

[ 34] 0x00000000170203e9 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+01967081 boost::serialization::singleton<boost::archive::detail::oserializer<boost::archive::polymorphic_oarchive,foundation::msg_svc::eventmgr::BaseEvent> >::get_instance+00003353

[ 35] 0x0000000017020372 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+01966962 boost::serialization::singleton<boost::archive::detail::oserializer<boost::archive::polymorphic_oarchive,foundation::msg_svc::eventmgr::BaseEvent> >::get_instance+00003234

[ 36] 0x0000000016ee2a61 C:\Program Files\MATLAB\R2016b\bin\win64\m_lxe.dll+00666209 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00577133

[ 37] 0x0000000016b4b3bd C:\Program Files\MATLAB\R2016b\bin\win64\m_interpreter.dll+00504765 inEvalCmdWithLocalReturn+00000065

[ 38] 0x00000000fb608ced C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00101613 mnGetPrompt+00012957

[ 39] 0x00000000fb609ba3 C:\Program Files\MATLAB\R2016b\bin\win64\libmwbridge.dll+00105379 mnParser+00001091

[ 40] 0x0000000016986841   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00223297 mcr::runtime::setInterpreterThreadToCurrent+00025585

[ 41] 0x00000000169857d7   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00219095 mcr::runtime::setInterpreterThreadToCurrent+00021383

[ 42] 0x0000000016985853   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00219219 mcr::runtime::setInterpreterThreadToCurrent+00021507

[ 43] 0x0000000016986141   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00221505 mcr::runtime::setInterpreterThreadToCurrent+00023793

[ 44] 0x00000000fd01d347   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00578375 iqm::UserEvalPlugin::pre+00030679

[ 45] 0x00000000fd029e7c   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00630396 iqm::UserEvalPlugin::pre+00082700

[ 46] 0x00000000fd017480   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00554112 iqm::UserEvalPlugin::pre+00006416

[ 47] 0x00000000fd02c99a   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00641434 iqm::UserEvalPlugin::pre+00093738

[ 48] 0x00000000fcff9a37   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432695 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000727

[ 49] 0x00000000fcffa08f   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00434319 iqm::PackagedTaskPlugin::execute+00000575

[ 50] 0x00000000fcff9aa9   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00432809 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000841

[ 51] 0x00000000fcff9f04   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00433924 iqm::PackagedTaskPlugin::execute+00000180

[ 52] 0x00000000fcfd42fa   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00279290 iqm::Iqm::setupIqmFcnPtrs+00071530

[ 53] 0x00000000fcfd41d3   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00278995 iqm::Iqm::setupIqmFcnPtrs+00071235

[ 54] 0x00000000fcfb9e5a   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00171610 iqm::Iqm::deliver+00003274

[ 55] 0x00000000fcfbad2f   C:\Program Files\MATLAB\R2016b\bin\win64\iqm.dll+00175407 iqm::Iqm::deliver+00007071

[ 56] 0x0000000100108173 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01147251 services::system_events::PpeDispatchHook::dispatchOne+00019059

[ 57] 0x000000010010c3a3 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01164195 sysq::addProcessPendingEventsUnitTestHook+00001923

[ 58] 0x000000010010c580 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01164672 sysq::addProcessPendingEventsUnitTestHook+00002400

[ 59] 0x000000010010d685 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01169029 sysq::getCondition+00002917

[ 60] 0x000000010010e4b2 C:\Program Files\MATLAB\R2016b\bin\win64\libmwservices.dll+01172658 svWS_ProcessPendingEvents+00000162

[ 61] 0x0000000016986b7d   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00224125 mcr::runtime::setInterpreterThreadToCurrent+00026413

[ 62] 0x000000001698726a   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00225898 mcr::runtime::setInterpreterThreadToCurrent+00028186

[ 63] 0x000000001697e385   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00189317 mcr_process_events+00010293

[ 64] 0x00000000169802d2   C:\Program Files\MATLAB\R2016b\bin\win64\mcr.dll+00197330 mcr_process_events+00018306

[ 65] 0x000000001599bd0e C:\Program Files\MATLAB\R2016b\bin\win64\MVMLocal.dll+00245006 mvm_server::inproc::LocalFactory::terminate+00070846

[ 66] 0x00000000fa942cd9   C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01125593 mvm::detail::initLocalMvmHack+00000521

[ 67] 0x00000000fa9432a5   C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01127077 mvm::detail::SessionImpl::privateSession+00000373

[ 68] 0x00000000fa9434b1   C:\Program Files\MATLAB\R2016b\bin\win64\mvm.dll+01127601 mvm::detail::SessionImpl::privateSession+00000897

[ 69] 0x0000000140006fd5 C:\Program Files\MATLAB\R2016b\bin\win64\MATLAB.exe+00028629

[ 70] 0x0000000140007661 C:\Program Files\MATLAB\R2016b\bin\win64\MATLAB.exe+00030305

[ 71] 0x00007ffe85198364                   C:\WINDOWS\System32\KERNEL32.DLL+00033636 BaseThreadInitThunk+00000020

[ 72] 0x00007ffe85de5e91                      C:\WINDOWS\SYSTEM32\ntdll.dll+00417425 RtlUserThreadStart+00000033



This error was detected while a MEX-file was running. If the MEX-file

is not an official MathWorks function, please examine its source code

for errors. Please consult the External Interfaces Guide for information

on debugging MEX-files.


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.



This error has come up every now and then and extensive investigations have not yielded a solution. Search the forum. From what i recall, the problem is specific to some video codecs, so try reencoding your videos with a differnt one. Or switch to linux where this problem does not occur.

Cheers,
Dee

On Sun, Nov 20, 2016 at 3:32 PM, maria.tsant@... [PSYCHTOOLBOX] <PSYCHTOOLBOX@yahoogroups.com> wrote:


Psychtoolbox version: 3.0.13 - Flavor: beta - Corresponds to SVN Revision 8129 but is *locally modified* !


GStreamer version: 1.10.0


Platform: Windows 10 Pro 64-bit


Hi all,

Whenever I run a script containing movies (e.g. SimpleMovieDemo.m) I get the message “MATLAB had encountered an internal problem and needs to close”. When I click on details I get the text that I have included below. I have minimal knowledge of how programs work and I really have no idea from the text what the problem is. However, I have successfully installed Psychtoolbox before on other computers and have had no problems. I have installed GStreamer properly including all components. I’m not sure if this is relevant, but I have to include “Screen('Preference', 'SkipSyncTests', 1)” in all scripts because they won’t run otherwise.


I would be extremely grateful for any help with this. I am using Psychtoolbox to run psychology experiments which contain video files and this issue is a massive inconvenience.



Many thanks,


Maria



Error details:



MATLAB crash file:C:\Users\Maria\AppData\ Local\Temp\matlab_crash_dump. 4604-1:



------------------------------ ------------------------------ ------------

Access violation detected at Sun Nov 20 13:44:45 2016

------------------------------ ------------------------------ ------------


Configuration:

Crash Decoding : Disabled - No sandbox or build area path

Crash Mode : continue (default)

Current Graphics Driver: Unknown hardware

Default Encoding : windows-1252

Deployed : false

Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 5500 Version 10.18.15.4268

Graphics card 2 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon R7 M265 Series Version 15.200.1045.0

Host Name : Maria-PC

MATLAB Architecture : win64

MATLAB Entitlement ID: 2916696

MATLAB Root : C:\Program Files\MATLAB\R2016b

MATLAB Version : 9.1.0.441655 (R2016b)

OpenGL : hardware

Operating System : Microsoft Windows 10 Pro

Processor ID : x86 Family 6 Model 61 Stepping 4, GenuineIntel

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

Window System : Version 10.0 (Build 14393)


Fault Count: 1



Abnormal termination:

Access violation


Register State (from fault):

RAX = 000000008bc83708 RBX = 000000002b0b67b0

RCX = 00000000ffffffff RDX = 0000000000000001

RSP = 00000000043fa8e0 RBP = 0000000000000006

RSI = 000000008bc87000 RDI = 00000000087e45d9

R8 = 0000000000000000 R9 = 000000002b5fdcf6

R10 = ad302c647260612c R11 = 8101010101010100

R12 = 000000008bc8a0ee R13 = 00000000087e4600

R14 = 00000000087e45e2 R15 = 0000000000000000

RIP = 000000008bc414aa EFL = 00010206

CS = 0033 FS = 0053 GS = 002b


Stack Trace (from fault):

[ 0] 0x000000008bc414aa C:\gstreamer\1.0\x86_64\lib\ gstreamer-1.0\libgstisomp4. dll+00005290

[ 1] 0x000000000877ddb4 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00318900 gst_pipeline_get_latency+ 00002212

[ 2] 0x000000000877f934 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00325940 gst_plugin_register_static_ full+00003076

[ 3] 0x000000000878b88f C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00374927 gst_query_set_context+00000575

[ 4] 0x000000000878cdc4 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00380356 gst_registry_remove_plugin+ 00002020

[ 5] 0x000000000878ce36 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00380470 gst_registry_remove_plugin+ 00002134

[ 6] 0x000000000878e868 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00387176 gst_update_registry+00002808

[ 7] 0x0000000008731b90 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00007056

[ 8] 0x0000000008e4b7f8 C:\gstreamer\1.0\x86_64\bin\ libglib-2.0-0.dll+00243704 g_option_context_parse+ 00000856

[ 9] 0x0000000008732527 C:\gstreamer\1.0\x86_64\bin\ libgstreamer-1.0-0.dll+ 00009511 gst_init_check+00000215

[ 10] 0x00007ffe4fa36903 C:\toolbox\Psychtoolbox\ PsychBasic\ MatlabWindowsFilesR2007a\ Screen.mexw64+00289027 mexFunction+00239523

[ 11] 0x00007ffe4fa2dda2 C:\toolbox\Psychtoolbox\ PsychBasic\ MatlabWindowsFilesR2007a\ Screen.mexw64+00253346 mexFunction+00203842

[ 12] 0x00007ffe4fa2c852 C:\toolbox\Psychtoolbox\ PsychBasic\ MatlabWindowsFilesR2007a\ Screen.mexw64+00247890 mexFunction+00198386

[ 13] 0x00007ffe4fa5e4bf C:\toolbox\Psychtoolbox\ PsychBasic\ MatlabWindowsFilesR2007a\ Screen.mexw64+00451775 mexFunction+00402271

[ 14] 0x00007ffe4f9fc51e C:\toolbox\Psychtoolbox\ PsychBasic\ MatlabWindowsFilesR2007a\ Screen.mexw64+00050462 mexFunction+00000958

[ 15] 0x00000000fc5fc5d1 C:\Program Files\MATLAB\R2016b\bin\win64\ libmex.dll+00116177 mexRunMexFile+00000129

[ 16] 0x00000000fc5fb2e2 C:\Program Files\MATLAB\R2016b\bin\win64\ libmex.dll+00111330 mexFeature_mexver+00001794

[ 17] 0x00000000fc5fa506 C:\Program Files\MATLAB\R2016b\bin\win64\ libmex.dll+00107782 mexUnlock+00020182

[ 18] 0x0000000015f746de C:\Program Files\MATLAB\R2016b\bin\win64\ m_dispatcher.dll+00018142 Mfh_file::dispatch_fh_impl+ 00000434

[ 19] 0x0000000015f744b6 C:\Program Files\MATLAB\R2016b\bin\win64\ m_dispatcher.dll+00017590 Mfh_file::dispatch_fh+00000062

[ 20] 0x0000000015f75827 C:\Program Files\MATLAB\R2016b\bin\win64\ m_dispatcher.dll+00022567 Mfunction_handle::dispatch+ 00001015

[ 21] 0x0000000016f18c29 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00887849 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00798773

[ 22] 0x0000000016f2728f C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00946831 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00857755

[ 23] 0x0000000016f27b75 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00949109 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00860033

[ 24] 0x0000000016f29151 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00954705 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00865629

[ 25] 0x0000000016f29c95 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00957589 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00868513

[ 26] 0x0000000016f2932f C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00955183 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00866107

[ 27] 0x0000000016f2940d C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00955405 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00866329

[ 28] 0x0000000016f18041 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00884801 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00795725

[ 29] 0x0000000016e99eab C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00368299 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00279223

[ 30] 0x0000000016e99740 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00366400 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00277324

[ 31] 0x0000000016e93f8f C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00343951 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00254875

[ 32] 0x0000000016e93aa1 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00342689 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00253613

[ 33] 0x0000000016e93991 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00342417 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00253341

[ 34] 0x00000000170203e9 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+01967081 boost::serialization:: singleton<boost::archive:: detail::oserializer<boost:: archive::polymorphic_oarchive, foundation::msg_svc::eventmgr: :BaseEvent> >::get_instance+00003353

[ 35] 0x0000000017020372 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+01966962 boost::serialization:: singleton<boost::archive:: detail::oserializer<boost:: archive::polymorphic_oarchive, foundation::msg_svc::eventmgr: :BaseEvent> >::get_instance+00003234

[ 36] 0x0000000016ee2a61 C:\Program Files\MATLAB\R2016b\bin\win64\ m_lxe.dll+00666209 boost::serialization:: singleton<boost::archive:: detail::iserializer<boost:: archive::binaryTerm_iarchive, ir::IrTree> >::get_instance+00577133

[ 37] 0x0000000016b4b3bd C:\Program Files\MATLAB\R2016b\bin\win64\ m_interpreter.dll+00504765 inEvalCmdWithLocalReturn+ 00000065

[ 38] 0x00000000fb608ced C:\Program Files\MATLAB\R2016b\bin\win64\ libmwbridge.dll+00101613 mnGetPrompt+00012957

[ 39] 0x00000000fb609ba3 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwbridge.dll+00105379 mnParser+00001091

[ 40] 0x0000000016986841 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00223297 mcr::runtime:: setInterpreterThreadToCurrent+ 00025585

[ 41] 0x00000000169857d7 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00219095 mcr::runtime:: setInterpreterThreadToCurrent+ 00021383

[ 42] 0x0000000016985853 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00219219 mcr::runtime:: setInterpreterThreadToCurrent+ 00021507

[ 43] 0x0000000016986141 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00221505 mcr::runtime:: setInterpreterThreadToCurrent+ 00023793

[ 44] 0x00000000fd01d347 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00578375 iqm::UserEvalPlugin::pre+ 00030679

[ 45] 0x00000000fd029e7c C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00630396 iqm::UserEvalPlugin::pre+ 00082700

[ 46] 0x00000000fd017480 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00554112 iqm::UserEvalPlugin::pre+ 00006416

[ 47] 0x00000000fd02c99a C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00641434 iqm::UserEvalPlugin::pre+ 00093738

[ 48] 0x00000000fcff9a37 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00432695 iqm::PackagedTaskPlugin:: PackagedTaskPlugin+00000727

[ 49] 0x00000000fcffa08f C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00434319 iqm::PackagedTaskPlugin:: execute+00000575

[ 50] 0x00000000fcff9aa9 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00432809 iqm::PackagedTaskPlugin:: PackagedTaskPlugin+00000841

[ 51] 0x00000000fcff9f04 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00433924 iqm::PackagedTaskPlugin:: execute+00000180

[ 52] 0x00000000fcfd42fa C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00279290 iqm::Iqm::setupIqmFcnPtrs+ 00071530

[ 53] 0x00000000fcfd41d3 C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00278995 iqm::Iqm::setupIqmFcnPtrs+ 00071235

[ 54] 0x00000000fcfb9e5a C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00171610 iqm::Iqm::deliver+00003274

[ 55] 0x00000000fcfbad2f C:\Program Files\MATLAB\R2016b\bin\win64\ iqm.dll+00175407 iqm::Iqm::deliver+00007071

[ 56] 0x0000000100108173 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwservices.dll+01147251 services::system_events:: PpeDispatchHook::dispatchOne+ 00019059

[ 57] 0x000000010010c3a3 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwservices.dll+01164195 sysq:: addProcessPendingEventsUnitTes tHook+00001923

[ 58] 0x000000010010c580 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwservices.dll+01164672 sysq:: addProcessPendingEventsUnitTes tHook+00002400

[ 59] 0x000000010010d685 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwservices.dll+01169029 sysq::getCondition+00002917

[ 60] 0x000000010010e4b2 C:\Program Files\MATLAB\R2016b\bin\win64\ libmwservices.dll+01172658 svWS_ProcessPendingEvents+ 00000162

[ 61] 0x0000000016986b7d C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00224125 mcr::runtime:: setInterpreterThreadToCurrent+ 00026413

[ 62] 0x000000001698726a C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00225898 mcr::runtime:: setInterpreterThreadToCurrent+ 00028186

[ 63] 0x000000001697e385 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00189317 mcr_process_events+00010293

[ 64] 0x00000000169802d2 C:\Program Files\MATLAB\R2016b\bin\win64\ mcr.dll+00197330 mcr_process_events+00018306

[ 65] 0x000000001599bd0e C:\Program Files\MATLAB\R2016b\bin\win64\ MVMLocal.dll+00245006 mvm_server::inproc:: LocalFactory::terminate+ 00070846

[ 66] 0x00000000fa942cd9 C:\Program Files\MATLAB\R2016b\bin\win64\ mvm.dll+01125593 mvm::detail::initLocalMvmHack+ 00000521

[ 67] 0x00000000fa9432a5 C:\Program Files\MATLAB\R2016b\bin\win64\ mvm.dll+01127077 mvm::detail::SessionImpl:: privateSession+00000373

[ 68] 0x00000000fa9434b1 C:\Program Files\MATLAB\R2016b\bin\win64\ mvm.dll+01127601 mvm::detail::SessionImpl:: privateSession+00000897

[ 69] 0x0000000140006fd5 C:\Program Files\MATLAB\R2016b\bin\win64\ MATLAB.exe+00028629

[ 70] 0x0000000140007661 C:\Program Files\MATLAB\R2016b\bin\win64\ MATLAB.exe+00030305

[ 71] 0x00007ffe85198364 C:\WINDOWS\System32\KERNEL32. DLL+00033636 BaseThreadInitThunk+00000020

[ 72] 0x00007ffe85de5e91 C:\WINDOWS\SYSTEM32\ntdll. dll+00417425 RtlUserThreadStart+00000033



This error was detected while a MEX-file was running. If the MEX-file

is not an official MathWorks function, please examine its source code

for errors. Please consult the External Interfaces Guide for information

on debugging MEX-files.


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.






Using a different video codec just changes the odds of Matlab crashing, as is the case with many other "fixes". Your safest option is running the script in a -nojvm Matlab environment, but then your script cannot use Matlab GUI elements like dialog boxes or figures (at least not with newer Matlab versions). If that is a problem, try -nodesktop instead of -nojvm.
You might want to add something like the following at the beginning of your script. This code snippet causes the script to be restarted in a temporary -nodesktop environment if it was called from a normal Matlab command window or from the editor, and passes the textual output back to the command window of the "normal" Matlab environment. In this example, the script function has a string parameter 'subjectID' which has to be passed when restarting the script.

function MyScript(subjectID)
  if usejava('desktop')
    cmd = sprintf(['"diary cmd-output.txt;',...
                  'try,%s(''%s'');catch e,',...
                  msg=getReport(e,''extended'',''hyperlinks'',''on''); disp(msg); end;',...
                  'diary off; exit;"'], mfilename, subjectID);               
    system(['matlab -nosplash -minimize -nodesktop -r ' cmd]);
    type('cmd-output.txt');
    evalc('delete(''cmd-output.txt'')');
    commandwindow
    return
  end
  ...

           
Or the -nojvm version:
  if usejava('jvm')
    ...
    system(['matlab -nosplash -minimize -nojvm -r ' cmd]);
    ...
  end
       
What also should work with PTB 3.0.13 is running the code under 64-Bit Octave 4.0.x for Windows instead of Matlab. Octave's GUI doesn't have the same kind of trouble with GStreamer iirc. GUI programming capabilities of Octave are more restricted than Matlab atm. though.

-mario

XX-In PSYCHTOOLBOX@yahoogroups.com, <marc.repnow@...> wrote :

Using a different video codec just changes the odds of Matlab crashing, as is the case with many other "fixes". Your safest option is running the script in a -nojvm Matlab environment, but then your script cannot use Matlab GUI elements like dialog boxes or figures (at least not with newer Matlab versions). If that is a problem, try -nodesktop instead of -nojvm.
You might want to add something like the following at the beginning of your script. This code snippet causes the script to be restarted in a temporary -nodesktop environment if it was called from a normal Matlab command window or from the editor, and passes the textual output back to the command window of the "normal" Matlab environment. In this example, the script function has a string parameter 'subjectID' which has to be passed when restarting the script.

function MyScript(subjectID)
  if usejava('desktop')
    cmd = sprintf(['"diary cmd-output.txt;',...
                  'try,%s(''%s'');catch e,',...
                  msg=getReport(e,''extended'',''hyperlinks'',''on''); disp(msg); end;',...
                  'diary off; exit;"'], mfilename, subjectID);               
    system(['matlab -nosplash -minimize -nodesktop -r ' cmd]);
    type('cmd-output.txt');
    evalc('delete(''cmd-output.txt'')');
    commandwindow
    return
  end
  ...

           
Or the -nojvm version:
  if usejava('jvm')
    ...
    system(['matlab -nosplash -minimize -nojvm -r ' cmd]);
    ...
  end
       

Hi everyone,

 

Thank you for your responses, I really appreciate you taking the time to help. I tried many of the solutions suggested both by you and in the relevant threads at Github. What finally worked for me was converting my .mp4 video clips to the Theora format (.ogv) and installing Matlab 2014a.

 

Matlab 2015b would only play a few videos in the Theora format and then crash. The common solution of running Matlab from the command window with the -nojvm didn't work at all for me. I also tried installing Java 7 in addition to Java 8, but again this didn’t seem to make a difference.

 

Many thanks,

 

Maria

What exactly do you mean by "-nojvm didn't work at all". Did MATLAB crash because of the movie or did the script just not run because of other problems (e.g. because of being in the wrong directory)? Have you tried -nodesktop instead of -nojvm?


---In PSYCHTOOLBOX@yahoogroups.com, <maria.tsant@...> wrote :

Hi everyone,

 

Thank you for your responses, I really appreciate you taking the time to help. I tried many of the solutions suggested both by you and in the relevant threads at Github. What finally worked for me was converting my .mp4 video clips to the Theora format (.ogv) and installing Matlab 2014a.

 

Matlab 2015b would only play a few videos in the Theora format and then crash. The common solution of running Matlab from the command window with the -nojvm didn't work at all for me. I also tried installing Java 7 in addition to Java 8, but again this didn’t seem to make a difference.

 

Many thanks,

 

Maria