Author Topic: [Solved] D3DXERR_INVALIDDATA in GameImage.LoadTexture  (Read 7142 times)

Offline Ezra

  • Newbie
  • *
  • Posts: 1
[Solved] D3DXERR_INVALIDDATA in GameImage.LoadTexture
« on: December 27, 2009, 01:08:11 pm »
When I try to start the tutorial, I get an unhandled error as described in the attached UnhandledErrors.txt.
SlimDX.Direct3D9.Direct3D9Exception: D3DXERR_INVALIDDATA: Invalid data (-2005529767)

Looks like it's something to do with loading the textures.


I downloaded from Steam, which updated my DirectX and downloaded SlimDX. I also just updated my video card drivers. Game Version 2.0, demo, Windows 7.

Edit: Added DxDiag.txt.

Redit: It was a corrupted install through Steam.
Right-click the game -> Properties -> Local files -> Verify integrity of game cache.

Thanks to Morello who figured it out, to Revenantus who was very patient and helpful, and to TheWord1 and Diazo who helped out too.
« Last Edit: December 27, 2009, 02:09:09 pm by Revenantus »

Offline Revenantus

  • Arcen Games Staff
  • Hero Member Mark III
  • *****
  • Posts: 1,063
Re: D3DXERR_INVALIDDATA in GameImage.LoadTexture
« Reply #1 on: December 27, 2009, 02:07:31 pm »
Resolved. This issue was caused by a corrupt file resulting from the Steam install. Credits to Morello for suggesting the fix.

Offline Morello

  • Newbie
  • *
  • Posts: 2
Re: D3DXERR_INVALIDDATA in GameImage.LoadTexture
« Reply #2 on: December 27, 2009, 02:09:47 pm »
Just to expand on the fix, with all Steam games you can verify the game files to make sure that none are corrupt. To do this, right click on the game in steam, select properties, then select the local files tab, and click on verify integrity of game cache. Steam will check the files and if any are corrupt it should tell you and re-download them.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: [Solved] D3DXERR_INVALIDDATA in GameImage.LoadTexture
« Reply #3 on: December 27, 2009, 02:33:44 pm »
Nice work guys! Wow, fixed so quickly I had not even seen the report yet.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Kaptein

  • Jr. Member
  • **
  • Posts: 62
Re: [Solved] D3DXERR_INVALIDDATA in GameImage.LoadTexture
« Reply #4 on: December 28, 2009, 05:41:17 am »
D3DXERR_INVALIDDATA (-2005529767)

just in case you didn't yet,
error trap and instead post a useful message, like re-validify files :P