GivePass / x360ce

Automatically exported from code.google.com/p/x360ce
1 stars 0 forks source link

X360CE.EXE - CLR_EXCEPTION_e0434352_x360ce.exe!Microsoft.Xna.Framework.Input.UnsafeNativeMethods.GetState (when DLL compiled with VS2010) #451

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This occurs when setting any button or pov to EMPTY.
oddly, it does not occur on the triggers.

I'm sure Tapcio is already aware of this, but i'll just post this for tracking.

This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(5f2c.40a4): CLR exception - code e0434352 (first/second chance not available)
eax=00000000 ebx=0028dd54 ecx=00000005 edx=00000000 esi=00000002 edi=00000000
eip=7789013d esp=0028dd04 ebp=0028dda0 iopl=0         nv up ei pl zr na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000246
ntdll!ZwWaitForMultipleObjects+0x15:
7789013d 83c404          add     esp,4
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************

*** WARNING: Unable to verify checksum for mscorlib.ni.dll
*** WARNING: Unable to verify checksum for System.Windows.Forms.ni.dll
GetPageUrlData failed, server returned HTTP status 404
URL requested: 
http://watson.microsoft.com/StageOne/x360ce_exe/2_1_2_190/51040929/KERNELBASE_dl
l/6_1_7601_17932/50327672/e0434352/0000c41f.htm?Retriage=1

FAULTING_IP: 
KERNELBASE!RaiseException+58
76e3c41f c9              leave

EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 76e3c41f (KERNELBASE!RaiseException+0x00000058)
   ExceptionCode: e0434352 (CLR exception)
  ExceptionFlags: 00000001
NumberParameters: 5
   Parameter[0]: 80131604
   Parameter[1]: 00000000
   Parameter[2]: 00000000
   Parameter[3]: 00000000
   Parameter[4]: 58c10000

PROCESS_NAME:  x360ce.exe

ERROR_CODE: (NTSTATUS) 0xe0434352 - <Unable to get error code text>

EXCEPTION_CODE: (NTSTATUS) 0xe0434352 - <Unable to get error code text>

EXCEPTION_PARAMETER1:  80131604

EXCEPTION_PARAMETER2:  00000000

EXCEPTION_PARAMETER3:  00000000

EXCEPTION_PARAMETER4: 0

MOD_LIST: <ANALYSIS/>

NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

MANAGED_STACK: !dumpstack -EE
No export dumpstack found

MANAGED_BITNESS_MISMATCH: 
Managed code needs matching platform of sos.dll for proper analysis. Use 'x86' 
debugger.

ADDITIONAL_DEBUG_TEXT:  Followup set based on attribute 
[Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]

LAST_CONTROL_TRANSFER:  from 58d348c7 to 76e3c41f

FAULTING_THREAD:  ffffffff

DEFAULT_BUCKET_ID:  STACKIMMUNE

PRIMARY_PROBLEM_CLASS:  STACKIMMUNE

BUGCHECK_STR:  APPLICATION_FAULT_STACKIMMUNE_NOSOS_CLR_EXCEPTION_WRONG_SYMBOLS

STACK_TEXT:  
00000000 00000000 x360ce.exe+0x0

SYMBOL_NAME:  x360ce.exe

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: x360ce

IMAGE_NAME:  x360ce.exe

DEBUG_FLR_IMAGE_TIMESTAMP:  51040929

STACK_COMMAND:  ** Pseudo Context ** ; kb

FAILURE_BUCKET_ID:  STACKIMMUNE_e0434352_x360ce.exe!Unknown

BUCKET_ID:  
APPLICATION_FAULT_STACKIMMUNE_NOSOS_CLR_EXCEPTION_WRONG_SYMBOLS_x360ce.exe

FOLLOWUP_IP: *** ERROR: Module load completed but symbols could not be loaded 
for x360ce.exe

x360ce+0
013b0000 4d              dec     ebp

WATSON_STAGEONE_URL:  
http://watson.microsoft.com/StageOne/x360ce_exe/2_1_2_190/51040929/KERNELBASE_dl
l/6_1_7601_17932/50327672/e0434352/0000c41f.htm?Retriage=1

Followup: MachineOwner
---------

Original issue reported on code.google.com by danialho...@gmail.com on 12 Feb 2013 at 4:18

GoogleCodeExporter commented 9 years ago
Not reproduced here. Empty works fine.

Original comment by tapcio on 12 Feb 2013 at 4:26

GoogleCodeExporter commented 9 years ago
Hmm, ok, something must be going on with the reset code changes that has caused 
some issues in vs2010 builds.

Original comment by danialho...@gmail.com on 12 Feb 2013 at 5:01

GoogleCodeExporter commented 9 years ago
loading the right symbols will help

Original comment by danialho...@gmail.com on 12 Feb 2013 at 5:06

GoogleCodeExporter commented 9 years ago
ok, for whatever reason, i cannot get the correct symbols to load so i'll post 
up the dmp file here http://www.mediafire.com/?dfmdjbkia1so7g9

Original comment by danialho...@gmail.com on 12 Feb 2013 at 5:13

GoogleCodeExporter commented 9 years ago
http://pastebin.com/A8hKhSEC

doesn't seem to happen in the 540 binary included, or the latest downloadable 
version of the dll's.

only msvc10 builds >.<

Original comment by danialho...@gmail.com on 12 Feb 2013 at 6:27

GoogleCodeExporter commented 9 years ago
apparently the wrong CLR is being loaded when a vs2010 binary is loaded.

CLR 4.0 should be loaded, but 2.0r3 is instead.

Original comment by danialho...@gmail.com on 12 Feb 2013 at 6:33

GoogleCodeExporter commented 9 years ago
Seems somewhere in GetState.

Original comment by tapcio on 12 Feb 2013 at 6:40

GoogleCodeExporter commented 9 years ago
I finally figured out how to get the full windbg info had to enter .loadby sos 
clr

http://pastebin.com/piHzSDEe - way to large to paste here

Original comment by danialho...@gmail.com on 12 Feb 2013 at 6:45

GoogleCodeExporter commented 9 years ago
Can you upload dll file ?

Original comment by tapcio on 12 Feb 2013 at 7:02

GoogleCodeExporter commented 9 years ago
PS: It must be exactly same as in windbg report and please attach pdb too.

Original comment by tapcio on 12 Feb 2013 at 7:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue started occuring inx 360ce.App-2.0.2.188.zip 

x360ce.App-2.0.2.163.zip works ok

Original comment by danialho...@gmail.com on 12 Feb 2013 at 7:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It basically occurs when any button field is empty

i can leave the triggers and axes fields empty with no issue.

Heres the new dmp, dll and pdb
http://www.mediafire.com/?44bd1hdr93gts4e

Original comment by danialho...@gmail.com on 12 Feb 2013 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by danialho...@gmail.com on 13 Feb 2013 at 8:55

GoogleCodeExporter commented 9 years ago
I found a stack corruption issue in StringToGUID functions ... Maybe this is a 
problem.

Original comment by tapcio on 13 Feb 2013 at 10:16

GoogleCodeExporter commented 9 years ago
Potentially, though would it cause more issues under one compiler vs another.

Original comment by danialho...@gmail.com on 13 Feb 2013 at 11:32

GoogleCodeExporter commented 9 years ago
I will try to update application to make sure that XInput crash won't bring 
application down.

Original comment by ejocys on 14 Feb 2013 at 8:35

GoogleCodeExporter commented 9 years ago
@danialhorton

Try r626

Original comment by tapcio on 14 Feb 2013 at 11:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I want to change button names to something nicer, without spaces. This is my 
proposition: http://pastebin.com/BsECgZ4r

Original comment by tapcio on 14 Feb 2013 at 12:00

GoogleCodeExporter commented 9 years ago
seems fixed by r626 :)

i'll leave this open since ejocy's wants to further prevent app crashes and 
your last comments tapcio

Original comment by danialho...@gmail.com on 14 Feb 2013 at 12:50

GoogleCodeExporter commented 9 years ago
@tapcio: Yes, it would be nicer. Good suggestion. In C# code and on database I 
use Microsoft's naming standards combined with 
Microsoft.Xna.Framework.Input.Buttons enumeration with "Button" as prefix for 
buttons. I am using these setting names now:

AxisToDPadDeadZone
AxisToDPadEnabled
AxisToDPadOffset
ButtonA
ButtonB
ButtonBig
ButtonBack
ButtonGuide
ButtonStart
ButtonX
ButtonY
DPad
DPadDown
DPadLeft
DPadRight
DPadUp
ForceEnable
ForceOverall
ForceSwapMotor
ForceType
GamePadType
LeftMotorPeriod
LeftShoulder
LeftThumbAntiDeadZoneX
LeftThumbAntiDeadZoneY
LeftThumbAxisX
LeftThumbAxisY
LeftThumbButton
LeftThumbDeadZoneX
LeftThumbDeadZoneY
LeftThumbDown
LeftThumbLeft
LeftThumbRight
LeftThumbUp
LeftTrigger
LeftTriggerDeadZone
PassThrough
RightMotorPeriod
RightShoulder
RightThumbAntiDeadZoneX
RightThumbAntiDeadZoneY
RightThumbAxisX
RightThumbAxisY
RightThumbButton
RightThumbDeadZoneX
RightThumbDeadZoneY
RightThumbDown
RightThumbLeft
RightThumbRight
RightThumbUp
RightTrigger
RightTriggerDeadZone

Basically this pattern:
<group><name>
<group> - Button|DPad|Force|LeftTrigger|RightTrigger|LeftThumb|RightThumb...
<name>  - Button|DeadZoneX|DeadZoneY|AxisX|AxisY|Up|Down|Left|Right...

It would be preferable for names to be as close as possible to original names 
chosen by Microsoft (in C++ or C# code).

My format fits with C# coding practices and XML perfectly. Your C++ format fits 
perfectly too. I can adapt application to support multiple naming standards and 
add methods which will upgrade INI to new format.

Original comment by ejocys on 14 Feb 2013 at 7:36

GoogleCodeExporter commented 9 years ago
While' we're talking about the app, it would be nice if it auto size so that 
all the text is visible on the General tab.

when system dpi is set to 125 X/B/A and the stick axes and button are slightly 
cut off.

Original comment by danialho...@gmail.com on 14 Feb 2013 at 8:44

GoogleCodeExporter commented 9 years ago
Issue 464 has been merged into this issue.

Original comment by danialho...@gmail.com on 17 Feb 2013 at 4:37

GoogleCodeExporter commented 9 years ago
Issue 492 has been merged into this issue.

Original comment by danialho...@gmail.com on 13 Mar 2013 at 3:14

GoogleCodeExporter commented 9 years ago
Issue 492 has been merged into this issue.

Original comment by danialho...@gmail.com on 13 Mar 2013 at 3:14