access violation on init

SuperNess

16-02-2015 21:56:59

hello all,

I'm trying to use MyGui and I keep getting access violation on gui->initialise(); from this part (MyGUI_TextureUtility.cpp):


if (nullptr == render.getTexture(_texture))
{
if (!DataManager::getInstance().isDataExist(_texture)) // <-- access violation here (Unhandled exception at 0x0031b508 in game.exe: 0xC0000005: Access violation.)
{
MYGUI_LOG(Error, "Texture '" + _texture + "' not found");
return old_size;
}
else
{
ITexture* texture = render.createTexture(_texture);
texture->loadFromFile(_texture);
}
}


here's some technical data:

Ogre version: 1.9
MyGUI: 3.3.2 (I think)

MyGUI log (nothing intresting):


21:50:04 | Platform | Info | * Initialise: RenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 43
21:50:04 | Platform | Info | RenderManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 71
21:50:04 | Platform | Info | * Initialise: DataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 27
21:50:04 | Platform | Info | DataManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 35
21:50:04 | Core | Info | * Initialise: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 75
21:50:04 | Core | Info | * MyGUI version 3.2.0.Unversioned directory | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 82
21:50:04 | Core | Info | * Initialise: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 48
21:50:04 | Core | Info | ResourceManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 56
21:50:04 | Core | Info | * Initialise: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 49
21:50:04 | Core | Info | LayerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 57
21:50:04 | Core | Info | * Initialise: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 67
21:50:04 | Core | Info | WidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 98
21:50:04 | Core | Info | * Initialise: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 58
21:50:04 | Core | Info | InputManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 78
21:50:04 | Core | Info | * Initialise: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 49
21:50:04 | Core | Info | SubWidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 69
21:50:04 | Core | Info | * Initialise: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 53
21:50:04 | Core | Info | SkinManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 61
21:50:04 | Core | Info | * Initialise: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 48
21:50:04 | Core | Info | FontManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 57
21:50:04 | Core | Info | * Initialise: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 46
21:50:04 | Core | Info | ControllerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 56
21:50:04 | Core | Info | * Initialise: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 60
21:50:04 | Core | Info | PointerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 78
21:50:04 | Core | Info | * Initialise: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 87
21:50:04 | Core | Info | ClipboardManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 101
21:50:04 | Core | Info | * Initialise: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 45
21:50:04 | Core | Info | LayoutManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 50
21:50:04 | Core | Info | * Initialise: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 41
21:50:04 | Core | Info | DynLibManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 45
21:50:04 | Core | Info | * Initialise: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 45
21:50:04 | Core | Info | PluginManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 49
21:50:04 | Core | Info | * Initialise: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 45
21:50:04 | Core | Info | LanguageManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 49
21:50:04 | Core | Info | * Initialise: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 40
21:50:04 | Core | Info | FactoryManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 42
21:50:04 | Core | Info | * Initialise: ToolTipManager | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 48
21:50:04 | Core | Info | ToolTipManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 60
21:50:04 | Core | Info | Load ini file 'MyGUI_GeneratedFonts.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:50:04 | Core | Info | Load ini file 'MyGUI_Fonts.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:50:04 | Core | Info | ResourceTrueTypeFont: Font 'DejaVuSansFont_15' using texture size 128 x 256. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 674
21:50:04 | Core | Info | ResourceTrueTypeFont: Font 'DejaVuSansFont_15' using real height 17 pixels. | ..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp | 675
21:50:04 | Core | Info | Load ini file 'MyGUI_CommonSkins.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:50:04 | Core | Info | Register value : 'HCenter' = 0 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 238
21:50:04 | Core | Info | Register value : 'VCenter' = 0 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 239
21:50:04 | Core | Info | Register value : 'Center' = 0 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 240
21:50:04 | Core | Info | Register value : 'Left' = 2 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 241
21:50:04 | Core | Info | Register value : 'Right' = 4 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 242
21:50:04 | Core | Info | Register value : 'HStretch' = 6 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 243
21:50:04 | Core | Info | Register value : 'Top' = 8 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 244
21:50:04 | Core | Info | Register value : 'Bottom' = 16 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 245
21:50:04 | Core | Info | Register value : 'VStretch' = 24 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 246
21:50:04 | Core | Info | Register value : 'Stretch' = 30 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 247
21:50:04 | Core | Info | Register value : 'Default' = 10 | c:\projects\ogreguilibs\mygui_3.2.0\myguiengine\include\MyGUI_Align.h | 248
21:50:04 | Core | Info | Load ini file 'MyGUI_BlueWhiteTheme.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:50:04 | Core | Info | Load ini file 'MyGUI_BlueWhiteImages.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130
21:50:04 | Core | Info | Load ini file 'MyGUI_BlueWhiteSkins.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 130



any ideas?

thanks! :)


EDIT:
the "DataManager::getInstance()" part returns a legal pointer, the access violation comes from within the function isDataExist(), to which I don't have debug data from unknown reason (trying to figure this out).
help! :(

Altren

16-02-2015 23:30:54

Might be inconsistent MyGUI and MyGUI.OgrePlatform. For example debug MyGUI + release MyGUI.OgrePlatform. Try to rebuild everything, missing debug data might be related to problem.

SuperNess

17-02-2015 09:44:26

Yes! rebuilding and replacing ALL the dlls (including ogre dlls) somehow fixed this.
thanks :D