Random black screens

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
squisher
Competition winner
Posts: 91
Joined: Sat May 17, 2008 2:23 am
Contact:

Random black screens

Post by squisher »

Has *anyone* had this problem, where your game or application just goes black? I will just be flying around in the game I'm creating, and all of a suddenly everything goes black except the GUI and the custom 2D cursor. I'm about ready to rip my hair out trying to fix this.

I'm running Vista Ultimate, SP1 and VS 2005 (C++).
The problem never occurs on any of my Linux boxes. Only windows.
It occurs under both Directx9 and OpenGL modes.
I'm running Intel 2.4GHz Core 2 duo, 2 GB ram, and Geforce 7900GT video card. Not the greatest rig, but certainly capable of running my puny game. My frames per second is very high.

This problem occurs in both debug mode and release mode.

Hmm.. what other clues can I give. Usually when it happens, it's within the first couple of seconds. Almost always happens when I go 1680x1050 full screen. I'll see maybe half a second of action, then.... poof. blackness. Other times, I'll play for half an hour and it never occurs.

I've tried commenting out huge portions of the code to no avail. I've tried rebooting. I've tried every possible window size starting at 400x300. I've upgraded my video drivers. I've tried many combinations of settings in Visual studio (went back to mostly defaults, though.) It's a console application so it does start a console before launching the 3d window. My project is derived from the "Empty C++ project", no microsoft crap attached at all.

I tested the return value of beginscene and endscene.. both are true. I know the screen is black because that's the color I set the backbuffer to be.

Like I said before the exact same code works beautifully on Linux (Fedora Core 8).

Sorry for the long winded post. I'll be eternally grateful if someone could solve my problem....
Rytz
Posts: 249
Joined: Wed Oct 25, 2006 6:05 am
Location: IL, USA
Contact:

Re: Random black screens

Post by Rytz »

Just out of curiosity... have you tried testing for this on an XP box?
Last edited by Rytz on Sat Jun 21, 2008 2:43 am, edited 1 time in total.
Image
bull
Posts: 36
Joined: Wed Sep 12, 2007 8:49 am
Location: s1Ng4p0R3

Post by bull »

Behold the power of Vista
My name is bull, for we are many ...
Rytz
Posts: 249
Joined: Wed Oct 25, 2006 6:05 am
Location: IL, USA
Contact:

Post by Rytz »

bull wrote:Behold the power of Vista
LOL, well I didn't want to jump to conclusions :). I would definitely test it out on some XP or previous windows versions though.
Image
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

If the GUI still draws it's probably an issue with the camera caused by bad values coming back from the system timer. I thought this was fixed now though. What version of Irrlicht are you running, does it happen if you set affinity to one core? (open task manager, right click on the task and set affinity)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply