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 2497

Summary: Crash in SDL2.dll when running under VMWare
Product: SDL Reporter: Andreas Ragnerstam <andreas.ragnerstam>
Component: renderAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: adam
Version: 2.0.2   
Hardware: x86_64   
OS: Windows 7   
Attachments: Simple example that crashes when compiled with mingw64 and run with SDL2.0.2

Description Andreas Ragnerstam 2014-04-14 08:59:43 UTC
Created attachment 1619 [details]
Simple example that crashes when compiled with mingw64 and run with SDL2.0.2

When running an application on a Windows 7 enterprise or Windows 2008 server under VMWare using SDL2 2.0.2 (or 2.0.3) I run into a crash in SDL2.dll:

Problem signature:
  Problem Event Name:	APPCRASH
  ...
  Fault Module Name:	SDL2.dll
  Fault Module Version:	2.0.2.0
  Fault Module Timestamp:	531a9f16
  Exception Code:	c0000005
  Exception Offset:	00000000000de832
  OS Version:	6.1.7601.2.1.0.18.10

The crash occurs even with a very simple application, I will attach an example. I build the application with mingw64 cross-compiler on Fedora Linux. I did not have the same problem with SDL2.0.1. The exception code means segmentation fault.

The problem disappears if I only use software renderer by either adding environment variable SDL_RENDER_DRIVER="software" or add the SDL_RENDERER_SOFTWARE flag to SDL_CreateRenderer(). So seems to be some issue with DirectX on either Windows servers or Windows running under VMWare.
Comment 1 Adam M. 2014-05-14 21:13:45 UTC
Same issue in general with the official compiled version and VirtualBox (without its experimental DirectX support).
Comment 2 Sam Lantinga 2014-06-22 16:46:05 UTC
Thanks for the clue, I was finally able to reproduce this in VirtualBox.

This should be fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip

Please let me know if you're still running into this!