WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

matitk - Segmentation violation

 

c23562
Forum-Newbie

Forum-Newbie


Beiträge: 2
Anmeldedatum: 26.01.09
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 26.01.2009, 19:23     Titel: matitk - Segmentation violation
  Antworten mit Zitat      
Moin,

Ich habe die ITK Bibliothek für Matlab (MATITK) mit dem Befehl mex matitk.cxx kompiliert. Es wurde fehlerfrei die Datei matitk.mexw32 erstellt. Wenn ich nun versuche darauf zuzugreifen, erhalte ich eine Segmentation violation.

Kann mir jemand erklären, wie ich diesen Fehler beheben kann?

Hier ein Auszug aus dem Verlauf:

Zitat:

EDU>> matitk

MATITK v.2.4.02 Jan 26 2009
Based on Insight Segmentation and Registration Toolkit (ITK) v.2.4 (http://www.itk.org)
Please report any comments/bugs to: Vincent Chu <vwchu@sfu.ca>, Ghassan Hamarneh <hamarneh@cs.sfu.ca>.
For a list of allowed operations and a demo of sample usage, type matitk('?')
??? Error using ==> matitk
matitk(operationName,[parameters],[inputArray1],[inputArray2],[seed(s)Array],[Image(s)Spacing])


EDU>> load mri;
EDU>> D=squeeze(D);
EDU>> matitk('SOT',[128],D)
Image input of type unsigned char detected, executing MATITK in unsigned char mode

SOT is being executed...

------------------------------------------------------------------------
Segmentation violation detected at Mon Jan 26 18:11:56 2009
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.7.0.471 (R2008b)
MATLAB License: STUDENT
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 6, GenuineIntel
Virtual Machine: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252

Fault Count: 1

Register State:
EAX = 096586bc EBX = 00c2eb00
ECX = 00000080 EDX = 00000080
ESI = 09658630 EDI = 00c2ea54
EBP = 00c2e924 ESP = 00c2e91c
EIP = 0a390a41 FLG = 00010202

Stack Trace:
[0] ITKCommon.dll:0x0a390a41(0x096586bc, 0x00c2e950 "\éÂ", 0x0a3fdb53, 0x6e019420)
[1] ITKCommon.dll:0x0a38e5e6(0x6e019420, 1, 0x09658630 "lß^\n", 0x00c2ea54 "ÜëÂ")
[2] ITKCommon.dll:0x0a3fdb53(0x00c2e968, 0x00c2e97c "`êÂ", 0x0a3b6358, 1)
[3] matitk.mexw32:0x0a1113b2(1, 0x0a330538, 0xcccccccc, 0x09658630 "lß^\n")
[4] ITKCommon.dll:0x0a3b6358(0x6e019710, 8, 0x0a330538, 0x00c2eb00)
[5] ITKCommon.dll:0x0a3dec9c(0x00c2ea78, 0x00c2ea7c, 1, 0x09658630 "lß^\n")
[6] matitk.mexw32:0x0a17d813(0x0a2ee9c4 "drawnow", 0x0a2ee9cc "\n%s is being executed...\n", 0x0be9bbf0 "SOT", 0x0bfb2c50)
[7] matitk.mexw32:0x0a286a02(0x0a330538, 0x00c2eb98 "¼ëÂ", 0x0a287e67, 0x0bfb2c50)
[8] matitk.mexw32:0x0a28707d(0x0bfb2c50, 0x00c2eb70, 0, 0x00c2eb58 "|ëÂ")
[9] matitk.mexw32:0x0a287e67(0, 0x00c2f1e4, 3, 0x00c2f244)
[10] matitk.mexw32:0x0a288649(0, 0x00c2f1e4, 3, 0x00c2f244)
[11] libmex.dll:_mexRunMexFile(0, 0x00c2f1e4, 3, 0x00c2f244) + 132 bytes
[12] libmex.dll:private: void __thiscall Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2f1e4, 3, 0x00c2f244) + 73 bytes
[13] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2f1e4, 3, 0x00c2f244) + 321 bytes
[14] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2f1e4, 3, 0x00c2f244) + 202 bytes
[15] m_interpreter.dll:int __cdecl inDispatchFromStack(int,char const *,int,int)(653, 0x0bc2767c "matitk", 0, 0x0bf92f48) + 841 bytes
[16] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 0, 0, 0) + 1264 bytes
[17] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 1, 0) + 39 bytes
[18] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 0, 1, 0) + 251 bytes
[19] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0x7977f201, 0xffffffff, 0x0bf8de40, 0) + 949 bytes
[20] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2fb4c, 0, 0) + 467 bytes
[21] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2fb4c, 0, 0) + 42 bytes
[22] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2fb4c, 0, 0) + 202 bytes
[23] m_interpreter.dll:void __cdecl inEvalPcodeHeaderToWord(struct _memory_context *,int,struct mxArray_tag * * const,struct _pcodeheader *,class Mfh_mp *,unsigned long)(0x7aef6ba4, 0, 0x00c2fb4c, 0x00c2fa58) + 73 bytes
[24] m_interpreter.dll:enum inExecutionStatus __cdecl in_local_call_script_function(struct _memory_context *,struct _pcodeheader *,int,struct mxArray_tag * * const,unsigned long,bool)(0x7aef6ba4, 0x00c2fa58, 0, 0x00c2fb4c) + 70 bytes
[25] m_interpreter.dll:__catch$??1inProtectHotSegment@@QAE@XZ$0(0x7aef6ba4, 0x01f97b78 "matitk('SOT',[128],D)\n", 0, 0) + 307 bytes
[26] m_interpreter.dll:enum inExecutionStatus __cdecl inEvalCmdWithLocalReturn(char const *,int *,bool,bool,bool (__cdecl*)(void *,char const *))(0x01f97b78 "matitk('SOT',[128],D)\n", 0, 0, 1) + 79 bytes
[27] m_interpreter.dll:public: virtual enum inExecutionStatus __thiscall InterpBridge::EvalCmdWithLocalReturn(char const *,int *,bool,bool)(0x01f97b78 "matitk('SOT',[128],D)\n", 0, 0, 1) + 25 bytes
[28] m_interpreter.dll:_inEvalCmdWithLocalReturn(0x01f97b78 "matitk('SOT',[128],D)\n", 0, 0, 1) + 27 bytes
[29] bridge.dll:enum inExecutionStatus __cdecl evalCommandWithLongjmpSafety(char const *)(0x01f97b78 "matitk('SOT',[128],D)\n", 0x7ae71f40, 0x7af9b340, 0x0211e460) + 67 bytes
[30] bridge.dll:__catch$_mnParser$0(0x0211e460, 0x0411ee78, 0x00c2fe01, 0x041c1dc0) + 294 bytes
[31] mcr.dll:public: void __thiscall mcrInstance::mnParser(void)(0x0040547c, 336714, 0, 0x65642020) + 51 bytes
[32] MATLAB.exe:int __cdecl mcrMain(int,char const * * const)(1, 0x0211d0e0, 4194304, 10) + 568 bytes
[33] MATLAB.exe:_WinMain@16(4194304, 0, 336714, 10) + 75 bytes
[34] MATLAB.exe:___tmainCRTStartup(0, 0, 0x7ffdf000, 0x805512fa) + 320 bytes
[35] kernel32.dll:0x7c817067(0x00401b1f, 0, 0x00905a4d, 3)

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 it is an official MathWorks function, 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 segv@mathworks.com with the following file attached:
C:\DOKUME~1\nummer1\LOKALE~1\Temp\matlab_crash_dump.3500

If the problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/co.....us/ts/help_request_1.html

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.

Caught MathWorks::System::FatalException
EDU>>



Links zu MATITK:
http://www.sfu.ca/~vwchu/matitk.html
http://www.sfu.ca/~vwchu/matitkusage.html


Ich wäre euch riesig dankbar, wenn wir dieses Problem lösen könnten.

Nette Grüße,
Christian.
Private Nachricht senden Benutzer-Profile anzeigen


Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.