Begin Scene failed

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
BishiNightBird
Posts: 7
Joined: Tue Mar 07, 2006 10:36 pm

Begin Scene failed

Post by BishiNightBird »

Hello, the project that I'm working on has been having some serious issues with the begin scene failed problem.

Now, this would normally go in the Beginner's Help section, however since all of my code is multithreading, that increases the complexity of debugging by quite a bit.

So I was wanting to get an idea of what areas is likely to cause the begin scene failed. Right now it locks up after one of my configure dialog boxes goes away. I don't believe it's an issue of race conditions, but I'm looking into that now.

I'm going to keep on woring to figure out whats wrong with it(of course), but any thoughts on what might be causing it, or common problems with it would be appreciated.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, begin scene failed problem does not seem to be a common term, according to the search function. So maybe you could elaborate a little more on the symptoms? A quick look to the beginScene() method could also help. And multithread debugging is not very hard so maybe you could check which subroutine of beginScene fails?
BishiNightBird
Posts: 7
Joined: Tue Mar 07, 2006 10:36 pm

Post by BishiNightBird »

Ok, I pulled up the code, and the only place where it can error out and still print the message I'm getting is after calling "pID3DDevice->BeginScene()"

I've tried it with the DX 8 and DX9 driver and both print out errors.

The two Software renderers simply freeze, and OpenGL simply doesn't work on this computer at all.
BishiNightBird
Posts: 7
Joined: Tue Mar 07, 2006 10:36 pm

Fixed

Post by BishiNightBird »

Ok, I thought I would make an update as to what happened.

in my code, I have it so that there are visible links between different nodes. However, I only had 1 node at the time, and due to a bug, it caused the system to try to draw invalid 3d lines, which I'm guessing threw an error, which wasn't caught until past the endScene.

I'm not sure if two beginScenes in a row causes the error, but that might have been the problem.
Post Reply