[Bug?] Demo_PagingLandScape2: RSQ_FirstTerrain/freeze

yarc

22-10-2005 16:55:45

Hi,

I've installed, compiled and ran the plsm2.sln VC7.1 binary (http://tuan.kuranes.free.fr/OgreSDKplsm2.7z) on a WinXP Sp2. It compiled and the Demo_PagingLandScape2 project works quite nicely. I see all the mountains, I can navigate/move and press F1 for additional help. Thanks a lot for a very simple setup. My particular compile is a debug config on a Visual Studio .NET 2003 professional with DirectX9 (june2005 sdk) extension and NVidia display drivers. I do my work with an OpenGL Ogre rendering subsystem.

--

If, however I press 'm' in the demo to get a cursor and then left-click where there is no landscape/terrain (i.e. skywards) - the application freezes. It does not freeze if I left-click on some terrain.

Going back to Visual Studio and pressing Pause whilst in app freeze I'm told there is no source code for the particular place I'm breaking the execution and the call stack looks like this:


> ntdll.dll!7c90eb94()
ntdll.dll!7c90e9ab()
kernel32.dll!7c8094f2()
user32.dll!77d48816()
user32.dll!77d4885a()
kernel32.dll!7c8399f3()
user32.dll!77d495f9()
user32.dll!77d49402()
dinput8.dll!6ce19a67()
ntdll.dll!7c913288()
kernel32.dll!7c80b50b()
ntdll.dll!7c913288()
kernel32.dll!7c8399f3()

--

My guess from tracing the code is that the freeze happens inside a RaySceneQuery.execute() statement like this:

mRayQuery->setQueryMask (RSQ_FirstTerrain); //PLSM2 only
mRayQuery->execute (); // in here the app freezes

.. but I'm a newbie to the PLSM2, so I might be wrong.

Anybody with an expert eye who could tell me whether this is a known bug or whether I'm doing something silly somewhere?

Any and all help is appreciated.

Yarc.

tuan kuranes

22-10-2005 16:59:49

sorry, Ok. it's a known bug.
it should be fixed in CVS and soon SDK will be updated.

I just have to find a Release only crash on the CVS code to make it freeze to the SDK.

For info the loop is in the paginglandscapetile::intersect in the second nested while.

yarc

22-10-2005 17:09:49

Hello,

I commend you for the speed of your replies. Impressive!

--

I see that your reply has changed since I started to write back, so I guess I just have to wait for an update. But to answer your first question; yes I do have a mouse cursor, but when the app freezes, it is a complete freeze;- no mouse movement and no fps update.

--

As a sidenote, I've had a great time "walking" in your European_Alps mountains with the standard ogre robot. So many beautiful valleys and ridges. And the altititude sensitive shader from green to whitish is really nice. It's almost like I can feel the thin air and the chill!

You've done some excellent work with this manager of yours.

BR,

Yarc.

tuan kuranes

22-10-2005 17:37:59

Sorry for editing the post, I misread the problem first time.

it's now the definitive reply and I'm afraid you have to wait a bit that I fix my new unrelated CVS bug to get the fix in the SDK version. but that shouldn't prevent you to test all the other features.

Thanks for comments.