DonCorreia
21-10-2008 01:29:31
Hello,
I can build Hydrax and the demo, but when I run the demo, it crashes.
Looking at ogre.log, I think it crashes when loading the Hydrax configuration file.
Can someone help?
P.S: Sorry if I posted in the worng place.
Xavyiy
21-10-2008 09:34:47
I need more info of the problem...
DonCorreia
21-10-2008 13:00:08
Xavyiy,
I built the demo and when I run, it crashes before anything appears in the ogre window. The ogre .log file last lines are:
format is PF_X8R8G8B8,512x512x1.
09:43:45: Texture: ct_bk.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
09:43:45: Texture: ct_lf.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
09:43:45: Texture: ct_rt.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
09:43:45: Texture: ct_up.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
09:43:45: Texture: ct_dn.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
09:43:45: [Hydrax] Hydrax created.
When I try to debug in Visual Studio 2008, the execution breaks while trying to load the HydraxDemo.hdx file, in the loadCfgFile method of CfgFileManager. It breaks in this line:
Result.second.load(Ogre::ResourceGroupManager::getSingleton().openResource(File, HYDRAX_RESOURCE_GROUP));
The call stack has this info:
OgreMain.dll!10066f7d()
[Frames below may be incorrect and/or missing, no symbols loaded for OgreMain.dll]
OgreMain.dll!100a463a()
OgreMain.dll!1013ccbb()
msvcp80.dll!7c421201()
msvcp80.dll!7c4239be()
msvcp80.dll!7c4239cb()
> Hydrax.dll!Hydrax::CfgFileManager::_loadCfgFile(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & File="HydraxDemo.hdx", std::pair<bool,Ogre::ConfigFile> & Result=(true,{mSettings={...} })) Line 161 + 0x67 bytes C++
Hydrax.dll!Hydrax::CfgFileManager::load(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & File=) Line 45 C++
testProject.exe!SampleApp::createScene() Line 248 + 0x2b bytes C++
OgreMain.dll!102dd3f2()
testProject.exe!ExampleApplication::createViewports() Line 197 C++
testProject.exe!__CxxThrowException@8() + 0xad0 bytes C++
Maybe this is a stupid question, but is it possible that I built the Hydrax missing something?
Thanks for the help!
P.S: The precompiled demo works fine.
Xavyiy
21-10-2008 13:03:43
It seems to be that you haven't HydraxDemo.hdx in Hydrax source group, If you don't load any config file it crashes?
DonCorreia
21-10-2008 14:20:10
Thanks for helping.
I have HydraxDemo.hdx in the \media\Hydrax folder and the resources.cfg seems to be correct.
If I comment the line:
mHydrax->loadCfg("HydraxDemo.hdx");
It crashes and my ogre.log last lines are:
format is PF_X8R8G8B8,512x512x1.
11:08:24: Texture: ct_bk.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:08:24: Texture: ct_lf.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:08:24: Texture: ct_rt.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:08:24: Texture: ct_up.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:08:25: Texture: ct_dn.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
11:08:25: [Hydrax] Hydrax created.
11:08:25: [Hydrax] Creating module...
11:08:25: [Hydrax] Creating ProjectedGridVertex module.
11:08:25: [Hydrax] ProjectedGridVertex created.
11:08:25: [Hydrax] Module created.
11:08:25: [Hydrax] Initializating RTT Manager...
Xavyiy
21-10-2008 19:17:22
Can you post an screenshot of the error under the VC debugger?
It seems to be something related with libs mixing(Different versions).
DonCorreia
21-10-2008 19:55:49
Xavyiy
21-10-2008 21:32:51
Are you sure that you are not mixing different dll's? Like the dll's of the precompiled demo and your application?
It seems to be a problem related with this, there isn't another reason of these kind of problems.
DonCorreia
22-10-2008 00:46:22
I will check again tomorrow, but I don´t think so. If I use the DLL from the precompiled demo, I get a different error.
Maybe I am misconfigurating something when building Hydrax or the demo. Is this possible?
DonCorreia
23-10-2008 14:15:01
I still cannot run the demo I built.
Please, is it possible to post a how-to build the DLL and how to build the demo? Also, when building the demo, it missed modules.h in the /src/Hydrax/Modules folder of the Demo1 folder. I've copied the one in the Hydrax/Modules folder.
Thanks.
DonCorreia
28-10-2008 11:36:04
Hi,
I found what was my problem.
I was using the Ogre pre-compiled DLLs for VC 2008 and building Hydrax in VC 2005. The problem is that they look the same and I didn't noticed that the solution was not converted for VC 2008.
So I was using a DLL built in VC 2005 with Ogre VC 2008 DLLs and then trying to run the demo in VC 2005.
Thanks for the help.