Bonjour,

J'ai un modèle Simulink contenant deux S functions.
J'ai déplacé l'ensemble des fichiers du disque N à disque G. Mais quand j'essaie d'exécuter la simulation au nouvel emplacement, je reçois le message d'erreur "Segmentation Violation' et Matlab se plante.
Quelle pourrait être la solution au problème?

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
117
118
119
120
121
122
123
124
125
MATLAB crash file:D:\DOCUME~1\SESA17~1\LOCALS~1\Temp\matlab_crash_dump.4048:
 
 
------------------------------------------------------------------------
       Segmentation violation detected at Fri Jul 08 11:39:16 2011
------------------------------------------------------------------------
 
Configuration:
  MATLAB Version:   7.11.0.584 (R2010b)
  MATLAB License:   210875
  Operating System: Microsoft Windows XP
  Window System:    Version 5.1 (Build 2600: Service Pack 2)
  Processor ID:     x86 Family 6 Model 15 Stepping 11, GenuineIntel
  Virtual Machine:  Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
  Default Encoding:  windows-1252
 
Fault Count: 1
 
 
 
Abnormal termination:
 
 
Register State (from fault):
  EAX = 00000020  EBX = 1fcff290
  ECX = 00000020  EDX = 00000056
  ESP = 00c2ae74  EBP = 00c2aec8
  ESI = 00c2ae78  EDI = 00c2aec8
 
  EIP = 2398c474  EFL = 00210206
 
   CS = 0000001b   DS = 00000023   SS = 00000023
   ES = 00000023   FS = 0000003b   GS = 00000000
 
 
Stack Trace (from fault):
[  0] 0x2398c474 G:/VER_VerifSw/Mathworks/Gen/Debuggee/APP_test.mexw32+01033332 ???+1650551903
[  1] 0x23896650 G:/VER_VerifSw/Mathworks/Gen/Debuggee/APP_test.mexw32+00026192 ???+1650551903
[  2] 0x2389821f G:/VER_VerifSw/Mathworks/Gen/Debuggee/APP_test.mexw32+00033311 ???+1650551903
[  3] 0x23895468 G:/VER_VerifSw/Mathworks/Gen/Debuggee/APP_test.mexw32+00021608 ???+1650551903
[  4] 0x23894053 G:/VER_VerifSw/Mathworks/Gen/Debuggee/APP_test.mexw32+00016467 ???+1650551903
[  5] 0x6e7f1667 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+10163815 ( QueryMLFcnTable_libmwsimulink+133639 )
[  6] 0x6e807330 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+10253104 ( SFcnIsBuilderBlock+058560 )
[  7] 0x6e3ab02e C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+05681198 ( ouRequestBlockReduction+133294 )
[  8] 0x6e266735 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+04351797 ( slJacobianDiagnostic+033285 )
[  9] 0x6e4ae5c9 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+06743497 ( GetBdModelTiming+001577 )
[ 10] 0x6e366e7c C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+05402236 ( removeAllEmitters+163900 )
[ 11] 0x6e1fac11 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+03910673 ( SlSigHierInfoIter::advance+056225 )
[ 12] 0x6da3dcaf C:/Program Files/MATLAB/R2010b/bin/win32/sl_solver.dll+00253103 ( sl_solver::SimStepF::SimStepF+001103 )
[ 13] 0x6da3f57c C:/Program Files/MATLAB/R2010b/bin/win32/sl_solver.dll+00259452 ( sl_solver::SimStepVS::step+000492 )
[ 14] 0x6e1fbbfd C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+03914749 ( SlSigHierInfoIter::advance+060301 )
[ 15] 0x6e360f5a C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+05377882 ( removeAllEmitters+139546 )
[ 16] 0x6e311330 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+05051184 ( ReportDimsBlockMsg+069920 )
[ 17] 0x6e0a03c2 C:/Program Files/MATLAB/R2010b/bin/win32/libmwsimulink.dll+02491330 ( SlDragHandle::Drag+033410 )
[ 18] 0x7b525eba   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00089786 ( set_event_rec+000298 )
[ 19] 0x7b52eafc   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00125692 ( win_sleep+000604 )
[ 20] 0x7b52b9e0   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00113120 ( uiwInitializeApplication+000992 )
[ 21] 0x78343e3f C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00015935 ( ioCmdLineEditSave+000319 )
[ 22] 0x78344327 C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00017191 ( ioCmdLineEditSave+001575 )
[ 23] 0x783446a3 C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00018083 ( ioCmdLineEditSave+002467 )
[ 24] 0x7834a61d C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00042525 ( QueryMLFcnTable_libmwbridge+014557 )
[ 25] 0x7834a74c C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00042828 ( QueryMLFcnTable_libmwbridge+014860 )
[ 26] 0x7834aabd C:/Program Files/MATLAB/R2010b/bin/win32/libmwbridge.dll+00043709 ( mnParser+000365 )
[ 27] 0x7a3eb423   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00177187 ( mcrInstance::mnParser_on_interpreter_thread+000051 )
[ 28] 0x7a3d44c2   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00083138 ( mvm::detail::RecursiveScopedMcrLock::~RecursiveScopedMcrLock+034226 )
[ 29] 0x7a3d4595   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00083349 ( mvm::detail::RecursiveScopedMcrLock::~RecursiveScopedMcrLock+034437 )
[ 30] 0x7a3d2148   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00074056 ( mvm::detail::RecursiveScopedMcrLock::~RecursiveScopedMcrLock+025144 )
[ 31] 0x7b558e21   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00298529 ( UIW_IsUserMessage+000129 )
[ 32] 0x7b5593cf   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00299983 ( ws_ProcessPendingEventsWaitForWindows+000303 )
[ 33] 0x7e4318e3                     C:/WINDOWS/system32/USER32.dll+00137443 ( UnhookWinEvent+000119 )
[ 34] 0x7e41f7f6                     C:/WINDOWS/system32/USER32.dll+00063478 ( EnableMenuItem+000111 )
[ 35] 0x7e41f94b                     C:/WINDOWS/system32/USER32.dll+00063819 ( CallNextHookEx+000240 )
[ 36] 0x7c90eae3                      C:/WINDOWS/system32/ntdll.dll+00060131 ( KiUserCallbackDispatcher+000019 )
[ 37] 0x7b52e624   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00124452 ( UIW_SetCurrentDialog+000564 )
[ 38] 0x7b52e67f   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00124543 ( UIW_SetCurrentDialog+000655 )
[ 39] 0x7b55a4e5   C:/Program Files/MATLAB/R2010b/bin/win32/uiw.dll+00304357 ( ws_FreeSystemFont+000485 )
[ 40] 0x7a0a1b07 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00137991 ( sysq::ws_ppeHook::~ws_ppeHook+006887 )
[ 41] 0x7a0a21da C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00139738 ( sysq::ws_ppeHook::~ws_ppeHook+008634 )
[ 42] 0x7a0a3183 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00143747 ( svWS_CommitDatabaseUpdates+002051 )
[ 43] 0x7a0a3a43 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00145987 ( svWS_CommitDatabaseUpdates+004291 )
[ 44] 0x7a0a3c36 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00146486 ( svWS_CommitDatabaseUpdates+004790 )
[ 45] 0x7a0a3d24 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00146724 ( svWS_CommitDatabaseUpdates+005028 )
[ 46] 0x7a0a3ea2 C:/Program Files/MATLAB/R2010b/bin/win32/libuij.dll+00147106 ( UIJ_WS_ProcessPendingEvents+000018 )
[ 47] 0x7a3d4e3a   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00085562 ( mvm::detail::RecursiveScopedMcrLock::~RecursiveScopedMcrLock+036650 )
[ 48] 0x7a3d506d   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00086125 ( mvm::detail::RecursiveScopedMcrLock::~RecursiveScopedMcrLock+037213 )
[ 49] 0x7a3d531c   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00086812 ( mcr_invoke_on_interpreter_thread+000220 )
[ 50] 0x7a3d5a4c   C:/Program Files/MATLAB/R2010b/bin/win32/mcr.dll+00088652 ( mcr_invoke_on_interpreter_thread+002060 )
[ 51] 0x00406202 C:/Program Files/MATLAB/R2010b/bin/win32/matlab.exe+00025090 ( ???+002060 )
[ 52] 0x004062c5 C:/Program Files/MATLAB/R2010b/bin/win32/matlab.exe+00025285 ( ???+002060 )
[ 53] 0x0040638d C:/Program Files/MATLAB/R2010b/bin/win32/matlab.exe+00025485 ( ???+002060 )
[ 54] 0x00406834 C:/Program Files/MATLAB/R2010b/bin/win32/matlab.exe+00026676 ( ???+002060 )
[ 55] 0x7c816fd7                   C:/WINDOWS/system32/kernel32.dll+00094167 ( RegisterWaitForInputIdle+000073 )
 
 
 
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. 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 'APP_test' in block 'Drive/Drive/S-Function'.
	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
	-------------------------------------------------------------