Bonjour tous,
j'ai un modèle simulink et à chaque fois que je commence la simulation, un message d'avertissement s'affiche:
"MATLAB has encounted an internal problem and needs to close"
les détails de cet erreur sont les suivants:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
MATLAB crash file:C:\Users\HOUCEM\AppData\Local\Temp\matlab_crash_dump.1700
------------------------------------------------------------------------
       Segmentation violation detected at Mon Apr 04 11:14:52 2011
------------------------------------------------------------------------
 
Configuration:
  MATLAB Version:   7.9.0.529 (R2009b)
  MATLAB License:   161051
  Operating System: Microsoft Windows Vista
  Window System:    Version 6.1 (Build 7600)
  Processor ID:     x86 Family 6 Model 5 Stepping 2, GenuineIntel
  Virtual Machine:  Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
  Default Encoding:  windows-1252
 
Fault Count: 1
 
Register State:
  EAX = 00000000  EBX = 00000300
  ECX = 0000ffff  EDX = 3383dbd0
  ESI = 8c001d6b  EDI = 00000001
  EBP = 00c3b294  ESP = 00c3b28c
  EIP = 2a1a47a7  FLG = 00210282
 
Stack Trace:
  [0] comm_rt.dll:0x2a1a47a7(1, 0x8c001d6b, 16, 0x337fdbb0)
  [1] scombchrsencoder.mexw32:void __cdecl doOutput<unsigned char>(unsigned char *,struct SFcnCache_tag *)(0, 32208, 0x32323c88, 0x2f54b418) + 591 bytes
  [2] scombchrsencoder.mexw32:void __cdecl mdlOutputs(struct SimStruct_tag *,int)(0x2f54b418, 0, 0x2d8dabb8, 0x32323c88) + 55 bytes
  [3] libmwsimulink.dll:0x6edd87e8(3292296, 0x2f733e48, 0x2f54b418, 0x2fe2a4b0)
  [4] libmwsimulink.dll:0x6ede9bb5(0x2f733e48, 0x3397e750, 0x3397e510, 0x00c3b50f)
  [5] libmwsimulink.dll:0x6eaa98b3(0x3397e750, 0x2dfd7178, 0x32b57510, 0x00c3b534 "\µÃ")
  [6] libmwsimulink.dll:0x6e9b93df(0x2fe2a4b0, 0x32a02318, 0x01b57510, 0x32a02318)
  [7] libmwsimulink.dll:0x6e9b946b(0x2fe2a4b0, 0x32a02318, 0x32b57510, 0x26ce938c)
  [8] libmwsimulink.dll:0x6e9b95a5(0x2fe2a4b0, 0x32a02318, 0x32b57510, 0x2fe2a4b0)
  [9] libmwsimulink.dll:0x6e9b976a(0x00e2a4b0, 0x32a02318, 0x32b57510, 0x2dfd7178)
  [10] libmwsimulink.dll:0x6eb8720c(0x00e2a4b0, 4, 0x3394c3b8, 4)
  [11] libmwsimulink.dll:0x6ea85299(0x00c3b658, 0x33792e90, 4, 0x774ca9bd)
  [12] libmwsimulink.dll:0x6ee75bb1(4, 0x33792e90, 0x00c3b67c "°¶Ã", 0x6e41b778)
  [13] sl_solver.dll:0x6e41ad8f(0x3394c3b8, 4, 0x2dfd7178, 0x2fe2a4b0)
  [14] sl_solver.dll:0x6e41b778(0x2dfd7178, 0x2fe2a4b0, 0xffffff00, 0)
  [15] libmwsimulink.dll:0x6ee766b2(0x2fe2a4b0, 0x00c3b6db, 0x00c3b70c, 6)
  [16] libmwsimulink.dll:0x6ea8033e(0x00fd7178, 0, 0x2dfd7178, 0)
  [17] libmwsimulink.dll:0x6ea446ab(0x2dfd7178, 6, 0x00c3b70c, 0x339d0274)
  [18] libmwsimulink.dll:0x6e733522(0, 0x76b510fc, 0x0062e023, 0x7b36a3e5)
  [19] uiw.dll:void __cdecl UIW_CallWorkProcs(void)(0x00c3b778, 0x612d9f01, 0x7b3c964c "$¸9{", 0) + 42 bytes
  [20] uiw.dll:char * __cdecl getCommand(char *,int)(0x78aa6850, 4096, 0x00c3b814, 0x78a9390f) + 108 bytes
  [21] uiw.dll:public: virtual char * __thiscall uiw::UIW_IOProxy::getCmdWindowCommand(char *,int)const (0x78aa6850, 4096, 0, 0) + 16 bytes
  [22] bridge.dll:char * __cdecl winReadStdin(char * const,unsigned int,bool)(0x78aa6850, 4096, 0, 0x00c3f9b4) + 79 bytes
  [23] bridge.dll:char * __cdecl ioReadLineOS(bool,struct _iobuf * const,char * const,char * const,int,bool * const,void (__cdecl*const)(void),char * (__cdecl*const)(char * const,unsigned int,bool))(0, 0x737b1b78 "@I{s", 0x24490e30, 4096) + 265 bytes
  [24] bridge.dll:char * __cdecl ioReadLine(bool,struct _iobuf *,char *,char *,int,bool *)(0, 0x737b1b78 "@I{s", 0x24490e30, 0x24490e30) + 99 bytes
  [25] bridge.dll:void __cdecl mnGetFullLine(char * *,unsigned int *,unsigned int *,bool)(0x00c3f9b8, 0x00c3f9ac, 0, 0x7bb18c17) + 205 bytes
  [26] bridge.dll:_mnGetCommandLineBuffer(0, 0x00c3fc80, 0x214b1708 "(Ù*zøUö", 0) + 124 bytes
  [27] bridge.dll:__catch$_mnParser$0(0x00f62f08, 0, 0x0944e801 "±»y", 1) + 164 bytes
  [28] mcr.dll:private: void __thiscall mcrInstance::mnParser_on_interpreter_thread(void)(0x214b1740, 0x1ad842a8, 0, 0x0944e800 "¬±»y") + 51 bytes
  [29] mcr.dll:public: void __thiscall boost::function0<void>::operator()(void)const (0x00c3fc80, 0x214b1708 "(Ù*zøUö", 0, 0x214b1708 "(Ù*zøUö") + 63 bytes
  [30] mcr.dll:public: virtual void __thiscall mcr::runtime::InterpreterThread::Impl::NoResultInvocationRequest::run(void)(0x7a27a800, 0x00c3fc8c, 0x00c3fb00 "(ûÃ", 0x00c3fbc8) + 53 bytes
  [31] mcr.dll:private: static void __cdecl mcr::runtime::InterpreterThread::Impl::invocation_request_handler(int)(0x214b1708 "(Ù*zøUö", 0x00c3fc80, 0x00030000 "Actx ", 0x00c3fc80) + 40 bytes
  [32] uiw.dll:bool __cdecl UIW_DispatchUserMessage(int,int)(9225, 0x214b1708 "(Ù*zøUö", 0xfffdb800, 0x0956ded0) + 81 bytes
  [33] uiw.dll:long __stdcall HandleUserMsgHook(int,unsigned int,long)(0, 1, 0x00c3fc80, 9225) + 95 bytes
  [34] USER32.dll:0x7686833e(0x00030000 "Actx ", 1, 0x00c3fc80, 0x7b38edd0)
  [35] USER32.dll:0x768578b0(0x00c3fc70, 0x00c3fc80, 0x00c3fc9c, 0)
  [36] USER32.dll:0x76858e10(0x00c3fc70, 0, 0x00c3fd78 "¸ýÃ", 0x77460070)
  [37] ntdll.dll:0x774600e6(0x00c3fce8, 0, 0, 0)
  [38] uiw.dll:void __cdecl UIW_GetAndDispatchMessage(struct tagMSG *)(0x00c3fce8, 9, 9, 0x01250a70) + 20 bytes
  [39] uiw.dll:void __cdecl UIW_GetAndDispatchMessage(void)(0x00f655f8, 0, 0x00f5b7b0 "p§õ", 0) + 15 bytes
  [40] uiw.dll:void __cdecl ws_ProcessPendingEventsMainLoop(int,bool)(1, 0, 0x00c3fd84 "ÄýÃ", 0x7a27d26a) + 356 bytes
  [41] uiw.dll:void __cdecl ws_ProcessPendingEvents(int,int)(1, 0xffffffff, 0x00f655f8, 0x00f5b7b0 "p§õ") + 14 bytes
  [42] mcr.dll:public: void __thiscall mcr::runtime::InterpreterThread::Impl::process_events(class boost::shared_ptr<class mcr::runtime::InterpreterThread::Impl> const &)(0x00c3fddc "øUö", 2, 0x00f5a860, 0x04e8dd60) + 138 bytes
  [43] mcr.dll:__catch$?run@Impl@InterpreterThread@runtime@mcr@@QAEKABV?$shared_ptr@VImpl@InterpreterThread@runtime@mcr@@@boost@@PAUinit_context@1234@@Z$0(0x00c3fddc "øUö", 0x00f5f6d8, 0x7a27d630, 0x00f5e8d8 "¸§õ") + 128 bytes
  [44] mcr.dll:unsigned long __cdecl run_init_and_handle_events(void *)(0x04e8dd60, 0, 0x00f5a7d0, 0) + 76 bytes
  [45] mcr.dll:private: void __thiscall mcr::runtime::InterpreterThreadFactory::runThreadFunction(void)(0x00c3fe90 "Øèõ", 0x00c3fe48, 0x00c3fe4c "¸þÃ", 0x7bafb34c) + 108 bytes
  [46] MATLAB.exe:public: void __thiscall boost::function0<void>::operator()(void)const (0x00dd3854, 0x0040b7f4, 0, 0x73721731) + 63 bytes
  [47] MATLAB.exe:int __cdecl mcrMain(int,char const * * const)(1, 0x00f51908, 4194304, 10) + 230 bytes
  [48] MATLAB.exe:_WinMain@16(4194304, 0, 0x00dd3854, 10) + 75 bytes
  [49] MATLAB.exe:___tmainCRTStartup(0xfffde000, 0x00c3ffd4 "ìÿÃ", 0x77489f02, 0xfffde000) + 320 bytes
  [50] kernel32.dll:0x76b53677(0xfffde000, 0x77f71839, 0, 0)
  [51] ntdll.dll:0x77489f02(0x00406faa, 0xfffde000, 0, 0)
  [52] ntdll.dll:0x77489ed5(0x00406faa, 0xfffde000, 0, 0x78746341)
 
Please follow these steps to report this problem to The MathWorks so we
have the best chance of correcting it:
 
The next time MATLAB is launched under typical usage, a dialog box will
open to help you send the error log to The MathWorks. Alternatively, you
can send an e-mail to <a href="mailto:segv@mathworks.com">segv@mathworks.com</a> with the following file attached:
    C:\Users\HOUCEM\AppData\Local\Temp\matlab_crash_dump.1700
 
If the problem is reproducible, please submit a Service Request via:
    <a href="http://www.mathworks.com/support/contact_us/ts/help_request_1.html" target="_blank">http://www.mathworks.com/support/con...request_1.html</a>
 
A technical support engineer might contact you with further information.
 
Thank you for your help. MATLAB may attempt to recover, but even if recovery appears successful,
we recommend that you save your workspace and restart MATLAB as soon as possible.
 
	-------------------------------------------------------------
	This segmentation violation occurred while executing the 
	S-function 'scombchrsencoder' in block 'untitledxx1/BCH Encoder'.
	A common cause of this segmentation violation is an incorrect
	input port direct feedthrough setting. Each input port of the
	S-function that is read (accessed) in mdlOutputs and/or
	mdlGetTimeOfNextVarHit must specify that it needs its input
	signal in these routines by setting direct feedthrough for
	these input ports.
	1) To debug your C-MEX S-function, you can enable diagnostics
	   by compiling the S-function source with the -g flag, e.g.,
	      mex -g sfunction_name.c
	2) You can ask Simulink to try assuming your S-function has
	   direct feedthrough using:
	      set_param('modelname','TryForcingSFcnDF','on')
	   If Simulink can find a valid sorting mode that does not
	   result in algebraic loops involving your S-function, your
	   model will execute (assuming that the cause of this
	   segmentation violation is an incorrect direct feedthrough
	   setting on an input port).
	See matlabroot/simulink/src/sfuntmpl_directfeed.txt
	-------------------------------------------------------------
merci de m'aider..