APPCRASH in FrameComponent when using g++ -O3 build option

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

gamecat
Just popping in
Just popping in
Posts: 20
Joined: Mon Jan 12, 2009 06:40
Location: SF Bay Area

APPCRASH in FrameComponent when using g++ -O3 build option

Postby gamecat » Tue Oct 08, 2013 19:14

Greets.

After much effort and toil I've finally been able to build boost, Ogre, and CEGUI from source and to run SampleFramework.

boost : 1.52.0
Ogre : 1.8.1
CEGUI : 0.8.2
g++ : 4.7.2
platform : Windows 7 32bit

The final problem that I ran into involves the optimization of the Release build. I was able to run the Debug build of SampleFramework, but the Release built kept crashing (APPCRASH: c0000005) before the first frame. It was a bit of a bear to track down, since the stack was being corrupted and no debug info was available, but I finally tracked it down to falagard\FrameComponent.cpp. When compiled with the -O3 option, calls to FrameComponent::renderImage (from FrameComponent::render_impl) cause the stack to become corrupted - resulting in a crash after return. Commenting out the calls to renderImage allow the program to run (albeit without frames being rendered). Building FrameComponent.cpp with -O2 (or less) instead of -O3 fixes the problem.

Now that I've found a work around I'm inclined to move on, since I've spent way more time to get this far than I originally intended, but I though that I'd throw this out here in case anyone else has encountered the same problem.

EDIT - For the record, I narrowed this down to the -fipa-cp-clone option. "-O2" works, "-O2 -fipa-cp-clone" doesn't. It's not obvious what the exact effect of this option has on the generated code. I've tried diffing the generated assembly, but all the labels are different so it's a bit obscure.

EDIT2 - -fipa-cp-clone generates five versions of renderImage - one for each call signature in render_impl. The problem seems to lie in the tiling render loop in renderImage. Commenting out the check for custom clipping prevents the crash - even though this special case is not triggered on the first call (horzFmt=HF_STRETCHED, vertFmt=VF_TOP_ALIGNED), which triggers the crash.

Code: Select all

    for (uint row = 0; row < vertTiles; ++row)
    {
        finalRect.d_min.d_x = xpos;
        finalRect.d_max.d_x = xpos + imgSz.d_width;

        for (uint col = 0; col < horzTiles; ++col)
        {
//   disabling the following block of code allows the app to not crash when using -fipa-cp-clone compile flag
#if 0
            // use custom clipping for right and bottom edges when tiling the imagery
         if (((vertFmt == VF_TILED) && row == vertTiles - 1) ||
            ((horzFmt == HF_TILED) && col == horzTiles - 1))
            {
                finalClipper = clipper ? clipper->getIntersection(destRect) : destRect;
                clippingRect = &finalClipper;
            }
            // not tiliing, or not on far edges, just used passed in clipper (if any).
            else
#endif
            clippingRect = clipper;

            image->render(buffer, finalRect, clippingRect, colours);

            finalRect.d_min.d_x += imgSz.d_width;
            finalRect.d_max.d_x += imgSz.d_width;
        }

        finalRect.d_min.d_y += imgSz.d_height;
        finalRect.d_max.d_y += imgSz.d_height;
    }



Code: Select all

08/10/2013 11:45:38 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
08/10/2013 11:45:38 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
08/10/2013 11:45:38 (Std)    +                          (http://www.cegui.org.uk/)                         +
08/10/2013 11:45:38 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

08/10/2013 11:45:38 (Std)    CEGUI::Logger singleton created. (012F1560)
08/10/2013 11:45:38 (Std)    
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    * Important:                                                                   *
08/10/2013 11:45:38 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
08/10/2013 11:45:38 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
08/10/2013 11:45:38 (Std)    *     support being given; please do not waste our time.                       *
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    ---- Version: 0.8.2 (Build: Oct  8 2013 Microsoft Windows g++ 4.7.2 32 bit) ----
08/10/2013 11:45:38 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
08/10/2013 11:45:38 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
08/10/2013 11:45:38 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
08/10/2013 11:45:38 (Std)    ---- Scripting module is: None ----
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
08/10/2013 11:45:38 (Std)    ********************************************************************************
08/10/2013 11:45:38 (Std)    
08/10/2013 11:45:38 (Std)    ---- Begining CEGUI System initialisation ----
08/10/2013 11:45:38 (Std)    [CEGUI::ImageManager] Singleton created (012E5388)
08/10/2013 11:45:38 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
08/10/2013 11:45:38 (Std)    CEGUI::FontManager singleton created. (012F1F00)
08/10/2013 11:45:38 (Std)    CEGUI::WindowFactoryManager singleton created
08/10/2013 11:45:38 (Std)    CEGUI::WindowManager singleton created (012E5418)
08/10/2013 11:45:38 (Std)    CEGUI::SchemeManager singleton created. (012F1A90)
08/10/2013 11:45:38 (Std)    CEGUI::GlobalEventSet singleton created. (012ED860)
08/10/2013 11:45:38 (Std)    CEGUI::AnimationManager singleton created (012E9190)
08/10/2013 11:45:38 (Std)    CEGUI::WidgetLookManager singleton created. (012EC658)
08/10/2013 11:45:38 (Std)    CEGUI::WindowRendererManager singleton created (012EC638)
08/10/2013 11:45:38 (Std)    CEGUI::RenderEffectManager singleton created (012E47B8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'DefaultWindow' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'DefaultWindow' windows added. (012F3CD8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'DragContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'DragContainer' windows added. (012F3D80)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'ScrolledContainer' windows added. (012F3E28)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'ClippedContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'ClippedContainer' windows added. (012F3ED0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (012F3F78)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (012F4020)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (012F40C8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (012F4170)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (012F4218)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (012F42C0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (012F4368)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (012F4410)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (012F44B8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (012F4560)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (012F4608)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (012F46B0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (012F4758)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (012F4800)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (012F48A8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (012F4950)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (012F49F8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (012F4AA0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (012F4B48)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (012F4BF0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (012F4C98)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (012F4D40)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (012F4DE8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (012F4E90)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (012F4F38)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (012F4FE0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (012F5088)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (012F5130)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (012F51D8)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'LayoutCell' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'LayoutCell' windows added. (012F5280)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (012F5328)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (012F53D0)
08/10/2013 11:45:38 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
08/10/2013 11:45:38 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (012F5478)
08/10/2013 11:45:38 (Std)    CEGUI::System singleton created. (012F0E98)
08/10/2013 11:45:38 (Std)    ---- CEGUI System initialisation completed ----
08/10/2013 11:45:38 (Std)    
08/10/2013 11:45:38 (Std)    [OgreRenderer] Created texture: cegui_logo
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'cegui_logo' (012FF708) of type: BasicImage
08/10/2013 11:45:38 (Std)    Started creation of Scheme from XML specification:
08/10/2013 11:45:38 (Std)    ---- CEGUI GUIScheme name: SampleBrowserSkin
08/10/2013 11:45:38 (Std)    [ImageManager] Started creation of Imageset from XML specification:
08/10/2013 11:45:38 (Std)    [ImageManager] ---- CEGUI Imageset name: SampleBrowserSkin
08/10/2013 11:45:38 (Std)    [ImageManager] ---- Source texture file: SampleBrowser.png
08/10/2013 11:45:38 (Std)    [ImageManager] ---- Source texture resource group: (Default)
08/10/2013 11:45:38 (Std)    [OgreRenderer] Created texture: SampleBrowserSkin
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/GenericFiller' (01320868) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MouseArrow' (01320958) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MouseArrowHover' (01320A48) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameBottom' (01320CE8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameBottomRight' (0131FD70) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameBottomLeft' (0131FB78) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameLeft' (0131FC68) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameTopRight' (01321398) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameRight' (01321488) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameTop' (01321578) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SampleFrameTopLeft' (0131F060) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxB' (013218D0) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxTR' (0131F8E8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxT' (0131F3E0) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxTL' (01363FD8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxR' (013640C8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxBR' (013641B8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxM' (013642A8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxBL' (01364398) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TextBoxL' (01364488) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/CaptionM' (01364578) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/CaptionL' (01364668) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/CaptionR' (01364758) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayBL' (01364848) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayM' (01364938) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayB' (01364A28) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayTR' (01364B18) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayL' (01364C08) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayTL' (01364CF8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayT' (01364DE8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayBR' (01364ED8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/TrayR' (01364FC8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/Handle' (013650B8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/HorzTrackR' (013651A8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/HorzTrackM' (01365298) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/VertTrackT' (01365388) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/HorzTrackL' (01365478) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/VertTrackM' (01365568) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/VertTrackB' (01365658) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayM' (01365748) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayTR' (01365838) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayTL' (01365928) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayL' (01365A18) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayB' (01365B08) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayBR' (01365BF8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayT' (01365CE8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayBL' (01365DD8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/MiniTrayR' (01365EC8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/SamplesForeground' (01367FD8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ExitButtonNormal' (013680C8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/EntryButtonNormal' (013681B8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ExitButtonHover' (013682A8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ExitButtonClicked' (01368398) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/EntryButtonHover' (01368488) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/EntryButtonClicked' (01368578) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarTop' (01368668) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarMiddle' (01368758) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarBot' (01368848) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarTopLeft' (01368938) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarBotLeft' (01368A28) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarRight' (01368B18) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarLeft' (01368C08) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarTopRight' (01368CF8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarBotRight' (01368DE8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverTop' (01368ED8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverLeft' (01368FC8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverTopLeft' (013690B8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverBotRight' (013691A8) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverBot' (01369298) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverMiddle' (01369388) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverBotLeft' (01369478) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverRight' (01369568) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/ProgessBarOverTopRight' (01369658) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/LightBackground' (01369748) of type: BasicImage
08/10/2013 11:45:38 (Std)    [ImageManager] Created image: 'SampleBrowserSkin/LightOverlay' (01369838) of type: BasicImage
08/10/2013 11:45:38 (Std)    ---- Returning existing instance of Font named 'DejaVuSans-12'.
08/10/2013 11:45:38 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
08/10/2013 11:45:38 (Std)    ===== Look and feel parsing completed =====
08/10/2013 11:45:38 (Std)    No window renderer factories specified for module 'CEGUICoreWindowRendererSet' - adding all available factories...
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Button' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Button' added. (06C2B0B0)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Default' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Default' added. (06C2B158)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Editbox' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Editbox' added. (06C2B200)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/FrameWindow' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/FrameWindow' added. (06C2B2A8)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ItemEntry' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ItemEntry' added. (06C2B350)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ListHeader' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ListHeader' added. (06C2B3F8)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ListHeaderSegment' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ListHeaderSegment' added. (06C2B4A0)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Listbox' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Listbox' added. (06C2B548)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Menubar' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Menubar' added. (06C2B5F0)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/MenuItem' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/MenuItem' added. (06C2B698)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/MultiColumnList' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/MultiColumnList' added. (06C2B740)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/MultiLineEditbox' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/MultiLineEditbox' added. (06C2B7E8)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/PopupMenu' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/PopupMenu' added. (06C2B890)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ProgressBar' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ProgressBar' added. (06C2B938)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ScrollablePane' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ScrollablePane' added. (06C2B9E0)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Scrollbar' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Scrollbar' added. (06C2BA88)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Slider' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Slider' added. (06C2BB30)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Static' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Static' added. (06C2BBD8)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/StaticImage' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/StaticImage' added. (06C2BC80)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/StaticText' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/StaticText' added. (06C2BD28)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/TabButton' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/TabButton' added. (06C2BDD0)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/TabControl' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/TabControl' added. (06C2BE78)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Titlebar' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Titlebar' added. (06C2BF20)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ToggleButton' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ToggleButton' added. (06C2BFC8)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Tooltip' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Tooltip' added. (06C2C070)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/ItemListbox' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/ItemListbox' added. (06C1D138)
08/10/2013 11:45:38 (Std)    Created WindowRendererFactory for 'Core/Tree' WindowRenderers.
08/10/2013 11:45:38 (Std)    WindowRendererFactory 'Core/Tree' added. (06C1D918)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/Label' using base type 'DefaultWindow', window renderer 'Core/Default' Look'N'Feel 'SampleBrowserSkin/Label' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/SampleWindow' using base type 'DefaultWindow', window renderer 'Core/Default' Look'N'Feel 'SampleBrowserSkin/SampleWindow' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/Button' using base type 'CEGUI/PushButton', window renderer 'Core/Button' Look'N'Feel 'SampleBrowserSkin/Button' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Core/ProgressBar' Look'N'Feel 'SampleBrowserSkin/ProgressBar' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Core/Titlebar' Look'N'Feel 'SampleBrowserSkin/Titlebar' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Core/FrameWindow' Look'N'Feel 'SampleBrowserSkin/FrameWindow' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/StaticText' using base type 'DefaultWindow', window renderer 'Core/StaticText' Look'N'Feel 'SampleBrowserSkin/StaticText' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Core/Scrollbar' Look'N'Feel 'SampleBrowserSkin/VerticalScrollbar' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Core/Scrollbar' Look'N'Feel 'SampleBrowserSkin/HorizontalScrollbar' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/Thumb' using base type 'CEGUI/Thumb', window renderer 'Core/Button' Look'N'Feel 'SampleBrowserSkin/Thumb' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Core/ScrollablePane' Look'N'Feel 'SampleBrowserSkin/ScrollablePane' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Std)    Creating falagard mapping for type 'SampleBrowserSkin/Light' using base type 'DefaultWindow', window renderer 'Core/Default' Look'N'Feel 'SampleBrowserSkin/Light' and RenderEffect ''. (0022D170)
08/10/2013 11:45:38 (Warn)   Property 'HorzExtent' is not writable so it's implicitly banned from XML. No need to ban it manually
08/10/2013 11:45:38 (Warn)   Property 'VertExtent' is not writable so it's implicitly banned from XML. No need to ban it manually
08/10/2013 11:45:38 (Std)    ---- Successfully completed loading of GUI layout from 'SampleBrowserLoadScreen.layout' ----
08/10/2013 11:45:38 (Std)    [OgreRenderer] Created texture: DejaVuSans-12_auto_glyph_images_32
Last edited by gamecat on Wed Oct 09, 2013 08:30, edited 2 times in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby Kulik » Tue Oct 08, 2013 19:49

It could be that what you commented just manifested an earlier problem. Either way, I can't reproduce this here. -O3 works fine. Could you run it through valgrind? Valgrind should catch prior memory bugs that might be causing the corruption.

EDIT: Ahh, Windows and g++, I am trying this on Linux.
EDIT2: I have no intention to setup a mingw environment to test this, hopefully somebody else will chime in.

franzbischoff
Just popping in
Just popping in
Posts: 3
Joined: Fri Feb 28, 2014 00:43

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby franzbischoff » Sat Mar 01, 2014 11:38

Hi!

Got the same problem here with mingw g++ with -O3 (only in CEGUIBase for now). -O2 works fine. CEGUI 0.8.3.

Before find this post, I've pinpointed a problem at renderImage() function at FrameComponent.cpp.

I found that inside this function that is overrided (from parent), and const, the variable "this" is said <optimized out> in debugger.

After passing thru this function, the "this" variable becoems invalid, and the next call to getImage() fails because "this" is invalid.

My 2 cents.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby Ident » Sat Mar 01, 2014 17:43

Any idea how to fix this or how to do this correctly? I don't use mingw/Linux so I can't do much at this point except integrating a fix if it looks correct and not damaging other builds.

Also why would it "optimize out" a "this" pointer in a member function at all? Seems wrong to me ...
CrazyEddie: "I don't like GUIs"

gamecat
Just popping in
Just popping in
Posts: 20
Joined: Mon Jan 12, 2009 06:40
Location: SF Bay Area

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby gamecat » Sun Mar 02, 2014 02:40

Good luck. Here's how I finally worked around it -

Find: ....\CEGUI\build_v0-8-2\cegui-rel\cegui\src\CMakeFiles\CEGUIBase-0.dir\build.make

In the build commands for FrameComponent.cpp, FrameComponent.cpp.i, and FrameComponent.cpp.s, add '-O2' after $(CXX_FLAGS).

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby Ident » Sun Mar 02, 2014 02:42

Can we assume this is a mingw bug?
CrazyEddie: "I don't like GUIs"

gamecat
Just popping in
Just popping in
Posts: 20
Joined: Mon Jan 12, 2009 06:40
Location: SF Bay Area

Re: APPCRASH in FrameComponent when using g++ -O3 build opti

Postby gamecat » Sun Mar 02, 2014 02:57

Seems like it might be. If I had the time I'd try to boil it down to a simple test program and submit it to the MinGW folks. But I don't, so I won't.

I just came across this in the forums: viewtopic.php?f=5&t=6252

Don't have the time to delve into it right now - but it sounds related.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 1 guest