We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 773

Summary: Crash in sdl_dx5events.c:163 in DX5_DInputInit()
Product: SDL Reporter: Albert Zeyer <ich>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.13   
Hardware: x86   
OS: Other   

Description Albert Zeyer 2009-07-21 08:03:04 UTC
Hi,

We got this crash report:

sdl_dx5events.c  	163  	DX5_DInputInit(void)
sdl_dx5events.c 	891 	DX5_CreateWindow(void)
sdl_dx5video.c 	914 	DX5_VideoInit(struct SDL_PixelFormat * vformat = <Memory access error>)
sdl_video.c 	240 	SDL_VideoInit(char * driver_name = 0x00fa5b50 "directx", unsigned int flags = 0)
sdl.c 	71 	SDL_InitSubSystem(unsigned int flags = 0x5944c5)
sdl.c 	162 	SDL_Init(unsigned int flags = 0x5944c5)

Full crash report:
http://humus.kvalitne.cz/olx_reports/report35/report35.html

I guess this is some bug in SDL. Perhaps some error-check is missing there or something.
Comment 1 Ryan C. Gordon 2009-09-12 20:41:12 UTC
It looks like it's crashing in in DINPUT.DLL, somewhere under DirectInputCreateA(). This is usually flakey drivers.

There's probably nothing that will fix this, short of a system reinstall or using SDL's windib target instead of DirectX.

--ryan.