kanyun157 / giimote

Automatically exported from code.google.com/p/giimote
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Segfault occures when called from MATLAB #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load GiiMote in MATLAB
2. Try to call any function

This results in the following output:

EDU>> gmCallFunction('wm_set_leds_int', 15)
Unknown Windows exception of type=e0434f4d was not caught.
------------------------------------------------------------------------
       Segmentation violation detected at Mon Nov 03 18:27:33 2008
------------------------------------------------------------------------

Configuration:
  MATLAB Version:   7.4.0.287 (R2007a)
  MATLAB License:   STUDENT
  Operating System: Microsoft Windows 2000
  Window System:    Version 6.0 (Build 6001: Service Pack 1)
  Processor ID:     x86 Family 6 Model 7 Stepping 6, GenuineIntel
  Virtual Machine:  Java 1.5.0_07 with Sun Microsystems Inc. Java 
HotSpot(TM) Client VM mixed mode
  Default Charset:  windows-1252

Register State:
  EAX = 00ceca88  EBX = e0434f4d
  ECX = 00000001  EDX = 00000000
  ESI = 00cecb10  EDI = 14c07778
  EBP = 00cecad8  ESP = 00ceca88
  EIP = 76b042eb  FLG = 00000216

Stack Trace:
  [0] kernel32.dll:0x76b042eb(0xe0434f4d, 1, 1, 0x00cecb10)
  [1] mscorwks.dll:0x135071ac(0x18a05834, 0, 0, 0x82a0ec8a)
  [2] mscorwks.dll:0x1359293a(0x00ced9e0, 0x002dba38 "ÿÿ
\Windows\system32\kernel32.dll..", 0x82a0ebfa, 0)
  [3] mscorwks.dll:0x13613799(0x00ced508, 0, 0x00ced1b0, 4)
  [4] mscorjit.dll:0x13ad38fe(0x13b22abc, 0x828276fe, 0x13b23738, 
0x13b20010)
  [5] mscorjit.dll:0x13ac35c3(0x13b22abc, 0, 0x13b20010, 0x00ced578)
  [6] mscorjit.dll:0x13ac355b(0x13b22a04, 0x13b20010, 0x13ac4e1c, 
0x13b20010)
  [7] mscorjit.dll:0x13ac3494(0x00ced3a0, 0x00ced604, 0x00ced394, 
0x00ced398)
  [8] mscorjit.dll:0x13ac14e6(0x12102c3c, 0x00ced4ec, 0x00ced578, 
0x00ced3a0)
  [9] mscorjit.dll:0x13ac1236(0x00ced4ec, 0x00ced578, 0x00ced3a0, 
0x00ced604)
  [10] mscorjit.dll:0x13ac118c(0x13b122a0, 0x00ced4ec, 0x00ced578, 1077776)
  [11] mscorwks.dll:0x1350f9cf(0x14c1e058, 0x00ced4ec, 0x00ced578, 1077776)
  [12] mscorwks.dll:0x1350f945(0x14c1e058, 0x00ced4ec, 0x00ced578, 1077776)
  [13] mscorwks.dll:0x1350f8da(0x14c1e058, 0x00ced4ec, 0, 1077776)
  [14] mscorwks.dll:0x1350ea33(0x121039a0, 0x14c1b418, 1077776, 0x00ced8fc 
"TÙÎ")
  [15] mscorwks.dll:0x1350e795(0x14c1b418, 0, 0x82a0fe9a, 0x121039a0)
  [16] mscorwks.dll:0x13487f52(0, 0x82a0fe4a, 0x00cedb20, 0x00ced9e0)
  [17] mscorwks.dll:0x1348809e(0x00ced9e0, 0x8266c3bc, 0, 0)
  [18] 0x1211204b(0, 0x14c07778, 0x00ceda1c "pÚÎ", 0x00ceda00)
  [19] mscorwks.dll:0x1347c74b(0x00cedb08, 2, 0x00cedad0, 8)
  [20] mscorwks.dll:0x1347c6cc(0x00cedb08, 2, 0x00cedad0, 8)
  [21] mscorwks.dll:0x13593798(0x1210f4d0, 0x00cedb00, 8, 1)
  [22] mscorwks.dll:0x13593a79(0x14c07778, 0x00cedcc0, 0x13441c30, 
0x134452f0)
  [23] mscorwks.dll:0x1359386f(0x14c07778, 0x00cedcc0, 0x00cedd0c, 
0x136958bf)
  [24] 0x121136fa(0x14564508, 0x04b22fd0 "ä*", 0x04b22fec "À,", 0x00cedcdc)
  [25] libmwcli.dll:void * __cdecl callfcn(void const *,void const 
*,int)(0x12021950, 0x04b6e158, 8, 0x8151163e) + 35 bytes
  [26] libmwcli.dll:public: void __thiscall CCallMI::CallFcn(class 
UDMethodSignature *,void * *)(0x12021950, 0x00cedd78, 0x04b22fd0 "ä*", 
0x00cedd78) + 182 bytes
  [27] libmwcli.dll:public: virtual void __thiscall 
CCallMI::invokeMethod(class UDMethodSignature *,int *,void * *,int,void * 
*)(0x1481d9e0 "x.", 0x00cedd9c, 0x00cedd78, 1) + 277 bytes
  [28] libmwcli.dll:void __cdecl CallLibFunction(char *,char *,int,struct 
mxArray_tag * * const,int,struct mxArray_tag const * * const)(0x024c7908 
"GiiMote", 0x047553b0 "wm_set_leds_int", 1, 0x00cedf50) + 534 bytes
  [29] libmwcli.dll:_mfCallLib(1, 0x00cedf50, 3, 0x024c7908 "GiiMote") + 
151 bytes
  [30] m_dispatcher.dll:public: virtual void __thiscall 
Mfh_builtin::dispatch_mf(int,struct mxArray_tag * *,int,struct mxArray_tag 
* *)(1, 0x00cedf50, 3, 0x00cedfb0) + 57 bytes
  [31] m_dispatcher.dll:public: virtual void __thiscall 
Mfh_MATLAB_fn::dispatch_fh(int,struct mxArray_tag * *,int,struct 
mxArray_tag * *)(1, 0x00cedf50, 3, 0x00cedfb0) + 163 bytes
  [32] m_interpreter.dll:_inDispatchWithDebug(149, 1, 0x00cedf50, 3) + 192 
bytes
  [33] m_interpreter.dll:_inDispatchFromStack(149, 0x119be8ac "calllib", 1, 
3) + 877 bytes
  [34] m_interpreter.dll:enum opcodes __cdecl inDispatchCall(char const 
*,int,int,int,int *,int *)(0x119be8ac "calllib", 149, 1, 3) + 156 bytes
  [35] m_interpreter.dll:int __cdecl inInterp(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int 
*)(1, 81, 26, 0) + 2620 bytes
  [36] m_interpreter.dll:int __cdecl protected_inInterp(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 81, 
26, 0) + 87 bytes
  [37] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(1, 81, 
26, 0) + 302 bytes
  [38] m_interpreter.dll:int __cdecl inExecuteMFunctionOrScript(class 
Mfh_mp *,bool)(0x11f818a0, 0, 2, 0x00cee648) + 734 bytes
  [39] m_interpreter.dll:_inWordsj(0, 0x00cee5e8, 2, 0x00cee648) + 351 
bytes
  [40] m_interpreter.dll:public: void __thiscall Mfh_mp::inRunMP(int,struct 
mxArray_tag * *,int,struct mxArray_tag * *,struct inWorkSpace_tag *)(0, 
0x00cee5e8, 2, 0x00cee648) + 194 bytes
  [41] m_interpreter.dll:public: virtual void __thiscall 
Mfh_mp::dispatch_file(struct _mdUnknown_workspace *,int,struct mxArray_tag 
* *,int,struct mxArray_tag * *)(0, 0, 0x00cee5e8, 2) + 28 bytes
  [42] m_interpreter.dll:public: virtual void __thiscall 
Mfh_mp::dispatch_file(int,struct mxArray_tag * *,int,struct mxArray_tag * 
*)(0, 0x00cee5e8, 2, 0x00cee648) + 28 bytes
  [43] m_dispatcher.dll:public: virtual void __thiscall 
Mfh_file::dispatch_fh(int,struct mxArray_tag * *,int,struct mxArray_tag * 
*)(0, 0x00cee5e8, 2, 0x00cee648) + 203 bytes
  [44] m_interpreter.dll:_inDispatchWithDebug(691, 0, 0x00cee5e8, 2) + 192 
bytes
  [45] m_interpreter.dll:_inDispatchFromStack(691, 0x02487828 
"gmCallFunction", 0, 2) + 877 bytes
  [46] m_interpreter.dll:enum opcodes __cdecl inDispatchCall(char const 
*,int,int,int,int *,int *)(0x02487828 "gmCallFunction", 691, 0, 2) + 156 
bytes
  [47] m_interpreter.dll:int __cdecl inInterp(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag volatile *,int 
*)(2, 0, 0, 0) + 2745 bytes
  [48] m_interpreter.dll:int __cdecl protected_inInterp(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(2, 0, 0, 
0) + 87 bytes
  [49] m_interpreter.dll:int __cdecl inInterPcodeSJ(enum 
inDebugCheck,int,int,enum opcodes,struct inPcodeNest_tag *,int *)(2, 0, 0, 
0) + 302 bytes
  [50] m_interpreter.dll:_inInterPcode(2, 0xc5cdb537, 0, 0x78503444) + 84 
bytes
  [51] m_interpreter.dll:enum inExecutionStatus __cdecl 
in_local_call_eval_function(int *,struct _pcodeheader *,int *,struct 
mxArray_tag * * const,enum inDebugCheck)(0x00cef2e4, 0x00cef354, 
0x00cef370, 2) + 152 bytes
  [52] m_interpreter.dll:__catch$?inEvalStringWithIsVarFcn@@YA?
AW4inExecutionStatus@@PAU_memory_context@@PBDW4EvalType@@HQAPAUmxArray_tag@
@W4inDebugCheck@@PAU_pcodeheader@@PAHP6A_NPAX1@Z7@Z$0(0x78503444, 
0x02494420 "gmCallFunction('wm_set_leds_int'..", 0, 0) + 219 bytes
  [53] m_interpreter.dll:enum inExecutionStatus __cdecl 
inEvalCmdWithLocalReturnandtype(char const *,int *,enum 
inDebugCheck)(0x02494420 "gmCallFunction('wm_set_leds_int'..", 0, 2, 
0x00cef3c0 "LôÎ") + 69 bytes
  [54] m_interpreter.dll:_inEvalCmdNoEnd(0x02494420 
"gmCallFunction('wm_set_leds_int'..", 0xc5cdae09, 0x7848c6b0, 0x014057c0) + 
16 bytes
  [55] bridge.dll:enum inExecutionStatus __cdecl ThrowSignal(char const 
*)(0x02494420 "gmCallFunction('wm_set_leds_int'..", 0xc5cda985, 0x78478680, 
0x78ea2440) + 75 bytes
  [56] bridge.dll:__catch$_mnParser$0(0xc5cc7ac6, 0x78ea2440, 0x0239e908, 
0) + 328 bytes
  [57] mcr.dll:public: void __thiscall 
mcrInstance::mnParser(void)(0xc5559b78, 0x004074a4, 2303668, 0) + 62 bytes
  [58] MATLAB.exe:0x004021b8(4194304, 0, 2303668, 10)
  [59] MATLAB.exe:0x00403bd2(0x7ffd6000, 0x00ceffd4 "ìÿÎ", 0x7758e4b6, 
0x7ffd6000)
  [60] kernel32.dll:0x76b04911(0x7ffd6000, 0x77ab6311, 0, 0)
  [61] ntdll.dll:0x7758e4b6(0x00403daf, 0x7ffd6000, 0, 0)
  [62] ntdll.dll:0x7758e489(0x00403daf, 0x7ffd6000, 0, 48)

[...] % Contact and support info clipped

Error in ==> gmCallFunction at 26
        retVal = calllib('GiiMote', funcName, arg1);

Original issue reported on code.google.com by leif902 on 3 Nov 2008 at 11:59

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by leif902 on 3 Nov 2008 at 11:59

GoogleCodeExporter commented 8 years ago
This issue has been merged with issue 9.

Original comment by leif902 on 25 Feb 2009 at 5:07