error like disabled -NO sandbox or build area ath after runing a .m file

1 view (last 30 days)
The .m file is like this: M = intvar(9,9,'full');
S = [0,0,1,9,0,0,0,0,8;6,0,0,0,8,5,0,3,0;0,0,7,0,6,0,1,0,0;... 0,3,4,0,9,0,0,0,0;0,0,0,5,0,4,0,0,0;0,0,0,0,1,0,4,2,0;... 0,0,5,0,7,0,9,0,0;0,1,0,8,4,0,0,0,7;7,0,0,0,0,9,2,0,0]; fixed = find(S); F = [1 <= M <= 9, M(fixed) == S(fixed)];
for i = 1:3 for j = 1:3 block = M((i-1)*3+(1:3),(j-1)*3+(1:3)) F = [F, alldifferent(block)]; end end
for i = 1:9 F = [F, alldifferent(M(i,:))]; F = [F, alldifferent(M(:,i))]; end
F = [F, sum(M,1) == 45, sum(M,2) == 45]; optimize(F);
and the error is like this: MATLAB crash <file:C>:\Users\WUYOUW~1\AppData\Local\Temp\matlab_crash_dump.13928-1:
------------------------------------------------------------------------ Access violation detected at Wed Dec 6 16:35:52 2017 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled - No sandbox or build area path Crash Mode : continue (default) Current Graphics Driver: Unknown hardware Default Encoding : GBK Deployed : false Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce 940M Version 23.21.13.8831 (2017-11-14) Graphics card 2 : Intel Corporation ( 0x8086 ) Intel® HD Graphics 5500 Version 20.19.15.4531 (2016-9-29) Host Name : DESKTOP-LOSQTS4 MATLAB Architecture : win64 MATLAB Entitlement ID: 2791271 MATLAB Root : D:\Program Files\MATLAB\R2017b MATLAB Version : 9.3.0.713579 (R2017b) OpenGL : hardware Operating System : Microsoft Windows 10 教育版 Processor ID : x86 Family 6 Model 61 Stepping 4, GenuineIntel Virtual Machine : Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode Window System : Version 10.0 (Build 10586)
Fault Count: 1
Abnormal termination: Access violation
Register State (from fault): RAX = 0000000fffffffe0 RBX = 00000000c1a9e320 RCX = 0000000010d6a379 RDX = 000000003ee40230 RSP = 00000000045f7f10 RBP = 00000000045f7fc0 RSI = 0000000000000007 RDI = 0000000000000000
R8 = 00000000045f7fb0 R9 = 00007ffeeb1c0000
R10 = 00000000045f7f90 R11 = 00000000045f7fb0
R12 = 0000000000000000 R13 = 00000000cb3bbd48
R14 = 0000000043661d08 R15 = 000000009bdde0a0
RIP = 0000000010c4230f EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault): [ 0] 0x0000000010c4230f bin\win64\pgo\libmx.dll+00074511 intrusive_ptr_release+00000063 [ 1] 0x0000000019c3fab3 bin\win64\pgo\libmwlxetypes.dll+00064179 MathWorks::lxe::TypeExpressionContains+00000531 [ 2] 0x0000000019c3a842 bin\win64\pgo\libmwlxetypes.dll+00043074 MathWorks::lxe::NewConstantBool+00001466 [ 3] 0x00000000164231df bin\win64\pgo\m_lxe.dll+00602591 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00145435 [ 4] 0x0000000019c34f47 bin\win64\pgo\libmwlxetypes.dll+00020295 MathWorks::lxe::GetFunctionArguments+00000423 [ 5] 0x0000000016577fb5 bin\win64\pgo\m_lxe.dll+01998773 MathWorks::lxe::ShutdownLxeEngine+00291629 [ 6] 0x00000000163cabe7 bin\win64\pgo\m_lxe.dll+00240615 [ 7] 0x00000000163ce293 bin\win64\pgo\m_lxe.dll+00254611 [ 8] 0x00000000163cd44f bin\win64\pgo\m_lxe.dll+00250959 [ 9] 0x00000000163cd822 bin\win64\pgo\m_lxe.dll+00251938 [ 10] 0x000000001649331b bin\win64\pgo\m_lxe.dll+01061659 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00604503 [ 11] 0x000000001649ad46 bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778 [ 12] 0x000000001649a570 bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772 [ 13] 0x00000000163bfd9c bin\win64\pgo\m_lxe.dll+00195996 [ 14] 0x00000000163bf8e5 bin\win64\pgo\m_lxe.dll+00194789 [ 15] 0x00000000163bf944 bin\win64\pgo\m_lxe.dll+00194884 [ 16] 0x00000000156dca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835 [ 17] 0x00000000156dc6fa bin\win64\pgo\m_dispatcher.dll+00116474 Mfh_file::dispatch_fh_with_reuse+00000062 [ 18] 0x000000001649526f bin\win64\pgo\m_lxe.dll+01069679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612523 [ 19] 0x0000000016425413 bin\win64\pgo\m_lxe.dll+00611347 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00154191 [ 20] 0x0000000016423fc7 bin\win64\pgo\m_lxe.dll+00606151 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00148995 [ 21] 0x00000000164952fb bin\win64\pgo\m_lxe.dll+01069819 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612663 [ 22] 0x000000001654a000 bin\win64\pgo\m_lxe.dll+01810432 MathWorks::lxe::ShutdownLxeEngine+00103288 [ 23] 0x00000000163c7bd6 bin\win64\pgo\m_lxe.dll+00228310 [ 24] 0x0000000016584193 bin\win64\pgo\m_lxe.dll+02048403 MathWorks::lxe::ShutdownLxeEngine+00341259 [ 25] 0x0000000017a96421 bin\win64\pgo\m_lxe.dll+24142881 boost::serialization::singleton<boost::archive::detail::archive_serializer_map<boost::archive::binaryTerm_oarchive> >::get_instance+21807157 [ 26] 0x0000000016583a39 bin\win64\pgo\m_lxe.dll+02046521 MathWorks::lxe::ShutdownLxeEngine+00339377 [ 27] 0x00000000163cb3a6 bin\win64\pgo\m_lxe.dll+00242598 [ 28] 0x00000000163cbfb3 bin\win64\pgo\m_lxe.dll+00245683 [ 29] 0x00000000163cdff5 bin\win64\pgo\m_lxe.dll+00253941 [ 30] 0x00000000163cd44f bin\win64\pgo\m_lxe.dll+00250959 [ 31] 0x00000000163cd822 bin\win64\pgo\m_lxe.dll+00251938 [ 32] 0x000000001649331b bin\win64\pgo\m_lxe.dll+01061659 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00604503 [ 33] 0x000000001649ad46 bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778 [ 34] 0x000000001649a570 bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772 [ 35] 0x00000000163bfd9c bin\win64\pgo\m_lxe.dll+00195996 [ 36] 0x00000000163bf8e5 bin\win64\pgo\m_lxe.dll+00194789 [ 37] 0x00000000163bf944 bin\win64\pgo\m_lxe.dll+00194884 [ 38] 0x00000000156dca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835 [ 39] 0x00000000156dc6fa bin\win64\pgo\m_dispatcher.dll+00116474 Mfh_file::dispatch_fh_with_reuse+00000062 [ 40] 0x000000001649526f bin\win64\pgo\m_lxe.dll+01069679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612523 [ 41] 0x0000000016425413 bin\win64\pgo\m_lxe.dll+00611347 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00154191 [ 42] 0x0000000016423fc7 bin\win64\pgo\m_lxe.dll+00606151 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00148995 [ 43] 0x00000000164952fb bin\win64\pgo\m_lxe.dll+01069819 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612663 [ 44] 0x000000001654a000 bin\win64\pgo\m_lxe.dll+01810432 MathWorks::lxe::ShutdownLxeEngine+00103288 [ 45] 0x00000000163c7bd6 bin\win64\pgo\m_lxe.dll+00228310 [ 46] 0x0000000016584193 bin\win64\pgo\m_lxe.dll+02048403 MathWorks::lxe::ShutdownLxeEngine+00341259 [ 47] 0x00000000165840f9 bin\win64\pgo\m_lxe.dll+02048249 MathWorks::lxe::ShutdownLxeEngine+00341105 [ 48] 0x000000001658407d bin\win64\pgo\m_lxe.dll+02048125 MathWorks::lxe::ShutdownLxeEngine+00340981 [ 49] 0x00000000163cb3a6 bin\win64\pgo\m_lxe.dll+00242598 [ 50] 0x00000000163cbfb3 bin\win64\pgo\m_lxe.dll+00245683 [ 51] 0x00000000163cdff5 bin\win64\pgo\m_lxe.dll+00253941 [ 52] 0x00000000163cd44f bin\win64\pgo\m_lxe.dll+00250959 [ 53] 0x00000000163cd822 bin\win64\pgo\m_lxe.dll+00251938 [ 54] 0x000000001649331b bin\win64\pgo\m_lxe.dll+01061659 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00604503 [ 55] 0x000000001649ad46 bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778 [ 56] 0x000000001649a570 bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772 [ 57] 0x00000000163bfc91 bin\win64\pgo\m_lxe.dll+00195729 [ 58] 0x00000000163bf906 bin\win64\pgo\m_lxe.dll+00194822 [ 59] 0x00000000163bf925 bin\win64\pgo\m_lxe.dll+00194853 [ 60] 0x00000000156dca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835 [ 61] 0x00000000156dc73e bin\win64\pgo\m_dispatcher.dll+00116542 Mfh_file::dispatch_fh+00000062 [ 62] 0x00000000156ca8d8 bin\win64\pgo\m_dispatcher.dll+00043224 Mfunction_handle::dispatch+00001032 [ 63] 0x00000000163c794e bin\win64\pgo\m_lxe.dll+00227662 [ 64] 0x00000000163c4571 bin\win64\pgo\m_lxe.dll+00214385 [ 65] 0x00000000163cb3a6 bin\win64\pgo\m_lxe.dll+00242598 [ 66] 0x00000000163cbfb3 bin\win64\pgo\m_lxe.dll+00245683 [ 67] 0x00000000163cdff5 bin\win64\pgo\m_lxe.dll+00253941 [ 68] 0x00000000163cd44f bin\win64\pgo\m_lxe.dll+00250959 [ 69] 0x00000000163cd822 bin\win64\pgo\m_lxe.dll+00251938 [ 70] 0x000000001649331b bin\win64\pgo\m_lxe.dll+01061659 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00604503 [ 71] 0x000000001649ad46 bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778 [ 72] 0x000000001649a570 bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772 [ 73] 0x000000001642a4d6 bin\win64\pgo\m_lxe.dll+00632022 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00174866 [ 74] 0x0000000016429ccd bin\win64\pgo\m_lxe.dll+00629965 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00172809 [ 75] 0x0000000016429be6 bin\win64\pgo\m_lxe.dll+00629734 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00172578 [ 76] 0x00000000164235a5 bin\win64\pgo\m_lxe.dll+00603557 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00146401 [ 77] 0x0000000016423532 bin\win64\pgo\m_lxe.dll+00603442 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00146286 [ 78] 0x00000000164271d5 bin\win64\pgo\m_lxe.dll+00618965 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00161809 [ 79] 0x00000000158e5b63 bin\win64\pgo\m_interpreter.dll+00416611 inEvalCmdWithLocalReturn+00000063 [ 80] 0x00000000fb60de26 bin\win64\libmwbridge.dll+00122406 mnParser+00001254 [ 81] 0x00000000155abdb1 bin\win64\mcr.dll+00245169 mcr::runtime::setInterpreterThreadSingletonToCurrent+00029793 [ 82] 0x00000000155aace5 bin\win64\mcr.dll+00240869 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025493 [ 83] 0x00000000155aad53 bin\win64\mcr.dll+00240979 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025603 [ 84] 0x00000000155ab6e1 bin\win64\mcr.dll+00243425 mcr::runtime::setInterpreterThreadSingletonToCurrent+00028049 [ 85] 0x00000000fd02cc77 bin\win64\iqm.dll+00642167 iqm::UserEvalPlugin::pre+00028951 [ 86] 0x00000000fd039cfc bin\win64\iqm.dll+00695548 iqm::UserEvalPlugin::pre+00082332 [ 87] 0x00000000fd02737f bin\win64\iqm.dll+00619391 iqm::UserEvalPlugin::pre+00006175 [ 88] 0x00000000fd02cc16 bin\win64\iqm.dll+00642070 iqm::UserEvalPlugin::pre+00028854 [ 89] 0x00000000fd027863 bin\win64\iqm.dll+00620643 iqm::UserEvalPlugin::pre+00007427 [ 90] 0x00000000fd03c8b6 bin\win64\iqm.dll+00706742 iqm::UserEvalPlugin::pre+00093526 [ 91] 0x00000000fd0080f7 bin\win64\iqm.dll+00491767 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000759 [ 92] 0x00000000fd0088bf bin\win64\iqm.dll+00493759 iqm::PackagedTaskPlugin::execute+00000879 [ 93] 0x00000000fd00817d bin\win64\iqm.dll+00491901 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000893 [ 94] 0x00000000fd008708 bin\win64\iqm.dll+00493320 iqm::PackagedTaskPlugin::execute+00000440 [ 95] 0x00000000fcfdbd3a bin\win64\iqm.dll+00310586 iqm::Iqm::setupIqmFcnPtrs+00079802 [ 96] 0x00000000fcfdbc06 bin\win64\iqm.dll+00310278 iqm::Iqm::setupIqmFcnPtrs+00079494 [ 97] 0x00000000fcfbf5be bin\win64\iqm.dll+00193982 iqm::Iqm::deliver+00004046 [ 98] 0x00000000fcfc0545 bin\win64\iqm.dll+00197957 iqm::Iqm::deliver+00008021 [ 99] 0x00000001001237c1 bin\win64\libmwservices.dll+01259457 services::system_events::PpeDispatchHook::dispatchOne+00021505 [100] 0x0000000100128663 bin\win64\libmwservices.dll+01279587 sysq::addProcessPendingEventsUnitTestHook+00002211 [101] 0x0000000100128850 bin\win64\libmwservices.dll+01280080 sysq::addProcessPendingEventsUnitTestHook+00002704 [102] 0x0000000100129c26 bin\win64\libmwservices.dll+01285158 sysq::getCondition+00003462 [103] 0x000000010012ac66 bin\win64\libmwservices.dll+01289318 svWS_ProcessPendingEvents+00000230 [104] 0x00000000155ac244 bin\win64\mcr.dll+00246340 mcr::runtime::setInterpreterThreadSingletonToCurrent+00030964 [105] 0x00000000155ac964 bin\win64\mcr.dll+00248164 mcr::runtime::setInterpreterThreadSingletonToCurrent+00032788 [106] 0x00000000155a2762 bin\win64\mcr.dll+00206690 mcr_process_events+00008818 [107] 0x00000000154723c5 bin\win64\MVMLocal.dll+00271301 mvm_server::inproc::LocalFactory::terminate+00088005 [108] 0x00000000fa957669 bin\win64\mvm.dll+01209961 mvm::detail::initLocalMvmHack+00000569 [109] 0x00000000fa957e2b bin\win64\mvm.dll+01211947 mvm::detail::SessionImpl::privateSession+00000555 [110] 0x00000000fa958051 bin\win64\mvm.dll+01212497 mvm::detail::SessionImpl::privateSession+00001105 [111] 0x0000000140007833 bin\win64\MATLAB.exe+00030771 [112] 0x000000014000863f bin\win64\MATLAB.exe+00034367 [113] 0x00007ffeef988102 C:\WINDOWS\system32\KERNEL32.DLL+00098562 BaseThreadInitThunk+00000034 [114] 0x00007ffef212c5b4 C:\WINDOWS\SYSTEM32\ntdll.dll+00378292 RtlUserThreadStart+00000052
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.

Answers (0)

Categories

Find more on Matrix Indexing 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!