Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Mon Nov 16, 2009 19:10

Hi, in a project we are using ogre 1.6.1 and cegui 0.6.2.

We are experiencing crashes when the app window is trying to be resized on windows vista and DirectX. It works on OpenGL in vista and nix, and with XP DirectX. The crashes occurs rather randomly (about 75%? of the times the app is started and only when window resize is attempted), both on release and debug builds (maybe a bit more frequent in debug). I've searched the forums by couldnt find anything similiar...

CEGUI init

Code: Select all

    GUIRenderer = new CEGUI::OgreCEGUIRenderer(rw, Ogre::RENDER_QUEUE_OVERLAY, false, 0 /*obsolete*/, sm);
    GUISystem = new CEGUI::System(GUIRenderer,0,0,0,"","logs/CEGUI.log");
    paramStore = new XmlParameterStore("conf/gui.xml");
    CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Insane);
////If the following lines are removed the window resize doesnt create a crash.
    CEGUI::SchemeManager::getSingletonPtr()->loadScheme(paramStore->getValue("GUI.Scheme")); //gets TaharezLook.scheme
    GUISystem->setGUISheet(WindowManager::getSingletonPtr()->loadWindowLayout("StartSplash.layout"));


Called on window resize:

Code: Select all

void SandboxGUI::setWindowSize(const int width, const int height) {
  CEGUI::Size currentSize = GUIRenderer->getSize();
  currentSize.d_height = height;
  currentSize.d_width = width;
  GUIRenderer->setDisplaySize(currentSize);
}

CEGUI.log:

Code: Select all

16/11/2009 19:29:47 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
16/11/2009 19:29:47 (InfL1)   +                     Crazy Eddie's GUI System - Event log                    +
16/11/2009 19:29:47 (InfL1)   +                          (http://www.cegui.org.uk/)                         +
16/11/2009 19:29:47 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

16/11/2009 19:29:47 (InfL1)   CEGUI::Logger singleton created.
16/11/2009 19:29:47 (InfL1)   ---- Begining CEGUI System initialisation ----
16/11/2009 19:29:47 (InfL1)   CEGUI::ImagesetManager singleton created
16/11/2009 19:29:47 (InfL1)   CEGUI::FontManager singleton created.
16/11/2009 19:29:47 (InfL1)   CEGUI::WindowFactoryManager singleton created
16/11/2009 19:29:47 (InfL1)   CEGUI::WindowManager singleton created
16/11/2009 19:29:47 (InfL1)   CEGUI::SchemeManager singleton created.
16/11/2009 19:29:47 (InfL1)   CEGUI::MouseCursor singleton created.
16/11/2009 19:29:47 (InfL1)   CEGUI::GlobalEventSet singleton created.
16/11/2009 19:29:47 (InfL1)   CEGUI::WidgetLookManager singleton created.
16/11/2009 19:29:47 (InfL1)   CEGUI::WindowRendererManager singleton created
16/11/2009 19:29:47 (InfL1)   WindowFactory for 'DefaultWindow' windows added.
//removed rest of the WindowFactory lines due to character count restriction
16/11/2009 19:29:47 (InfL1)   Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
16/11/2009 19:29:47 (InfL1)   CEGUI::System singleton created.
16/11/2009 19:29:47 (InfL1)   ---- CEGUI System initialisation completed ----
16/11/2009 19:29:47 (InfL1)   ---- Version 0.6.0 ----
16/11/2009 19:29:47 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
16/11/2009 19:29:47 (InfL1)   ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
16/11/2009 19:29:47 (InfL1)   ---- Scripting module is: None ----
16/11/2009 19:29:47 (InfL1)   Attempting to load Scheme from file 'TaharezLook.scheme'.
16/11/2009 19:29:47 (InfL2)   Started creation of Scheme 'TaharezLook' via XML file.
16/11/2009 19:29:47 (InfL2)   Finished creation of Scheme 'TaharezLook' via XML file.
16/11/2009 19:29:47 (InfL2)   Loaded GUI scheme 'TaharezLook' from data in file 'TaharezLook.scheme'.
16/11/2009 19:29:47 (InfL2)   ---- Begining resource loading for GUI scheme 'TaharezLook' ----
16/11/2009 19:29:47 (InfL1)   Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
16/11/2009 19:29:47 (InfL3)   All images have been removed from Imageset ''.
16/11/2009 19:29:47 (InfL1)   Started creation of Imageset from XML specification:
16/11/2009 19:29:47 (InfL1)   ---- CEGUI Imageset name: TaharezLook
16/11/2009 19:29:47 (InfL1)   ---- Source texture file: TaharezLook.tga in resource group: (Default)
16/11/2009 19:29:47 (InfL3)   Image 'ClientBrush' has been defined for Imageset 'TaharezLook'.
//removed Image '' has been defined for Imageset 'TaharezLook'-lines due to character count restriction
16/11/2009 19:29:47 (InfL3)   Image 'TreeListOpened' has been defined for Imageset 'TaharezLook'.
16/11/2009 19:29:47 (InfL2)   Finished creation of Imageset 'TaharezLook' via XML file.
16/11/2009 19:29:47 (InfL1)   Attempting to create Font from the information specified in file 'Commonwealth-10.font'.
16/11/2009 19:29:47 (InfL1)   Started creation of FreeType Font:
16/11/2009 19:29:47 (InfL1)   ---- CEGUI font name: Commonwealth-10
16/11/2009 19:29:47 (InfL1)   ----     Source file: Commonv2c.ttf in resource group: (Default)
16/11/2009 19:29:47 (InfL1)   ---- Real point size: 10
16/11/2009 19:29:47 (InfL1)   Succsessfully loaded 219 glyphs
16/11/2009 19:29:47 (InfL2)   Finished creation of Font 'Commonwealth-10' via XML file.
16/11/2009 19:29:47 (InfL1)   ===== Falagard 'root' element: look and feel parsing begins =====
16/11/2009 19:29:47 (InfL2)   ---> Start of definition for widget look 'TaharezLook/Button'.
//removed logging info due to forum character count restriction
16/11/2009 19:29:47 (InfL1)   ===== Look and feel parsing completed =====
16/11/2009 19:29:47 (InfL1)   No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Button' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Default' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Editbox' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/FrameWindow' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ItemEntry' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ListHeader' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ListHeaderSegment' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Listbox' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Menubar' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/MenuItem' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/MultiColumnList' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/MultiLineEditbox' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/PopupMenu' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ProgressBar' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ScrollablePane' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Scrollbar' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Slider' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Static' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/StaticImage' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/StaticText' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/SystemButton' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/TabButton' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/TabControl' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Titlebar' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ToggleButton' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/Tooltip' added.
16/11/2009 19:29:47 (InfL1)   WindowRendererFactory 'Falagard/ItemListbox' added.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'TaharezLook/Button'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'.
16/11/2009 19:29:47 (InfL1)   Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'.
16/11/2009 19:29:47 (InfL2)   ---- Resource loading for GUI scheme 'TaharezLook' completed ----




ogre.log: (debug build)

Code: Select all

19:29:47: Creating resource group General
19:29:47: Creating resource group Internal
19:29:47: Creating resource group Autodetect
19:29:47: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:29:47: Registering ResourceManager for type Material
19:29:47: Registering ResourceManager for type Mesh
19:29:47: Registering ResourceManager for type Skeleton
19:29:47: MovableObjectFactory for type 'ParticleSystem' registered.
19:29:47: OverlayElementFactory for type Panel registered.
19:29:47: OverlayElementFactory for type BorderPanel registered.
19:29:47: OverlayElementFactory for type TextArea registered.
19:29:47: Registering ResourceManager for type Font
19:29:47: ArchiveFactory for archive type FileSystem registered.
19:29:47: ArchiveFactory for archive type Zip registered.
19:29:47: FreeImage version: 3.9.3
19:29:47: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:29:47: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
19:29:47: DDS codec registering
19:29:47: Registering ResourceManager for type HighLevelGpuProgram
19:29:47: Registering ResourceManager for type Compositor
19:29:47: MovableObjectFactory for type 'Entity' registered.
19:29:47: MovableObjectFactory for type 'Light' registered.
19:29:47: MovableObjectFactory for type 'BillboardSet' registered.
19:29:47: MovableObjectFactory for type 'ManualObject' registered.
19:29:47: MovableObjectFactory for type 'BillboardChain' registered.
19:29:47: MovableObjectFactory for type 'RibbonTrail' registered.
19:29:47: Loading library C:\DevKits\OgreSDK\bin\debug\RenderSystem_Direct3D9_d
19:29:47: Installing plugin: D3D9 RenderSystem
19:29:47: D3D9 : Direct3D9 Rendering Subsystem created.
19:29:47: D3D9: Driver Detection Starts
19:29:47: D3D9: Driver Detection Ends
19:29:47: Plugin successfully installed
19:29:47: Loading library C:\DevKits\OgreSDK\bin\debug\RenderSystem_GL_d
19:29:47: Installing plugin: GL RenderSystem
19:29:47: OpenGL Rendering Subsystem created.
19:29:47: Plugin successfully installed
19:29:47: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_ParticleFX_d
19:29:47: Installing plugin: ParticleFX
19:29:47: Particle Emitter Type 'Point' registered
19:29:47: Particle Emitter Type 'Box' registered
19:29:47: Particle Emitter Type 'Ellipsoid' registered
19:29:47: Particle Emitter Type 'Cylinder' registered
19:29:47: Particle Emitter Type 'Ring' registered
19:29:47: Particle Emitter Type 'HollowEllipsoid' registered
19:29:47: Particle Affector Type 'LinearForce' registered
19:29:47: Particle Affector Type 'ColourFader' registered
19:29:47: Particle Affector Type 'ColourFader2' registered
19:29:47: Particle Affector Type 'ColourImage' registered
19:29:47: Particle Affector Type 'ColourInterpolator' registered
19:29:47: Particle Affector Type 'Scaler' registered
19:29:47: Particle Affector Type 'Rotator' registered
19:29:47: Particle Affector Type 'DirectionRandomiser' registered
19:29:47: Particle Affector Type 'DeflectorPlane' registered
19:29:47: Plugin successfully installed
19:29:47: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_CgProgramManager_d
19:29:47: Installing plugin: Cg Program Manager
19:29:47: Plugin successfully installed
19:29:47: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_OctreeSceneManager_d
19:29:47: Installing plugin: Octree & Terrain Scene Manager
19:29:47: Plugin successfully installed
19:29:47: *-*-* OGRE Initialising
19:29:47: *-*-* Version 1.6.1 (Shoggoth)
19:29:47: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
19:29:47: D3D9 : RenderSystem Option: Anti aliasing = Level 8
19:29:47: D3D9 : RenderSystem Option: Floating-point mode = Fastest
19:29:47: D3D9 : RenderSystem Option: Full Screen = No
19:29:47: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 9600M GT
19:29:47: D3D9 : RenderSystem Option: VSync = No
19:29:47: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
19:29:47: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
19:29:47: CPU Identifier & Features
19:29:47: -------------------------
19:29:47:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P7450  @ 2.13GHz
19:29:47:  *      SSE: yes
19:29:47:  *     SSE2: yes
19:29:47:  *     SSE3: yes
19:29:47:  *      MMX: yes
19:29:47:  *   MMXEXT: yes
19:29:47:  *    3DNOW: no
19:29:47:  * 3DNOWEXT: no
19:29:47:  *     CMOV: yes
19:29:47:  *      TSC: yes
19:29:47:  *      FPU: yes
19:29:47:  *      PRO: yes
19:29:47:  *       HT: no
19:29:47: -------------------------
19:29:47: D3D9 : Subsystem Initialising
19:29:47: D3D9RenderSystem::_createRenderWindow "Sandbox", 800x600 windowed  miscParams: FSAA=8 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
19:29:47: D3D9 : Created D3D9 Rendering Window 'Sandbox' : 800x600, 32bpp
19:29:47: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
19:29:47: Registering ResourceManager for type Texture
19:29:47: Registering ResourceManager for type GpuProgram
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT16_R
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT32_R
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT16_GR
19:29:47: D3D9: Vertex texture format supported - PF_FLOAT32_GR
19:29:47: RenderSystem capabilities
19:29:47: -------------------------
19:29:47: RenderSystem Name: Direct3D9 Rendering Subsystem
19:29:47: GPU Vendor: nvidia
19:29:47: Device Name: NVIDIA GeForce 9600M GT
19:29:47: Driver Version: 8.15.11.8644
19:29:47:  * Fixed function pipeline: yes
19:29:47:  * Hardware generation of mipmaps: yes
19:29:47:  * Texture blending: yes
19:29:47:  * Anisotropic texture filtering: yes
19:29:47:  * Dot product texture operation: yes
19:29:47:  * Cube mapping: yes
19:29:47:  * Hardware stencil buffer: yes
19:29:47:    - Stencil depth: 8
19:29:47:    - Two sided stencil support: yes
19:29:47:    - Wrap stencil values: yes
19:29:47:  * Hardware vertex / index buffers: yes
19:29:47:  * Vertex programs: yes
19:29:47:  * Fragment programs: yes
19:29:47:  * Geometry programs: no
19:29:47:  * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
19:29:47:  * Texture Compression: yes
19:29:47:    - DXT: yes
19:29:47:    - VTC: no
19:29:47:  * Scissor Rectangle: yes
19:29:47:  * Hardware Occlusion Query: yes
19:29:47:  * User clip planes: yes
19:29:47:  * VET_UBYTE4 vertex element type: yes
19:29:47:  * Infinite far plane projection: yes
19:29:47:  * Hardware render-to-texture: yes
19:29:47:  * Floating point textures: yes
19:29:47:  * Non-power-of-two textures: yes
19:29:47:  * Volume textures: yes
19:29:47:  * Multiple Render Targets: 4
19:29:47:    - With different bit depths: yes
19:29:47:  * Point Sprites: yes
19:29:47:  * Extended point parameters: yes
19:29:47:  * Max Point Size: 8192
19:29:47:  * Vertex texture fetch: yes
19:29:47:    - Max vertex textures: 4
19:29:47:    - Vertex textures shared: no
19:29:47:  * Render to Vertex Buffer : no
19:29:47:  * DirectX per stage constants: yes
19:29:47: ***************************************
19:29:47: *** D3D9 : Subsystem Initialised OK ***
19:29:47: ***************************************
19:29:47: ResourceBackgroundQueue - threading disabled
19:29:47: Particle Renderer Type 'billboard' registered
19:29:47: SceneManagerFactory for type 'OctreeSceneManager' registered.
19:29:47: SceneManagerFactory for type 'TerrainSceneManager' registered.
19:29:47: Creating resource group GUI
19:29:47: Added resource location './resources/gui_datafiles' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/configs' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/fonts' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/imagesets' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/layouts' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/looknfeel' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/gui_datafiles/schemes' of type 'FileSystem' to resource group 'GUI'
19:29:47: Added resource location './resources/common' of type 'FileSystem' to resource group 'General'
19:29:47: Added resource location './resources/common/meshes' of type 'FileSystem' to resource group 'General'
19:29:47: Added resource location './resources/common/materials' of type 'FileSystem' to resource group 'General'
19:29:47: Added resource location './resources/common/textures' of type 'FileSystem' to resource group 'General'
19:29:47: Creating resource group Samples
19:29:47: Added resource location './resources/samples' of type 'FileSystem' to resource group 'Samples'
19:29:47: Initialising resource group Samples
19:29:47: Parsing scripts for resource group Samples
19:29:47: Finished parsing scripts for resource group Samples
19:29:47: Initialising resource group General
19:29:47: Parsing scripts for resource group General
19:29:47: Parsing script Box.material
19:29:47: Parsing script GeoSphere.material
19:29:47: Finished parsing scripts for resource group General
19:29:47: Parsing scripts for resource group Autodetect
19:29:47: Finished parsing scripts for resource group Autodetect
19:29:47: Parsing scripts for resource group GUI
19:29:47: Finished parsing scripts for resource group GUI
19:29:47: Parsing scripts for resource group Internal
19:29:47: Finished parsing scripts for resource group Internal
19:29:47: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:29:47: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: !!! Direct3D Device Lost!
19:29:49: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:29:49: Released D3D9 default pool texture: Ogre/ShadowTexture0
//continues until app is terminated.

Ogre.log (release build)

Code: Select all

20:04:33: Creating resource group General
20:04:33: Creating resource group Internal
20:04:33: Creating resource group Autodetect
20:04:33: SceneManagerFactory for type 'DefaultSceneManager' registered.
20:04:33: Registering ResourceManager for type Material
20:04:33: Registering ResourceManager for type Mesh
20:04:33: Registering ResourceManager for type Skeleton
20:04:33: MovableObjectFactory for type 'ParticleSystem' registered.
20:04:33: OverlayElementFactory for type Panel registered.
20:04:33: OverlayElementFactory for type BorderPanel registered.
20:04:33: OverlayElementFactory for type TextArea registered.
20:04:33: Registering ResourceManager for type Font
20:04:33: ArchiveFactory for archive type FileSystem registered.
20:04:33: ArchiveFactory for archive type Zip registered.
20:04:33: FreeImage version: 3.9.3
20:04:33: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
20:04:33: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
20:04:33: DDS codec registering
20:04:33: Registering ResourceManager for type HighLevelGpuProgram
20:04:33: Registering ResourceManager for type Compositor
20:04:33: MovableObjectFactory for type 'Entity' registered.
20:04:33: MovableObjectFactory for type 'Light' registered.
20:04:33: MovableObjectFactory for type 'BillboardSet' registered.
20:04:33: MovableObjectFactory for type 'ManualObject' registered.
20:04:33: MovableObjectFactory for type 'BillboardChain' registered.
20:04:33: MovableObjectFactory for type 'RibbonTrail' registered.
20:04:33: Loading library C:\DevKits\OgreSDK\bin\release\RenderSystem_Direct3D9
20:04:33: Installing plugin: D3D9 RenderSystem
20:04:33: D3D9 : Direct3D9 Rendering Subsystem created.
20:04:33: D3D9: Driver Detection Starts
20:04:33: D3D9: Driver Detection Ends
20:04:33: Plugin successfully installed
20:04:33: Loading library C:\DevKits\OgreSDK\bin\release\RenderSystem_GL
20:04:33: Installing plugin: GL RenderSystem
20:04:33: OpenGL Rendering Subsystem created.
20:04:33: Plugin successfully installed
20:04:33: Loading library C:\DevKits\OgreSDK\bin\release\Plugin_ParticleFX
20:04:33: Installing plugin: ParticleFX
20:04:33: Particle Emitter Type 'Point' registered
20:04:33: Particle Emitter Type 'Box' registered
20:04:33: Particle Emitter Type 'Ellipsoid' registered
20:04:33: Particle Emitter Type 'Cylinder' registered
20:04:33: Particle Emitter Type 'Ring' registered
20:04:33: Particle Emitter Type 'HollowEllipsoid' registered
20:04:33: Particle Affector Type 'LinearForce' registered
20:04:33: Particle Affector Type 'ColourFader' registered
20:04:33: Particle Affector Type 'ColourFader2' registered
20:04:33: Particle Affector Type 'ColourImage' registered
20:04:33: Particle Affector Type 'ColourInterpolator' registered
20:04:33: Particle Affector Type 'Scaler' registered
20:04:33: Particle Affector Type 'Rotator' registered
20:04:33: Particle Affector Type 'DirectionRandomiser' registered
20:04:33: Particle Affector Type 'DeflectorPlane' registered
20:04:33: Plugin successfully installed
20:04:33: Loading library C:\DevKits\OgreSDK\bin\release\Plugin_OctreeSceneManager
20:04:33: Installing plugin: Octree & Terrain Scene Manager
20:04:33: Plugin successfully installed
20:04:33: Loading library C:\DevKits\OgreSDK\bin\release\Plugin_CgProgramManager
20:04:33: Installing plugin: Cg Program Manager
20:04:33: Plugin successfully installed
20:04:33: *-*-* OGRE Initialising
20:04:33: *-*-* Version 1.6.1 (Shoggoth)
20:04:33: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
20:04:33: D3D9 : RenderSystem Option: Anti aliasing = Level 8
20:04:33: D3D9 : RenderSystem Option: Floating-point mode = Fastest
20:04:33: D3D9 : RenderSystem Option: Full Screen = No
20:04:33: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 9600M GT
20:04:33: D3D9 : RenderSystem Option: VSync = No
20:04:33: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
20:04:33: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
20:04:33: CPU Identifier & Features
20:04:33: -------------------------
20:04:33:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P7450  @ 2.13GHz
20:04:33:  *      SSE: yes
20:04:33:  *     SSE2: yes
20:04:33:  *     SSE3: yes
20:04:33:  *      MMX: yes
20:04:33:  *   MMXEXT: yes
20:04:33:  *    3DNOW: no
20:04:33:  * 3DNOWEXT: no
20:04:33:  *     CMOV: yes
20:04:33:  *      TSC: yes
20:04:33:  *      FPU: yes
20:04:33:  *      PRO: yes
20:04:33:  *       HT: no
20:04:33: -------------------------
20:04:33: D3D9 : Subsystem Initialising
20:04:33: D3D9RenderSystem::_createRenderWindow "Sandbox", 800x600 windowed  miscParams: FSAA=8 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
20:04:33: D3D9 : Created D3D9 Rendering Window 'Sandbox' : 800x600, 32bpp
20:04:33: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
20:04:33: Registering ResourceManager for type Texture
20:04:33: Registering ResourceManager for type GpuProgram
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT16_R
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT32_R
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT16_GR
20:04:33: D3D9: Vertex texture format supported - PF_FLOAT32_GR
20:04:33: RenderSystem capabilities
20:04:33: -------------------------
20:04:33: RenderSystem Name: Direct3D9 Rendering Subsystem
20:04:33: GPU Vendor: nvidia
20:04:33: Device Name: NVIDIA GeForce 9600M GT
20:04:33: Driver Version: 8.15.11.8644
20:04:33:  * Fixed function pipeline: yes
20:04:33:  * Hardware generation of mipmaps: yes
20:04:33:  * Texture blending: yes
20:04:33:  * Anisotropic texture filtering: yes
20:04:33:  * Dot product texture operation: yes
20:04:33:  * Cube mapping: yes
20:04:33:  * Hardware stencil buffer: yes
20:04:33:    - Stencil depth: 8
20:04:33:    - Two sided stencil support: yes
20:04:33:    - Wrap stencil values: yes
20:04:33:  * Hardware vertex / index buffers: yes
20:04:33:  * Vertex programs: yes
20:04:33:  * Fragment programs: yes
20:04:33:  * Geometry programs: no
20:04:33:  * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
20:04:33:  * Texture Compression: yes
20:04:33:    - DXT: yes
20:04:33:    - VTC: no
20:04:33:  * Scissor Rectangle: yes
20:04:33:  * Hardware Occlusion Query: yes
20:04:33:  * User clip planes: yes
20:04:33:  * VET_UBYTE4 vertex element type: yes
20:04:33:  * Infinite far plane projection: yes
20:04:33:  * Hardware render-to-texture: yes
20:04:33:  * Floating point textures: yes
20:04:33:  * Non-power-of-two textures: yes
20:04:33:  * Volume textures: yes
20:04:33:  * Multiple Render Targets: 4
20:04:33:    - With different bit depths: yes
20:04:33:  * Point Sprites: yes
20:04:33:  * Extended point parameters: yes
20:04:33:  * Max Point Size: 8192
20:04:33:  * Vertex texture fetch: yes
20:04:33:    - Max vertex textures: 4
20:04:33:    - Vertex textures shared: no
20:04:33:  * Render to Vertex Buffer : no
20:04:33:  * DirectX per stage constants: yes
20:04:33: ***************************************
20:04:33: *** D3D9 : Subsystem Initialised OK ***
20:04:33: ***************************************
20:04:33: ResourceBackgroundQueue - threading disabled
20:04:33: Particle Renderer Type 'billboard' registered
20:04:33: SceneManagerFactory for type 'OctreeSceneManager' registered.
20:04:33: SceneManagerFactory for type 'TerrainSceneManager' registered.
20:04:33: Creating resource group GUI
20:04:33: Added resource location './resources/gui_datafiles' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/configs' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/fonts' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/imagesets' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/layouts' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/looknfeel' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/gui_datafiles/schemes' of type 'FileSystem' to resource group 'GUI'
20:04:33: Added resource location './resources/common' of type 'FileSystem' to resource group 'General'
20:04:33: Added resource location './resources/common/meshes' of type 'FileSystem' to resource group 'General'
20:04:33: Added resource location './resources/common/materials' of type 'FileSystem' to resource group 'General'
20:04:33: Added resource location './resources/common/textures' of type 'FileSystem' to resource group 'General'
20:04:33: Creating resource group Samples
20:04:33: Added resource location './resources/samples' of type 'FileSystem' to resource group 'Samples'
20:04:33: Initialising resource group Samples
20:04:33: Parsing scripts for resource group Samples
20:04:33: Finished parsing scripts for resource group Samples
20:04:33: Initialising resource group General
20:04:33: Parsing scripts for resource group General
20:04:33: Parsing script Box.material
20:04:33: Parsing script GeoSphere.material
20:04:33: Finished parsing scripts for resource group General
20:04:33: Parsing scripts for resource group Autodetect
20:04:33: Finished parsing scripts for resource group Autodetect
20:04:33: Parsing scripts for resource group GUI
20:04:33: Finished parsing scripts for resource group GUI
20:04:33: Parsing scripts for resource group Internal
20:04:33: Finished parsing scripts for resource group Internal
20:04:33: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:33: Texture: _cegui_ogre_0: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:33: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_1: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_2: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_3: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_4: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_5: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_6: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: !!! Direct3D Device Lost!
20:04:39: Texture: _cegui_ogre_7: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
20:04:39: D3D9TextureManager released:
20:04:39: 0 unmanaged textures
20:04:39: D3D9HardwareBufferManager released:
20:04:39: 2 unmanaged vertex buffers
20:04:39: 0 unmanaged index buffers



StartSplash.layout

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<GUILayout >
    <Window Type="DefaultWindow" Name="StartSplash" >
        <Property Name="InheritsAlpha" Value="False" />
        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
        <Window Type="TaharezLook/FrameWindow" Name="TextDemo" >
            <Property Name="Text" Value="Welcome" />
            <Property Name="Alpha" Value="0.75" />
            <Property Name="TitlebarFont" Value="Commonwealth-10" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="TitlebarEnabled" Value="True" />
            <Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.02,0},{0.6,0},{0.4,0}}" />
            <Window Type="TaharezLook/StaticText" Name="TextDemo/StaticText" >
                <Property Name="Text" >Welcome to the Sandbox application. This is the test window </Property>
                <Property Name="HorzFormatting" Value="WordWrapLeftAligned" />
                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
                <Property Name="VertFormatting" Value="TopAligned" />
                <Property Name="UnifiedAreaRect" Value="{{0.0264938,0},{0.0837853,0},{0.971278,0},{0.973106,0}}" />
            </Window>
        </Window>
    </Window>
</GUILayout>



Thanks for any help, or time invested in my problem!

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

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby Jamarr » Mon Nov 16, 2009 20:59

You say you are using v0.6.2, but your log is showing v0.6.0. So you may be including the 0.6.2 headers but linking to the 0.6.0 version or? This seems to happen a lot with OGRE users. If this is the case, it could cause weird behavior.

Other than that, do you have any information pertaining to the actual crash event? In otherwords, do you know if there is an exception being thrown and/or can you post the callstack when the crash occurs?

I'm not very familiar with the OGRE renderer, so I could very well be wrong, but I thought it handled displaysize changes automatically? In otherwords, if you are using OGRE, do you really need to call setDisplaySize manually? Anyway, when you are using D3D renderer I believe you are supposed to surround the call that resets the D3D device with preD3DReset() and postD3DReset() on the renderer object as noted here - though again I am not sure if this is necessary when using OGRE.
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!

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Mon Nov 16, 2009 22:18

Thanks alot for the quick reply.

The CEGUI dll-files that was linked to my app came from the version bundled with Ogre 1.6.1 and not the cegui-sdk folder - with the effect that I used the 0.6.0 and not 0.6.2.

I havnt had the time to fix this and test, but it sounds promising. I will get back to inform of the results tomorrow.

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Tue Nov 17, 2009 11:07

Hi, again. I've changed the linker and compiler search directories to point to the cegui-version supplied by the ogre sdk, and thus totally omitted the linkage and includes pointing to cegiu_sdk 0.6.2.

The error still persists, but running on XP still works flawlessly (allthough that machine doesnt have DirectX SDK installed and thus cant run the debug build)(both builds crash on our four vista-machines (using DirectX)).

About the preD3DReset() and postD3DReset()-functions I havnt read anywhere it should be necessary... ogre is supposed to supply rendering system independence though.

CEGUI.log

Code: Select all

17/11/2009 12:01:18 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
17/11/2009 12:01:18 (InfL1)   +                     Crazy Eddie's GUI System - Event log                    +
17/11/2009 12:01:18 (InfL1)   +                          (http://www.cegui.org.uk/)                         +
17/11/2009 12:01:18 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

17/11/2009 12:01:18 (InfL1)   CEGUI::Logger singleton created.
17/11/2009 12:01:18 (InfL1)   ---- Begining CEGUI System initialisation ----
17/11/2009 12:01:18 (InfL1)   CEGUI::ImagesetManager singleton created
17/11/2009 12:01:18 (InfL1)   CEGUI::FontManager singleton created.
17/11/2009 12:01:18 (InfL1)   CEGUI::WindowFactoryManager singleton created
17/11/2009 12:01:18 (InfL1)   CEGUI::WindowManager singleton created
17/11/2009 12:01:18 (InfL1)   CEGUI::SchemeManager singleton created.
17/11/2009 12:01:18 (InfL1)   CEGUI::MouseCursor singleton created.
17/11/2009 12:01:18 (InfL1)   CEGUI::GlobalEventSet singleton created.
17/11/2009 12:01:18 (InfL1)   CEGUI::WidgetLookManager singleton created.
17/11/2009 12:01:18 (InfL1)   CEGUI::WindowRendererManager singleton created
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'DefaultWindow' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'DragContainer' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'ScrolledContainer' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'ClippedContainer' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Checkbox' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/PushButton' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/RadioButton' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Combobox' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ComboDropList' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Editbox' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/FrameWindow' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ItemEntry' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Listbox' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ListHeader' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ListHeaderSegment' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Menubar' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/PopupMenu' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/MenuItem' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/MultiColumnList' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/MultiLineEditbox' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ProgressBar' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ScrollablePane' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Scrollbar' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Slider' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Spinner' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/TabButton' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/TabControl' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Thumb' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Titlebar' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/Tooltip' windows added.
17/11/2009 12:01:18 (InfL1)   WindowFactory for 'CEGUI/ItemListbox' windows added.
17/11/2009 12:01:18 (InfL1)   Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
17/11/2009 12:01:18 (InfL1)   CEGUI::System singleton created.
17/11/2009 12:01:18 (InfL1)   ---- CEGUI System initialisation completed ----
17/11/2009 12:01:18 (InfL1)   ---- Version 0.6.0 ----
17/11/2009 12:01:18 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
17/11/2009 12:01:18 (InfL1)   ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
17/11/2009 12:01:18 (InfL1)   ---- Scripting module is: None ----


Ogre.log

Code: Select all

12:01:16: Creating resource group General
12:01:16: Creating resource group Internal
12:01:16: Creating resource group Autodetect
12:01:16: SceneManagerFactory for type 'DefaultSceneManager' registered.
12:01:16: Registering ResourceManager for type Material
12:01:16: Registering ResourceManager for type Mesh
12:01:16: Registering ResourceManager for type Skeleton
12:01:16: MovableObjectFactory for type 'ParticleSystem' registered.
12:01:16: OverlayElementFactory for type Panel registered.
12:01:16: OverlayElementFactory for type BorderPanel registered.
12:01:16: OverlayElementFactory for type TextArea registered.
12:01:16: Registering ResourceManager for type Font
12:01:16: ArchiveFactory for archive type FileSystem registered.
12:01:16: ArchiveFactory for archive type Zip registered.
12:01:16: FreeImage version: 3.9.3
12:01:16: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
12:01:16: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
12:01:16: DDS codec registering
12:01:16: Registering ResourceManager for type HighLevelGpuProgram
12:01:16: Registering ResourceManager for type Compositor
12:01:16: MovableObjectFactory for type 'Entity' registered.
12:01:16: MovableObjectFactory for type 'Light' registered.
12:01:16: MovableObjectFactory for type 'BillboardSet' registered.
12:01:16: MovableObjectFactory for type 'ManualObject' registered.
12:01:16: MovableObjectFactory for type 'BillboardChain' registered.
12:01:16: MovableObjectFactory for type 'RibbonTrail' registered.
12:01:16: Loading library C:\DevKits\OgreSDK\bin\debug\RenderSystem_Direct3D9_d
12:01:16: Installing plugin: D3D9 RenderSystem
12:01:16: D3D9 : Direct3D9 Rendering Subsystem created.
12:01:16: D3D9: Driver Detection Starts
12:01:16: D3D9: Driver Detection Ends
12:01:16: Plugin successfully installed
12:01:16: Loading library C:\DevKits\OgreSDK\bin\debug\RenderSystem_GL_d
12:01:16: Installing plugin: GL RenderSystem
12:01:16: OpenGL Rendering Subsystem created.
12:01:17: Plugin successfully installed
12:01:17: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_ParticleFX_d
12:01:17: Installing plugin: ParticleFX
12:01:17: Particle Emitter Type 'Point' registered
12:01:17: Particle Emitter Type 'Box' registered
12:01:17: Particle Emitter Type 'Ellipsoid' registered
12:01:17: Particle Emitter Type 'Cylinder' registered
12:01:17: Particle Emitter Type 'Ring' registered
12:01:17: Particle Emitter Type 'HollowEllipsoid' registered
12:01:17: Particle Affector Type 'LinearForce' registered
12:01:17: Particle Affector Type 'ColourFader' registered
12:01:17: Particle Affector Type 'ColourFader2' registered
12:01:17: Particle Affector Type 'ColourImage' registered
12:01:17: Particle Affector Type 'ColourInterpolator' registered
12:01:17: Particle Affector Type 'Scaler' registered
12:01:17: Particle Affector Type 'Rotator' registered
12:01:17: Particle Affector Type 'DirectionRandomiser' registered
12:01:17: Particle Affector Type 'DeflectorPlane' registered
12:01:17: Plugin successfully installed
12:01:17: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_CgProgramManager_d
12:01:17: Installing plugin: Cg Program Manager
12:01:17: Plugin successfully installed
12:01:17: Loading library C:\DevKits\OgreSDK\bin\debug\Plugin_OctreeSceneManager_d
12:01:17: Installing plugin: Octree & Terrain Scene Manager
12:01:17: Plugin successfully installed
12:01:17: *-*-* OGRE Initialising
12:01:17: *-*-* Version 1.6.1 (Shoggoth)
12:01:17: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
12:01:17: D3D9 : RenderSystem Option: Anti aliasing = Level 8
12:01:17: D3D9 : RenderSystem Option: Floating-point mode = Fastest
12:01:17: D3D9 : RenderSystem Option: Full Screen = No
12:01:17: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 9600M GT
12:01:17: D3D9 : RenderSystem Option: VSync = No
12:01:17: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
12:01:17: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
12:01:17: CPU Identifier & Features
12:01:17: -------------------------
12:01:17:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P7450  @ 2.13GHz
12:01:17:  *      SSE: yes
12:01:17:  *     SSE2: yes
12:01:17:  *     SSE3: yes
12:01:17:  *      MMX: yes
12:01:17:  *   MMXEXT: yes
12:01:17:  *    3DNOW: no
12:01:17:  * 3DNOWEXT: no
12:01:17:  *     CMOV: yes
12:01:17:  *      TSC: yes
12:01:17:  *      FPU: yes
12:01:17:  *      PRO: yes
12:01:17:  *       HT: no
12:01:17: -------------------------
12:01:17: D3D9 : Subsystem Initialising
12:01:17: D3D9RenderSystem::_createRenderWindow "Sandbox", 800x600 windowed  miscParams: FSAA=8 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
12:01:17: D3D9 : Created D3D9 Rendering Window 'Sandbox' : 800x600, 32bpp
12:01:17: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
12:01:18: Registering ResourceManager for type Texture
12:01:18: Registering ResourceManager for type GpuProgram
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT16_R
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT32_R
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT16_GR
12:01:18: D3D9: Vertex texture format supported - PF_FLOAT32_GR
12:01:18: RenderSystem capabilities
12:01:18: -------------------------
12:01:18: RenderSystem Name: Direct3D9 Rendering Subsystem
12:01:18: GPU Vendor: nvidia
12:01:18: Device Name: NVIDIA GeForce 9600M GT
12:01:18: Driver Version: 8.15.11.8644
12:01:18:  * Fixed function pipeline: yes
12:01:18:  * Hardware generation of mipmaps: yes
12:01:18:  * Texture blending: yes
12:01:18:  * Anisotropic texture filtering: yes
12:01:18:  * Dot product texture operation: yes
12:01:18:  * Cube mapping: yes
12:01:18:  * Hardware stencil buffer: yes
12:01:18:    - Stencil depth: 8
12:01:18:    - Two sided stencil support: yes
12:01:18:    - Wrap stencil values: yes
12:01:18:  * Hardware vertex / index buffers: yes
12:01:18:  * Vertex programs: yes
12:01:18:  * Fragment programs: yes
12:01:18:  * Geometry programs: no
12:01:18:  * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
12:01:18:  * Texture Compression: yes
12:01:18:    - DXT: yes
12:01:18:    - VTC: no
12:01:18:  * Scissor Rectangle: yes
12:01:18:  * Hardware Occlusion Query: yes
12:01:18:  * User clip planes: yes
12:01:18:  * VET_UBYTE4 vertex element type: yes
12:01:18:  * Infinite far plane projection: yes
12:01:18:  * Hardware render-to-texture: yes
12:01:18:  * Floating point textures: yes
12:01:18:  * Non-power-of-two textures: yes
12:01:18:  * Volume textures: yes
12:01:18:  * Multiple Render Targets: 4
12:01:18:    - With different bit depths: yes
12:01:18:  * Point Sprites: yes
12:01:18:  * Extended point parameters: yes
12:01:18:  * Max Point Size: 8192
12:01:18:  * Vertex texture fetch: yes
12:01:18:    - Max vertex textures: 4
12:01:18:    - Vertex textures shared: no
12:01:18:  * Render to Vertex Buffer : no
12:01:18:  * DirectX per stage constants: yes
12:01:18: ***************************************
12:01:18: *** D3D9 : Subsystem Initialised OK ***
12:01:18: ***************************************
12:01:18: ResourceBackgroundQueue - threading disabled
12:01:18: Particle Renderer Type 'billboard' registered
12:01:18: SceneManagerFactory for type 'OctreeSceneManager' registered.
12:01:18: SceneManagerFactory for type 'TerrainSceneManager' registered.
12:01:18: Creating resource group GUI
12:01:18: Added resource location './resources/gui_datafiles' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/configs' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/fonts' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/imagesets' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/layouts' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/looknfeel' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/gui_datafiles/schemes' of type 'FileSystem' to resource group 'GUI'
12:01:18: Added resource location './resources/common' of type 'FileSystem' to resource group 'General'
12:01:18: Added resource location './resources/common/meshes' of type 'FileSystem' to resource group 'General'
12:01:18: Added resource location './resources/common/materials' of type 'FileSystem' to resource group 'General'
12:01:18: Added resource location './resources/common/textures' of type 'FileSystem' to resource group 'General'
12:01:18: Creating resource group Samples
12:01:18: Added resource location './resources/samples' of type 'FileSystem' to resource group 'Samples'
12:01:18: Initialising resource group Samples
12:01:18: Parsing scripts for resource group Samples
12:01:18: Finished parsing scripts for resource group Samples
12:01:18: Initialising resource group General
12:01:18: Parsing scripts for resource group General
12:01:18: Parsing script Box.material
12:01:18: Parsing script GeoSphere.material
12:01:18: Finished parsing scripts for resource group General
12:01:18: Parsing scripts for resource group Autodetect
12:01:18: Finished parsing scripts for resource group Autodetect
12:01:18: Parsing scripts for resource group GUI
12:01:18: Finished parsing scripts for resource group GUI
12:01:18: Parsing scripts for resource group Internal
12:01:18: Finished parsing scripts for resource group Internal
12:01:18: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
12:01:18: Texture: _cegui_ogre_0: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
12:01:19: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
12:01:19: !!! Direct3D Device Lost!
12:01:19: Texture: _cegui_ogre_1: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
12:01:19: !!! Direct3D Device Lost!
12:01:19: Texture: _cegui_ogre_2: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
12:01:19: !!! Direct3D Device Lost!
12:01:19: Texture: _cegui_ogre_3: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
12:01:19: Texture: _cegui_ogre_4: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
12:01:19: !!! Direct3D Device Lost!
12:01:19: Texture: _cegui_ogre_5: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
12:01:19: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
12:01:19: Released D3D9 default pool texture: Ogre/ShadowTexture0

Debug output:

Code: Select all

Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Child process PID: 4884
Program received signal SIGTRAP, Trace/breakpoint trap.
In ntdll!DbgUiConvertStateChangeStructure () (ntdll.dll)


Edit: improved info on crash.
Edit2: improved info about pre-/postD3DReset

User avatar
Jabberwocky
Quite a regular
Quite a regular
Posts: 86
Joined: Wed Oct 31, 2007 18:16
Location: Canada
Contact:

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby Jabberwocky » Tue Nov 17, 2009 15:58

OneSandbox wrote:Hi, in a project we are using ogre 1.6.1 and cegui 0.6.2.


Sorry, I know this doesn't help much, but I've used that exact combination for ages, and never run into problems with window resizing while using it.

Your initialization code looks correct.

if you are using OGRE, do you really need to call setDisplaySize manually?


Yes, I believe it's (somewhat) necessary to call this. CEGUI needs to know the screen resolution, so it can accurately report back any calls to CEGUI::MouseCursor::getSingleton().getPosition().

Anyway, when you are using D3D renderer I believe you are supposed to surround the call that resets the D3D device with preD3DReset() and postD3DReset() on the renderer object as noted here - though again I am not sure if this is necessary when using OGRE.


I never did anything like that manually in my code - maybe it was handled automatically by OgreCEGUIRenderer.

The one thing missing from your crash report is a stack trace, which may be really helpful in tracking down the problem.
The Salvation Prophecy
Space Combat. Planet Exploration. Strategic Domination.

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Tue Nov 17, 2009 18:22

Jabberwocky wrote:The one thing missing from your crash report is a stack trace, which may be really helpful in tracking down the problem.

I am not able to get a stack trace. Im using CodeBlocks with mingw, and sometimes it enters an endless loop with these messages spamming to ogre.log:

Code: Select all

...
19:20:18: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:20:18: Releasing D3D9 default pool texture: Ogre/ShadowTexture0
19:20:18: Released D3D9 default pool texture: Ogre/ShadowTexture0
19:20:18: Releasing D3D9 default pool texture: Ogre/ShadowTexture0

cegui.log on endless loop

Code: Select all

...
17/11/2009 19:20:13 (InfL1)   WindowFactory for 'CEGUI/ItemListbox' windows added.
17/11/2009 19:20:13 (InfL1)   Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
17/11/2009 19:20:13 (InfL1)   CEGUI::System singleton created.
17/11/2009 19:20:13 (InfL1)   ---- CEGUI System initialisation completed ----
17/11/2009 19:20:13 (InfL1)   ---- Version 0.6.0 ----
17/11/2009 19:20:13 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
17/11/2009 19:20:13 (InfL1)   ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
17/11/2009 19:20:13 (InfL1)   ---- Scripting module is: None ----


and sometimes it freezes with this message in the ogre.log:

Code: Select all

...
19:17:30: Finished parsing scripts for resource group General
19:17:30: Parsing scripts for resource group Autodetect
19:17:30: Finished parsing scripts for resource group Autodetect
19:17:30: Parsing scripts for resource group GUI
19:17:30: Finished parsing scripts for resource group GUI
19:17:30: Parsing scripts for resource group Internal
19:17:30: Finished parsing scripts for resource group Internal
19:17:30: Texture: TaharezLook.tga: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:17:31: Texture: _cegui_ogre_0: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:17:31: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with  hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
19:17:32: !!! Direct3D Device Lost!
19:17:32: Texture: _cegui_ogre_1: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
19:17:32: !!! Direct3D Device Lost!
19:17:32: Texture: _cegui_ogre_2: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.

Cegui.log on freeze;

Code: Select all

...
17/11/2009 19:17:30 (InfL1)   CEGUI::System singleton created.
17/11/2009 19:17:30 (InfL1)   ---- CEGUI System initialisation completed ----
17/11/2009 19:17:30 (InfL1)   ---- Version 0.6.0 ----
17/11/2009 19:17:30 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
17/11/2009 19:17:30 (InfL1)   ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
17/11/2009 19:17:30 (InfL1)   ---- Scripting module is: None ----

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Sat Nov 21, 2009 10:55

Still havn't found a fix for this issue. Is there anyone else who experienced this?

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

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby Jamarr » Mon Nov 23, 2009 17:52

If your application is in an endless loop then you only have a few options. If your compiler does not have a "break all" feature (allows you to step into / debug the code that is running at that time), then you will need to insert your own logging messages throughout your code to try and narrow down the code causing the loop.

In my experience, 99% of the time endless loops are user error...looking at your supposed CEGUI 'loop' log, I have to wonder why your log would continuously output that message block because that block is only written from the CEGUI::System constructor. Meaning you would have to be continuously constructing the CEGUI::System object that is defined as a singleton - if you try to construct this object more than once there is an assert() that should throw an error message.

So if I had to guess, it looks like you are running a version of CEGUI built with NDEBUG defined, meaning no assert() error is being thrown, and the code you are using to construct CEGUI is being called inside of a loop.
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!

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Wed Nov 25, 2009 10:52

Jamarr wrote:If your application is in an endless loop then you only have a few options. If your compiler does not have a "break all" feature (allows you to step into / debug the code that is running at that time), then you will need to insert your own logging messages throughout your code to try and narrow down the code causing the loop.

Either it freezes or D3D Device lost spamming rendering loop (rendering is done by ogre, none of our FrameListeners gets callbacks).

Jamarr wrote:In my experience, 99% of the time endless loops are user error...looking at your supposed CEGUI 'loop' log, I have to wonder why your log would continuously output that message block because that block is only written from the CEGUI::System constructor. Meaning you would have to be continuously constructing the CEGUI::System object that is defined as a singleton - if you try to construct this object more than once there is an assert() that should throw an error message.
The CEGUI log is unchanged during the loop. The log in my post above is all of it, it's not like it prints it over and over again. The System is created long before any resizing is attempted (and CEGUI works fine as long as we dont try to resize it under vista).

Code: Select all

    CEGUI::SchemeManager::getSingletonPtr()->loadScheme(paramStore->getValue("GUI.Scheme")); //gets TaharezLook.scheme

If we dont call loadScheme("TaharezLook.scheme"); resizing still works, (and dont use any other cegui::window loading) but if we do call loadScheme("TaharezLook.scheme") resizing begins to freeze the application or gets stuck in an "D3D Device lost" spamming rendering loop (rendering is done by ogre, none of our FrameListeners gets callbacks).

Jamarr wrote:So if I had to guess, it looks like you are running a version of CEGUI built with NDEBUG defined, meaning no assert() error is being thrown, and the code you are using to construct CEGUI is being called inside of a loop.

Yes, we are running the cegui version that ogre 1.6.2 was bundled with. (Same errors with both ogre debug dlls and release dlls).

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

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby Jamarr » Wed Nov 25, 2009 17:19

I see. I misinterpreted your previous post. As I do not use the D3D renderer or OGRE, I'm not sure what else to suggest at this point. And unfortunately CE is still on break, so the these types of problems will likely have to wait until he is back.

One thing I am curious about is if you experience the same problem using the CEGUI sample projects? Can you run these on the machines in question to see if they exhibit the same behavior when resizing?
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!

OneSandbox
Just popping in
Just popping in
Posts: 9
Joined: Mon Nov 16, 2009 18:07

Re: Window resize crash. (Ogre+CEGUI)(Vista+DirectX)

Postby OneSandbox » Sat Nov 28, 2009 10:13

Jamarr wrote:One thing I am curious about is if you experience the same problem using the CEGUI sample projects? Can you run these on the machines in question to see if they exhibit the same behavior when resizing?

Curiously no the samples work fine, and since we barely need to start cegui up in order to make resizing go haywire it feels like we have done something very wrong with the initiation process...


Return to “Help”

Who is online

Users browsing this forum: No registered users and 27 guests