[SOLVED]Cannot load image! SDL2_image returned an error in IMG_Load_RW

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

drwbns
Just popping in
Just popping in
Posts: 18
Joined: Wed May 30, 2012 15:37

[SOLVED]Cannot load image! SDL2_image returned an error in IMG_Load_RW

Postby drwbns » Thu Nov 28, 2019 06:52

Hello everyone. Having a problem loading an image - I believe I'm getting stuck on TaharezLook.png. Call stack and debugging isn't showing anything too obvious:
cegui-error5.PNG


Filename is just showing blank for some reason while debugging, but based on the log, I'm guessing we are loading "TaharezLook.png"
:
cegui-error5.PNG

Code: Select all

27/11/2019 22:34:41 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
27/11/2019 22:34:41 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
27/11/2019 22:34:41 (Std)    +                          (http://www.cegui.org.uk/)                         +
27/11/2019 22:34:41 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

27/11/2019 22:34:41 (Std)    CEGUI::Logger Singleton created. (00BEEE58)
27/11/2019 22:34:41 (Std)    
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    * Important:                                                                   *
27/11/2019 22:34:41 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
27/11/2019 22:34:41 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
27/11/2019 22:34:41 (Std)    *     support being given; please do not waste our time.                       *
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    ---- Version: 9999.0.0 (Build: Nov 24 2019 Debug Microsoft Windows MSVC++ Unknown MSVC++ version 32 bit) ----
27/11/2019 22:34:41 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
27/11/2019 22:34:41 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
27/11/2019 22:34:41 (Std)    ---- Image Codec module is: CEGUI::SDL2ImageCodec - Official SDL2 based image codec ----
27/11/2019 22:34:41 (Std)    ---- Scripting module is: None ----
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
27/11/2019 22:34:41 (Std)    ********************************************************************************
27/11/2019 22:34:41 (Std)    
27/11/2019 22:34:41 (Std)    ---- Beginning CEGUI System initialisation ----
27/11/2019 22:34:41 (Std)    CEGUI::ImageManager Singleton created. (00B3B8E8)
27/11/2019 22:34:41 (Std)    [ImageManager] Registered Image type: BitmapImage
27/11/2019 22:34:41 (Std)    [ImageManager] Registered Image type: SVGImage
27/11/2019 22:34:41 (Std)    CEGUI::FontManager Singleton created. (02E87B18)
27/11/2019 22:34:41 (Std)    CEGUI::WindowFactoryManager Singleton created. (0673BE78)
27/11/2019 22:34:41 (Std)    CEGUI::WindowManager Singleton created. (02E875C8)
27/11/2019 22:34:41 (Std)    CEGUI::SchemeManager Singleton created. (0689ED10)
27/11/2019 22:34:41 (Std)    CEGUI::GlobalEventSet Singleton created. (06749510)
27/11/2019 22:34:41 (Std)    CEGUI::AnimationManager Singleton created. (067C2168)
27/11/2019 22:34:41 (Std)    CEGUI::WidgetLookManager Singleton created. (00BD23D8)
27/11/2019 22:34:41 (Std)    CEGUI::WindowRendererManager Singleton created. (00BD2380)
27/11/2019 22:34:41 (Std)    CEGUI::RenderEffectManager Singleton created. (067C1878)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'DefaultWindow' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'DefaultWindow' windows added. (00BD91E0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'DragContainer' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'DragContainer' windows added. (00BD9460)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'ScrolledContainer' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'ScrolledContainer' windows added. (00BD90A0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/PushButton' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/PushButton' windows added. (00BD93C0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/RadioButton' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/RadioButton' windows added. (00BD8E20)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Combobox' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Combobox' windows added. (00BD90F0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ComboDropList' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ComboDropList' windows added. (00BD9190)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Editbox' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Editbox' windows added. (00BD8AB0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/FrameWindow' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/FrameWindow' windows added. (00BD9140)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ItemEntry' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ItemEntry' windows added. (00BD8CE0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ListHeader' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ListHeader' windows added. (00BD9280)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00BD9870)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ListWidget' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ListWidget' windows added. (00BD98C0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Menubar' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Menubar' windows added. (00BD9780)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/PopupMenu' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/PopupMenu' windows added. (00BD9730)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/MenuItem' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/MenuItem' windows added. (00BD9910)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/MultiColumnList' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/MultiColumnList' windows added. (00BD9960)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (00BD9550)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ProgressBar' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ProgressBar' windows added. (00BD9690)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ScrollablePane' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ScrollablePane' windows added. (00BD96E0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Scrollbar' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Scrollbar' windows added. (00BD97D0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Slider' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Slider' windows added. (00BD9820)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Spinner' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Spinner' windows added. (00BD99B0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/TabButton' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/TabButton' windows added. (00BD9A00)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/TabControl' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/TabControl' windows added. (00BD95F0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Thumb' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Thumb' windows added. (00BD94B0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Titlebar' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Titlebar' windows added. (00BD9500)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ToggleButton' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ToggleButton' windows added. (00BD95A0)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/Tooltip' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/Tooltip' windows added. (00BD9320)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/GroupBox' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/GroupBox' windows added. (00BD9640)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/TreeWidget' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/TreeWidget' windows added. (06797240)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'HorizontalLayoutContainer' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'HorizontalLayoutContainer' windows added. (06863ED8)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'VerticalLayoutContainer' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'VerticalLayoutContainer' windows added. (068642E8)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'GridLayoutContainer' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'GridLayoutContainer' windows added. (06863F78)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/ListView' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/ListView' windows added. (06864608)
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] Created WindowFactory for 'CEGUI/TreeView' windows.
27/11/2019 22:34:41 (Std)    [WindowFactoryManager] WindowFactory for 'CEGUI/TreeView' windows added. (06863F28)
27/11/2019 22:34:41 (Std)    CEGUI::System Singleton created. (02EE6D98)
27/11/2019 22:34:41 (Std)    ---- CEGUI System initialisation completed ----
27/11/2019 22:34:41 (Std)    
27/11/2019 22:34:41 (Std)    Started creation of Scheme from XML specification:
27/11/2019 22:34:41 (Std)    ---- CEGUI GUIScheme name: TaharezLook
27/11/2019 22:34:41 (Std)    [ImageManager] Started creation of Imageset from XML specification:
27/11/2019 22:34:41 (Std)    [ImageManager] ---- CEGUI Imageset name: TaharezLook
27/11/2019 22:34:41 (Std)    [ImageManager] ---- Source image file: TaharezLook.png
27/11/2019 22:34:41 (Std)    [ImageManager] ---- Source resource group: (Default)
27/11/2019 22:34:41 (Error)   Cannot load image! SDL2_image returned an error in IMG_Load_RW
27/11/2019 22:34:41 (Error)   CEGUI::RendererException in function 'void __thiscall CEGUI::OpenGLTexture::loadFromFile(const class CEGUI::String &,const class CEGUI::String &)' (C:\Users\Admin\Documents\Visual Studio 2017\Projects\lucebac-cegui-494cad0c4a90\cegui\src\RendererModules\OpenGL\Texture.cpp:175) : CEGUI::SDL2ImageCodec - Official SDL2 based image codec failed to load image 'TaharezLook.png'.
27/11/2019 22:34:41 (Error)   ========== Start of Backtrace ==========
27/11/2019 22:34:41 (Error)   #0 CEGUI::Exception::Exception0000000000000305 (1)
27/11/2019 22:34:41 (Error)   #1 CEGUI::RendererException::RendererException000000000000007b (1)
27/11/2019 22:34:41 (Error)   #2 CEGUI::OpenGLTexture::loadFromFile000000000000029d (1)
27/11/2019 22:34:41 (Error)   #3 CEGUI::OpenGLTexture::initialise0000000000000046 (1)
27/11/2019 22:34:41 (Error)   #4 CEGUI::OpenGLRendererBase::createTexture0000000000000270 (1)
27/11/2019 22:34:41 (Error)   #5 CEGUI::ImageManager::retrieveImagesetTexture0000000000000126 (1)
27/11/2019 22:34:41 (Error)   #6 CEGUI::ImageManager::elementImagesetStart000000000000041a (1)
27/11/2019 22:34:41 (Error)   #7 CEGUI::ImageManager::elementStartLocal0000000000000091 (1)
27/11/2019 22:34:41 (Error)   #8 CEGUI::ChainedXMLHandler::elementStart000000000000006f (1)
27/11/2019 22:34:41 (Error)   #9 CEGUI::ExpatParser::startElement000000000000014c (1)
27/11/2019 22:34:41 (Error)   #10 doContent00000000000007a1 (1)
27/11/2019 22:34:41 (Error)   #11 contentProcessor0000000000000052 (1)
27/11/2019 22:34:41 (Error)   #12 doProlog0000000000000891 (1)
27/11/2019 22:34:41 (Error)   #13 prologProcessor00000000000000a2 (1)
27/11/2019 22:34:41 (Error)   #14 prologInitProcessor0000000000000047 (1)
27/11/2019 22:34:41 (Error)   #15 XML_ParseBuffer0000000000000122 (1)
27/11/2019 22:34:41 (Error)   #16 XML_Parse0000000000000254 (1)
27/11/2019 22:34:41 (Error)   #17 CEGUI::ExpatParser::parseXML00000000000001a6 (1)
27/11/2019 22:34:41 (Error)   #18 CEGUI::XMLParser::parseXMLFile00000000000000b6 (1)
27/11/2019 22:34:41 (Error)   #19 CEGUI::ImageManager::loadImageset0000000000000073 (1)
27/11/2019 22:34:41 (Error)   #20 CEGUI::Scheme::loadXMLImagesets00000000000000bd (1)
27/11/2019 22:34:41 (Error)   #21 CEGUI::Scheme::loadResources00000000000000f3 (1)
27/11/2019 22:34:41 (Error)   #22 CEGUI::SchemeManager::doPostObjectAdditionAction0000000000000021 (1)
27/11/2019 22:34:41 (Error)   #23 CEGUI::SchemeManager::doExistingObjectAction0000000000000670 (1)
27/11/2019 22:34:41 (Error)   #24 CEGUI::SchemeManager::createFromFile000000000000008b (1)
27/11/2019 22:34:41 (Error)   #25 initCEGUI00000000000009cd (1)
27/11/2019 22:34:41 (Error)   #26 WinMain000000000000003e (1)
27/11/2019 22:34:41 (Error)   #27 invoke_main000000000000001e (1)
27/11/2019 22:34:41 (Error)   #28 __scrt_common_main_seh0000000000000157 (1)
27/11/2019 22:34:41 (Error)   #29 __scrt_common_main000000000000000d (1)
27/11/2019 22:34:41 (Error)   #30 WinMainCRTStartup0000000000000008 (1)
27/11/2019 22:34:41 (Error)   #31 BaseThreadInitThunk0000000000000019 (1)
27/11/2019 22:34:41 (Error)   #32 RtlGetAppContainerNamedObjectPath00000000000000e4 (1)
27/11/2019 22:34:41 (Error)   #33 RtlGetAppContainerNamedObjectPath00000000000000b4 (1)
27/11/2019 22:34:41 (Error)   ==========  End of Backtrace  ==========
27/11/2019 22:34:41 (Error)   The last thrown exception was related to XML file 'TaharezLook.imageset' from resource group 'imagesets'.
Attachments
cegui-error6.PNG
Last edited by drwbns on Thu Nov 28, 2019 08:47, edited 2 times in total.

drwbns
Just popping in
Just popping in
Posts: 18
Joined: Wed May 30, 2012 15:37

Re: Cannot load image! SDL2_image returned an error in IMG_Load_RW

Postby drwbns » Thu Nov 28, 2019 08:47

Had to have libpng, libtiff and zlib dlls...


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests