Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: [1] 2

Author Topic: Problem while running GUITEsting in release mode  (Read 5989 times)

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« on: April 10, 2006, 06:05:35 AM »

Hi,

I recompile all elements of the TheoraVideo solution file, ie:
-pTypes,
-Theora Static,
-Theora VideoPlugin,
-AudioFMod,
-AudioOpenAL,
-ogg,
-vorbis

and when I launch the GUITesting.exe, I obtain an assertion Failed:

Program: ..\GEGUI_TheoraDemo\bin\release\GUITEsting.exe
File: d:\ogredev\dagon\ogremain\src\ogreopenlogmanager.cpp
Line: 40

Expression: ms_Singleton

Does somebody have any idea about this problem ?
The ogreOpenLogManager ?

All works fine in debug mode !!!

Thanks a lot.
Joel.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #1 on: April 10, 2006, 07:14:54 AM »

Make sure that You are linking against all release import lib's, and that all the binary dll's in the release directory are all release builds.

These singleton errors are *always* (in this case) casued by mixing up of release/debug files.
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #2 on: April 10, 2006, 07:58:15 AM »

Hi and Thanks.

I redone all the compilation and I obtain:

-ptypes.lib (545 Ko) into ...\videoplugin\ptypes-1.8.3\win32\Release directory,
-theora_static.lib (190 Ko) into ...\videoplugin\theora\win32\Static_Release,
-ogg_static.lib (27 Ko) and I put it into a lib\addons dir,
-vorbis_static.lib (249 Ko) and I put it into the same dir,
-FMOD_MOD.dll (22 Ko) automatically placed into ...\videoplugin\CEGUI_TheoraDemo\bin\Release,
-OAL_MOD.dll (11 Ko) automatically placed into ...\videoplugin\CEGUI_TheoraDemo\bin\Release,
-Plugin_TheoraVideoSystem.dll (232 Ko) automatically placed into ...\videoplugin\CEGUI_TheoraDemo\bin\Release,
-and finally I recompile in release mode the GUITEstin and obtain a release version (60 Ko),
-I found OpenAL32.lib into the OpenAL 1.1 with EFX SDK...

Unfortunatly, I have again the Singleton Assertion...

Could you see where I made an error ?
I continue to search again, but I don't know where exactly ;-)

Thanks.
Joe.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #3 on: April 10, 2006, 08:26:54 AM »

This is a problem with your Ogre lib's. Not any of the others. Ensure you are linking against the release version Of Ogre. And have the release versions of Ogre and other dll's in the demo's release directory when running. And, that the Theora_VideoSystem plugin is also there and is the release version.
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #4 on: April 10, 2006, 09:06:30 AM »

Hi,
I don't understand. All semms to be good.

My PATH points to .../OgreSDK/bin:.../OgreSDK/bin/debug:.../OgreSDK/bin/release:.../OgreSDK/bin/addons

so the GUITesting.exe could find its lib's...

This exe need OgreMain.dl, CEGUIBase.dll and OgreGUIRenderer.dlll for instance ?
Do it need another one ?

If my PATH is correct, I don't need to copy any DLL, no ?

And my plugin seems to be good cause it has been compiled with release lib...

So, I'm going to turn into goat (like we say in France)  ;-)
Have you another little idea ?
Thanks.
Joe.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #5 on: April 10, 2006, 09:25:26 AM »

Quote from: "joeBlack"

My PATH points to .../OgreSDK/bin:.../OgreSDK/bin/debug:.../OgreSDK/bin/release:.../OgreSDK/bin/addons

so the GUITesting.exe could find its lib's...


No.. That is no good. You should not, under any circumstances, add development libs to your path. That is you problem. Remember, although the Ogremain is named Ogremain.dll and Ogremain_d.dll, everything else is not...

Especially the plugins. So, you are mixing debug dll's with release dll's. Remove those from your system path, and just copy the dll's over to the respective folder (debug/release) of the demo. The same applies to any Ogre app you plan on making.

installing stuff to the path is not a good solution to anything, causes problems just like these :D
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #6 on: April 10, 2006, 11:29:36 AM »

Hi,

You're a visionary ;-)
I'll try that tomorrow !!
Thanks.
Joe.
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #7 on: April 11, 2006, 12:30:04 AM »

Hi,

Ok, I cleared my PATH and copied all the necessary DLL. I do not have the Assertion now, good !!!

The last pb is that my FPS grows to 260 but the videos continue to be jerked... but not for cheer.ogg !!!
I explain:

For instance, when I play cheer.ogg in debug mode, I obtain CF:1832 and DF:118 and in release mode CF:1832 / DF:1 good ;-)

But, my video encoded with the '-p preview' option gives CF:366 / DF:338 in debug mode and CF:363 / DF:353 not good !

I tested it with video:0 and audio:-2 quality, this is the same problem:
CF:375 / DF:358 in debug mode and CF:308 / CF:301 in release mode...

Have you already seen that ???

Thanks a lot.
Joe.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #8 on: April 11, 2006, 09:43:01 AM »

What are the dimensions of the clip? (widthxheight)
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #9 on: April 11, 2006, 12:46:28 PM »

720x576, I'll reduce its tomorrow and make a test.
Thx.
Joe.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #10 on: April 11, 2006, 12:48:59 PM »

Oh yeah, that is pretty big.

Two things to remember always, libTheora (codec) is not heavily optimised *and* Power Of Two textures - all textures (on the majority of cards) get scaled to power of 2. So, yours become 1024 x 1024 texture size. Quite a large texture to lock each frame.
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #11 on: April 12, 2006, 12:16:52 AM »

Hi,

Unfortunatly, I reduce the size of my video to 512x408 and the problem exists again.
The most stange is thatcheer.ogg looks good now in release mode but for instance a preview's one (made with -p preview option) works bad in release mode.

The size of this preview file is 384x288. In debug mode, I have CF:380 and DF:29 and in release's one, CF:323 / DF:320...

I tested too the 512x408 resized videos and this is the same slowness; CF:378 / DF:374.

It's strange, no ? I't not better whereas the FPS grows from 24 to 280 !!!
Have you another idea ?
Thx. Joe.
Logged

joeBlack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 13
    • View Profile
Problem while running GUITEsting in release mode
« Reply #12 on: April 12, 2006, 01:20:22 AM »

Hi,

Which version of oog and vorbis do you use for your compilation ?
I have downloaded this files libogg-1.1.3.zip and libvorbis-1.1.2.zip but I don't know if this is the correct one...

Could you confirme to me the good version of these lib or have you 2 URL for me, please ?
Thanks a lot.
Joe.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Problem while running GUITEsting in release mode
« Reply #13 on: April 12, 2006, 08:17:50 AM »

I am using the latest, but am refactoring the Theora stuff into WGE at the moment.

But, I do not think that matters. Try getting VLC and playing your converted video there. In any case, I have not used the preview switch, and so do not know what it does. You could try uploading your video (before/after conversion) and I might be able to take a look.
Logged

BenO

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Problem while running GUITEsting in release mode
« Reply #14 on: April 14, 2006, 11:50:52 AM »

I have videos ( 640 x 480 ) running fine in VLC :o
but can't run them in theora (too slow) >.<


how shall we get the dropped frames stats ?
Logged
Pages: [1] 2