GZDoom startup error IDirect3D9 CreateDevice failed

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Post Reply
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

GZDoom stopped working on my computer after having no problems for about 5 months. It happened abruptly while in regular Doom II, while idling in the pause menu, crashing with the error "IDirect3D9 CreateDevice failed". Now it doesn't even start up, and that error shows up.

I have the latest GZDoom, and only play the regular Doom games (and Heretic and Hexen).
I'll attach the dxdiag and msinfo
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

Trying to add the MSInfo, but it says Request entity too large
Attachments
DxDiag.txt
(26.05 KiB) Downloaded 89 times
User avatar
Rachael
Posts: 13914
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by Rachael »

Try "gzdoom -iwad <whatever> +vid_preferbackend 0" to reset to OpenGL mode.
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

It starts up now. The window was completely flat and I had to resize it, then choose a more suitable resolution. On startups now, though, it takes a little over 20 seconds before the main menu appears.
User avatar
Rachael
Posts: 13914
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by Rachael »

It had to rebuild the shader cache - it should be faster with subsequent startups.
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

Tried a few times, still about 20 seconds to get to the main menu. Not sure why this is; at least the crash is fixed and it actually works so far, though.

Thanks!
User avatar
Rachael
Posts: 13914
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by Rachael »

Really? That seems like a bug, to me.

GZDoom should detect that you have an Intel card and build a shader cache upon every start up.
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

I'll see if it persists going into tomorrow.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by Graf Zahl »

Direct3D 9 indicates the pure software renderer, the shader cache won't even come into play there.
What's your render config?
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

I'm not sure if these are all what you're looking for, apologies. Let me know if you need more settings info:

Preferred Rendering API: OpenGL
Render Mode: Doom Software Renderer
Force Aspect Ratio: 4:3
Forced Ratio Style: Stretch
Resolution Scale: Normal
Scale Factor: 1.00
Vertical Sync: Off
Rendering Interpolation: On
User avatar
Apeirogon
Posts: 1606
Joined: Mon Jun 12, 2017 12:57 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by Apeirogon »

Did you try to turn it off and on?
Gzdoom sometimes corrupt/eat its ini file. Backup it and then delete it.
User avatar
ZDUser
Posts: 302
Joined: Sat Jan 21, 2006 10:53 am

Re: GZDoom startup error IDirect3D9 CreateDevice failed

Post by ZDUser »

Yeah, I noticed moving the config file out of there to run from scratch makes it work. Possibly something got corrupted in the ini. Though it taking long to load might be hardware issue (and might also be related/caused the problem with the ini?).
Post Reply

Return to “Technical Issues”