Hi there,
I tried to run the BasicSoundOutputDemo on my PC running XP SP3, and it crashed Matlab with a segmentation fault. See below for output. Looking through the archives of this group, I tried to find previous messages referring to this type of problem and found this:
http://tech.groups.yahoo.com/group/psychtoolbox/message/7249
Following the discussion, I tried typing the following on the commandline:
PsychPortAudio('Verbosity', 10); % To enable more debug output...
d=PsychPortAudio('GetDevices')
The second statement caused the same crash. Any suggestions on what the problem might be? Could it be a SP3 issue?
thanks!
Mary
really accurate sound onset timing and latency < 30 msecs, please read
"help InitializePsychSound" carefully and follow the instructions.
Will use our standard driver instead of enhanced driver...
Unknown Windows exception of type=c06d007e was not caught.
------------------------------------------------------------------------
Segmentation violation detected at Tue Oct 20 09:24:39 2009
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.8.0.347 (R2009a)
MATLAB License: 2374
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 11, GenuineIntel
Virtual Machine: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252
Fault Count: 1
Register State:
EAX = 00c2bd28 EBX = 00000000
ECX = 00000000 EDX = 00000015
ESI = 00c2bdf0 EDI = 00000000
EBP = 00c2bd78 ESP = 00c2bd24
EIP = 7c812afb FLG = 00000202
Stack Trace:
[0] kernel32.dll:0x7c812afb(0xc06d007e, 0, 1, 0x00c2bdec)
[1] PsychPortAudio.mexw32:0x055d4dd6(24, 0x00c2bd9c, 0x055eb22c "Open GetDeviceSettings ", 0)
[2] PsychPortAudio.mexw32:0x055d3f81(0x022a2bb8, 0, 0, 0x055eb250 "DeviceIndex")
[3] PsychPortAudio.mexw32:0x055cfdcd(0, 0, 0, 0)
[4] PsychPortAudio.mexw32:0x055c5a88(1, 0x00c2c690, 2, 0x00c2c600)
[5] libmex.dll:_mexRunMexFile(1, 0x00c2c690, 2, 0x00c2c600) + 132 bytes
[6] libmex.dll:private: void __thiscall Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 73 bytes
[7] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 321 bytes
[8] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 204 bytes
[9] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(1, 0x00c2c690, 2, 0x00c2cdf8 "ÄÐÂ") + 81 bytes
[10] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2c8d8, 1, 1, 0x10d86778) + 1209 bytes
[11] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0x0fa443a8, 0xffffffff, 0x10f3c4a0, 0x10f1efe0) + 266 bytes
[12] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2cdf8 "ÄÐÂ", 0xffffffff, 0xffffffff, 0x10f1efe0) + 170 bytes
[13] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2d098, 0xffffffff, 0, 0) + 115 bytes
[14] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2d1f4, 0x00c2d348, 0x00c2d2dc, 0x00c2d498) + 2523 bytes
[15] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 764, 106, 0) + 826 bytes
[16] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 764, 80, 0) + 39 bytes
[17] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 764, 80, 0) + 251 bytes
[18] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff00, 0xffffffff, 0x10e8a390, 0) + 935 bytes
[19] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 466 bytes
[20] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2d830, 0) + 23 bytes
[21] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 22 bytes
[22] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 204 bytes
[23] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(0, 0x00c2d830, 0, 0x00c2df98 "dâÂ") + 81 bytes
[24] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2da78, 0, 1, 0x10d86028) + 1209 bytes
[25] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0, 0xffffffff, 0x10b50d00, 0x10dfa5d0) + 266 bytes
[26] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2df98 "dâÂ", 0xffffffff, 0xffffffff, 0x10dfa5d0) + 170 bytes
[27] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2e238, 0xffffffff, 0, 0) + 115 bytes
[28] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2e394, 0x00c2e4e8, 0x00c2e47c, 0x00c2e638) + 2523 bytes
[29] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 670, 80, 0) + 826 bytes
[30] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 670, 57, 0) + 39 bytes
[31] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 670, 57, 0) + 251 bytes
[32] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff00, 0xffffffff, 0x10e89c70, 0) + 935 bytes
[33] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 466 bytes
[34] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2e9d0, 0) + 23 bytes
[35] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 22 bytes
[36] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 204 bytes
[37] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(0, 0x00c2e9d0, 0, 0x00c2f13c) + 81 bytes
[38] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2ec18, 0, 1, 0x10d130e0) + 1209 bytes
[39] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0, 0xffffffff, 0x10b50f10, 0x10df6850) + 266 bytes
[40] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2f13c, 0xffffffff, 0xffffffff, 0x10df6850) + 170 bytes
[41] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2f3dc, 0x10d1e650, 0, 0) + 115 bytes
[42] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2f4b0, 0x00c2f488, 0x00c2f4ac, 0x00c2f4a8) + 2523 bytes
[43] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff01, 0xffffffff, 0x10e89aa8, 0) + 572 bytes
[44] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2f9a0, 0, 0) + 466 bytes
[45] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_worksp
I tried to run the BasicSoundOutputDemo on my PC running XP SP3, and it crashed Matlab with a segmentation fault. See below for output. Looking through the archives of this group, I tried to find previous messages referring to this type of problem and found this:
http://tech.groups.yahoo.com/group/psychtoolbox/message/7249
Following the discussion, I tried typing the following on the commandline:
PsychPortAudio('Verbosity', 10); % To enable more debug output...
d=PsychPortAudio('GetDevices')
The second statement caused the same crash. Any suggestions on what the problem might be? Could it be a SP3 issue?
thanks!
Mary
>> BasicSoundOutputDemoCould not find a low-latency enhanced PortAudio driver. If you need
really accurate sound onset timing and latency < 30 msecs, please read
"help InitializePsychSound" carefully and follow the instructions.
Will use our standard driver instead of enhanced driver...
Unknown Windows exception of type=c06d007e was not caught.
------------------------------------------------------------------------
Segmentation violation detected at Tue Oct 20 09:24:39 2009
------------------------------------------------------------------------
Configuration:
MATLAB Version: 7.8.0.347 (R2009a)
MATLAB License: 2374
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 11, GenuineIntel
Virtual Machine: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Default Encoding: windows-1252
Fault Count: 1
Register State:
EAX = 00c2bd28 EBX = 00000000
ECX = 00000000 EDX = 00000015
ESI = 00c2bdf0 EDI = 00000000
EBP = 00c2bd78 ESP = 00c2bd24
EIP = 7c812afb FLG = 00000202
Stack Trace:
[0] kernel32.dll:0x7c812afb(0xc06d007e, 0, 1, 0x00c2bdec)
[1] PsychPortAudio.mexw32:0x055d4dd6(24, 0x00c2bd9c, 0x055eb22c "Open GetDeviceSettings ", 0)
[2] PsychPortAudio.mexw32:0x055d3f81(0x022a2bb8, 0, 0, 0x055eb250 "DeviceIndex")
[3] PsychPortAudio.mexw32:0x055cfdcd(0, 0, 0, 0)
[4] PsychPortAudio.mexw32:0x055c5a88(1, 0x00c2c690, 2, 0x00c2c600)
[5] libmex.dll:_mexRunMexFile(1, 0x00c2c690, 2, 0x00c2c600) + 132 bytes
[6] libmex.dll:private: void __thiscall Mfh_mex::runMexFileWithSignalProtection(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 73 bytes
[7] libmex.dll:public: virtual void __thiscall Mfh_mex::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 321 bytes
[8] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(1, 0x00c2c690, 2, 0x00c2c600) + 204 bytes
[9] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(1, 0x00c2c690, 2, 0x00c2cdf8 "ÄÐÂ") + 81 bytes
[10] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2c8d8, 1, 1, 0x10d86778) + 1209 bytes
[11] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0x0fa443a8, 0xffffffff, 0x10f3c4a0, 0x10f1efe0) + 266 bytes
[12] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2cdf8 "ÄÐÂ", 0xffffffff, 0xffffffff, 0x10f1efe0) + 170 bytes
[13] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2d098, 0xffffffff, 0, 0) + 115 bytes
[14] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2d1f4, 0x00c2d348, 0x00c2d2dc, 0x00c2d498) + 2523 bytes
[15] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 764, 106, 0) + 826 bytes
[16] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 764, 80, 0) + 39 bytes
[17] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 764, 80, 0) + 251 bytes
[18] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff00, 0xffffffff, 0x10e8a390, 0) + 935 bytes
[19] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 466 bytes
[20] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2d830, 0) + 23 bytes
[21] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 22 bytes
[22] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2d830, 0, 0x00c2d7a0 "pØÂ") + 204 bytes
[23] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(0, 0x00c2d830, 0, 0x00c2df98 "dâÂ") + 81 bytes
[24] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2da78, 0, 1, 0x10d86028) + 1209 bytes
[25] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0, 0xffffffff, 0x10b50d00, 0x10dfa5d0) + 266 bytes
[26] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2df98 "dâÂ", 0xffffffff, 0xffffffff, 0x10dfa5d0) + 170 bytes
[27] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2e238, 0xffffffff, 0, 0) + 115 bytes
[28] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2e394, 0x00c2e4e8, 0x00c2e47c, 0x00c2e638) + 2523 bytes
[29] m_interpreter.dll:int __cdecl inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int *)(1, 670, 80, 0) + 826 bytes
[30] m_interpreter.dll:int __cdecl protected_inInterp(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 670, 57, 0) + 39 bytes
[31] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 670, 57, 0) + 251 bytes
[32] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff00, 0xffffffff, 0x10e89c70, 0) + 935 bytes
[33] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 466 bytes
[34] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0, 0x00c2e9d0, 0) + 23 bytes
[35] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 22 bytes
[36] m_dispatcher.dll:public: virtual void __thiscall Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * *)(0, 0x00c2e9d0, 0, 0x00c2e940) + 204 bytes
[37] m_interpreter.dll:public: void __thiscall ResolverFunctionDesc::CallFunction(int,struct mxArray_tag * * const,int,struct mxArray_tag * * const)(0, 0x00c2e9d0, 0, 0x00c2f13c) + 81 bytes
[38] m_interpreter.dll:public: bool __thiscall Resolver::CallMFunction(int,int,class _m_operand * const,union m_operand_storage *,int,class _m_operand * const,union m_operand_storage *,int *)(0x00c2ec18, 0, 1, 0x10d130e0) + 1209 bytes
[39] m_interpreter.dll:private: bool __thiscall accelImpl::MFunctionCall(struct _accelOp * *)(0, 0xffffffff, 0x10b50f10, 0x10df6850) + 266 bytes
[40] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelImpl::Exec(void)(0x00c2f13c, 0xffffffff, 0xffffffff, 0x10df6850) + 170 bytes
[41] m_interpreter.dll:public: enum jitReturnFlags __thiscall accelCode::Call(enum inMarshalType *,int *)const (0x00c2f3dc, 0x10d1e650, 0, 0) + 115 bytes
[42] m_interpreter.dll:public: static bool __cdecl inJit::ExecuteHotSegment(struct _inJitAccelInfo *,enum opcodes *,int *,int *)(0x00c2f4b0, 0x00c2f488, 0x00c2f4ac, 0x00c2f4a8) + 2523 bytes
[43] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class Mfh_mp *,bool)(0xffffff01, 0xffffffff, 0x10e89aa8, 0) + 572 bytes
[44] m_interpreter.dll:void __cdecl inRunMfile(int,struct mxArray_tag * *,int,struct mxArray_tag * *,class Mfh_mp *,struct inWorkSpace_tag *)(0, 0x00c2f9a0, 0, 0) + 466 bytes
[45] m_interpreter.dll:public: virtual void __thiscall Mfh_mp::dispatch_file(struct _mdUnknown_worksp