Crash without focus.

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

overeasy
Just popping in
Just popping in
Posts: 3
Joined: Thu Jul 08, 2010 14:53

Crash without focus.

Postby overeasy » Thu Jul 08, 2010 15:11

My Ogre application crashes when I start it up without focus ("Access violation error").

First-chance exception at 0x771fb727 (KernelBase.dll) in Charm.exe: Microsoft C++ exception: Ogre::InternalErrorException at memory location 0x0036b4e4..
First-chance exception at 0x771fb727 (KernelBase.dll) in Charm.exe: Microsoft C++ exception: Ogre::InternalErrorException at memory location 0x0036b4e4..
First-chance exception at 0x771fb727 (KernelBase.dll) in Charm.exe: Microsoft C++ exception: Ogre::InternalErrorException at memory location 0x0036b4e4..

It brings up CEGUIOgreRenderer.cpp and crashes at the second to last line of

Code: Select all

void OgreRenderer::beginRendering()
{
    using namespace Ogre;

    // initialise render settings
    d_renderSystem->setLightingEnabled(false);
    d_renderSystem->_setDepthBufferParams(false, false);
    d_renderSystem->_setDepthBias(0, 0);
    d_renderSystem->_setCullingMode(CULL_NONE);


The last three lines of the .log are

Code: Select all

08/07/2010 11:09:38 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0036CFA8)
08/07/2010 11:09:38 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0036CFA8)
08/07/2010 11:09:38 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0036CFA8)


Where do I go from here?

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Crash without focus.

Postby Jamarr » Thu Jul 08, 2010 16:09

You really need to post the critical part of, or simply the entire, CEGUI.log file; it will provide us with information on the environment you are using (see: viewtopic.php?f=10&t=4971). Also, have you tried debugging into the ogre code to see exactly what is causing _setDepthBias to throw an exception?
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

overeasy
Just popping in
Just popping in
Posts: 3
Joined: Thu Jul 08, 2010 14:53

Re: Crash without focus.

Postby overeasy » Thu Jul 08, 2010 16:20

Jamarr wrote:You really need to post the critical part of, or simply the entire, CEGUI.log file; it will provide us with information on the environment you are using (see: viewtopic.php?f=10&t=4971). Also, have you tried debugging into the ogre code to see exactly what is causing _setDepthBias to throw an exception?


i'm thinking perhaps that isn't really where it crashes (if it was crashing from a null d_RenderSystem, it would have crashed sooner).

The application runs fine when I keep the window focused during start up. The application runs fine when the window loses focus and gains focus after starting up. Only if it does not have focus during start up does it crash.

Code: Select all

08/07/2010 12:19:57 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
08/07/2010 12:19:57 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
08/07/2010 12:19:57 (Std)    +                          (http://www.cegui.org.uk/)                         +
08/07/2010 12:19:57 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

08/07/2010 12:19:57 (Std)    CEGUI::Logger singleton created. (07DB0918)
08/07/2010 12:19:57 (Std)    
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    * Important:                                                                   *
08/07/2010 12:19:57 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
08/07/2010 12:19:57 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
08/07/2010 12:19:57 (Std)    *     support being given; please do not waste our time.                       *
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    ---- Version 0.7.1 (Build: Jul  5 2010 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
08/07/2010 12:19:57 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
08/07/2010 12:19:57 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
08/07/2010 12:19:57 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
08/07/2010 12:19:57 (Std)    ---- Scripting module is: None ----
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
08/07/2010 12:19:57 (Std)    ********************************************************************************
08/07/2010 12:19:57 (Std)    
08/07/2010 12:19:57 (Std)    ---- Begining CEGUI System initialisation ----
08/07/2010 12:19:57 (Std)    CEGUI::ImagesetManager singleton created (07DB0800)
08/07/2010 12:19:57 (Std)    CEGUI::FontManager singleton created. (07DB1CF0)
08/07/2010 12:19:57 (Std)    CEGUI::WindowFactoryManager singleton created
08/07/2010 12:19:57 (Std)    CEGUI::WindowManager singleton created (07DB2640)
08/07/2010 12:19:57 (Std)    CEGUI::SchemeManager singleton created. (07DB39E0)
08/07/2010 12:19:57 (Std)    CEGUI::MouseCursor singleton created. (07DB3D48)
08/07/2010 12:19:57 (Std)    CEGUI::GlobalEventSet singleton created. (07DB47A0)
08/07/2010 12:19:57 (Std)    CEGUI::WidgetLookManager singleton created. (07DB4930)
08/07/2010 12:19:57 (Std)    CEGUI::WindowRendererManager singleton created (07DB4BD0)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'DefaultWindow' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'DefaultWindow' windows added. (07DB4D50)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'DragContainer' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'DragContainer' windows added. (07DB4F10)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'ScrolledContainer' windows added. (07DB5118)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'ClippedContainer' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'ClippedContainer' windows added. (07DB5320)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (07DB5530)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (07DB5748)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
08/07/2010 12:19:57 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (07DB5908)
08/07/2010 12:19:57 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (07DB5B28)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (07DB5CE8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (07DB5EA8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (07DB60D8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (07DB6298)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (07DB6458)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (07DB6618)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (07DB67D8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (07DB6A68)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (07DB6E28)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (07DB6F00)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (07DB70C0)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (07DB7320)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (07DB7590)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (07DB7750)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (07DB7910)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (07DB7AD0)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (07DB7C90)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (07DB7E50)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (07DB8010)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (07DB81D0)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (07DB8390)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (07DB8638)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (07DB87F8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (07DB89B8)
08/07/2010 12:19:58 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
08/07/2010 12:19:58 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (07DB8B78)
08/07/2010 12:19:58 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
08/07/2010 12:19:58 (Std)    CEGUI::System singleton created. (07DB0508)
08/07/2010 12:19:58 (Std)    ---- CEGUI System initialisation completed ----
08/07/2010 12:19:58 (Std)    
08/07/2010 12:19:58 (Std)    Started creation of Scheme from XML specification:
08/07/2010 12:19:58 (Std)    ---- CEGUI GUIScheme name: TaharezLook
08/07/2010 12:19:58 (Std)    Started creation of Imageset from XML specification:
08/07/2010 12:19:58 (Std)    ---- CEGUI Imageset name: TaharezLook
08/07/2010 12:19:58 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
08/07/2010 12:19:58 (Std)    Started creation of Font from XML specification:
08/07/2010 12:19:58 (Std)    ---- CEGUI font name: DejaVuSans-10
08/07/2010 12:19:58 (Std)    ----       Font type: FreeType
08/07/2010 12:19:58 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
08/07/2010 12:19:58 (Std)    ---- Real point size: 10
08/07/2010 12:19:58 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
08/07/2010 12:19:58 (Std)    ===== Look and feel parsing completed =====
08/07/2010 12:19:58 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Button' added. (07DECEC8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Default' added. (07E4AB78)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (07E47A38)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (07DDBE68)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (07DDBB68)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (08009D28)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (07DBFD88)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (07DC34B8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (07F6BCA0)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (07FD2360)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (07DEC398)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (07DC3C80)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (080098D8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (0800DEE8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (0800E0A8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (0800E268)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Slider' added. (0800E428)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Static' added. (0800C660)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (0800C820)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (0800C9E0)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (08012868)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (08012A28)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (08012BE8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (08012DA8)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (080157C0)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (08015980)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (08015B40)
08/07/2010 12:19:58 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
08/07/2010 12:19:58 (Std)    WindowRendererFactory 'Falagard/Tree' added. (08015D00)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'. (0024CF58)
08/07/2010 12:19:58 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0024CF58)
08/07/2010 12:19:59 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0024CF58)

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Crash without focus.

Postby Jamarr » Thu Jul 08, 2010 16:27

As you say, it is probably a memory-corruption issue and the code just happens to crash there. In which case, I cannot really help you; though CE will probably be willing to try and reproduce the issue. Still, it should not take much effort to step into the OGRE code and verify where/why that method is throwing an exception.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

overeasy
Just popping in
Just popping in
Posts: 3
Joined: Thu Jul 08, 2010 14:53

Re: Crash without focus.

Postby overeasy » Thu Jul 08, 2010 17:01

Jamarr wrote:As you say, it is probably a memory-corruption issue and the code just happens to crash there. In which case, I cannot really help you; though CE will probably be willing to try and reproduce the issue. Still, it should not take much effort to step into the OGRE code and verify where/why that method is throwing an exception.


I would look into it further, but the call stack does not display past that section. It probably just takes someone who is familiar with both Ogre and CEGUI to identify the differences between starting with window focus and without. Perhaps:

- CEGUI needs to receive some sort of mouse events before rendering the first frame
- Something in the OGRE frame rendering sets up values that CEGUI needs to run

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Crash without focus.

Postby Jamarr » Fri Jul 09, 2010 20:03

Looking at this again, since you received a "ogre" exception there should be an exception message in your OGRE log. You could also catch this exception and print out the message associated with it. The message you posted looks like the standard windows exception message, which is not going to include this information.

Also, there have been issues with the OgreRenderer and DX9 in recent history. See:
viewtopic.php?f=3&t=4885&p=23109&hilit=ogre+crash#p23109
viewtopic.php?f=10&t=4450&p=20775&hilit=ogre+crash#p20768

I do not know if these are related, but it sounds like Ogre is not being fully initialized prior to CEGUI trying to use it.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Crash without focus.

Postby CrazyEddie » Mon Jul 12, 2010 08:55

Yeah, this is the same issue as in the 2nd of Jamarr's links. It's a known issue, but one which I do not have any ideas of how to fix; there's no way to ask Ogre whether the render system is initialised or not, so it's not an easy thing to fix. In addition, I had issues when trying to reproduce this when I tried before, so again that makes it harder to fix.

This said, of course it's important to use that this does get fixed. I noticed we're missing a mantis ticket for this, so will add one now.

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests