Code::Blocks Forums

User forums => Help => Topic started by: shador on October 23, 2009, 12:43:18 pm

Title: Debugger hangs with Ogre projects
Post by: shador on October 23, 2009, 12:43:18 pm
I have been using Codeblocks on my Ubuntu installation (9.04) and have been coding some stuff with the 3D engine Ogre. Everything worked fine until I tried using the debug feature. For some reason when I debug an Ogre project everything just hangs, I canät use the mouse and no button work either. The only thing I can do is press ctrl+alt+f1 to switch to terminal mode and kill my current session.

I tried debugging a regular terminal applikation and that worked perfectly. I also tried creating several new Ogre projects but they all react the same.

So anyone got a suggestions on what I could do to get the debugger working with my projects? I really miss the debugger =P
Title: Re: Debugger hangs with Ogre projects
Post by: MortenMacFly on October 23, 2009, 01:04:23 pm
Compiler/ debugger version?
Title: Re: Debugger hangs with Ogre projects
Post by: shador on October 23, 2009, 02:21:44 pm
Hmm good question! The compiler is the one from the repositories in the Ubuntu synaptic, version 4.3

The debugger I don't know. How do I check that one? I'm using the debugger that came with Codeblocks 8.02

EDIT: Just saw that the debugger is gnu gdb 6.8-debian!
Title: Re: Debugger hangs with Ogre projects
Post by: oBFusCATed on October 23, 2009, 03:37:29 pm
You get the standard answer: try a nightly :)
You could also try the debugger branch.

Another thing is to enable the debug log for the debugger from settings -> compiler & debugger -> debugger -> Display debugger's log
And paste it here.
Title: Re: Debugger hangs with Ogre projects
Post by: manowar on October 23, 2009, 06:05:58 pm
@shador

Are you using OIS with OGRE ? Are you sure that OIS does not 'grab' the mouse. I have the feeling that your issues are related with input and not Ogre. You can change that easily when you initialise OIS.
I have something like that in my input manager:

Code
#if defined OIS_WIN32_PLATFORM
paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND" )));
paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE")));
paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND")));
paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE")));
#elif defined OIS_LINUX_PLATFORM
paramList.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));
paramList.insert(std::make_pair(std::string("x11_mouse_hide"), std::string("false")));
paramList.insert(std::make_pair(std::string("x11_keyboard_grab"), std::string("false")));
paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true")));
#endif

especialy look at that line:
Code
paramList.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));

I hope this is helpful.
 
Title: Re: Debugger hangs with Ogre projects
Post by: shador on October 24, 2009, 03:46:24 pm
Are you using OIS with OGRE ? Are you sure that OIS does not 'grab' the mouse. I have the feeling that your issues are related with input and not Ogre. You can change that easily when you initialise OIS.
I have something like that in my input manager:

especialy look at that line:
Code
paramList.insert(std::make_pair(std::string("x11_mouse_grab"), std::string("false")));

I hope this is helpful.

Yes that was it! Thank you so much for helping me with that. Now everything is working perfectly =)