Access Violation QuickGUI::Root

Duffy

16-05-2010 22:05:31

Hi folks,

I'm currently developing a Game for the iPhone and decided to use QuickGUI, unfortunately I get an access violation exception @ runtime, when creating the QuickGUI::Root singleton.
I have no clue were to start debugging, any help would be appreciated.

The code:
Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("QuickGui");
new QuickGUI::Root();
QuickGUI::SkinTypeManager::getSingleton().loadTypes();


The Ogre log:

23:22:22: Creating resource group General
23:22:22: Creating resource group Internal
23:22:22: Creating resource group Autodetect
23:22:22: SceneManagerFactory for type 'DefaultSceneManager' registered.
23:22:22: Registering ResourceManager for type Material
23:22:22: Registering ResourceManager for type Mesh
23:22:22: Registering ResourceManager for type Skeleton
23:22:22: MovableObjectFactory for type 'ParticleSystem' registered.
23:22:22: OverlayElementFactory for type Panel registered.
23:22:22: OverlayElementFactory for type BorderPanel registered.
23:22:22: OverlayElementFactory for type TextArea registered.
23:22:22: Registering ResourceManager for type Font
23:22:22: ArchiveFactory for archive type FileSystem registered.
23:22:22: ArchiveFactory for archive type Zip registered.
23:22:22: DDS codec registering
23:22:22: FreeImage version: 3.13.1
23:22:22: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
23:22:22: 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,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
23:22:22: Registering ResourceManager for type HighLevelGpuProgram
23:22:22: Registering ResourceManager for type Compositor
23:22:22: MovableObjectFactory for type 'Entity' registered.
23:22:22: MovableObjectFactory for type 'Light' registered.
23:22:22: MovableObjectFactory for type 'BillboardSet' registered.
23:22:22: MovableObjectFactory for type 'ManualObject' registered.
23:22:22: MovableObjectFactory for type 'BillboardChain' registered.
23:22:22: MovableObjectFactory for type 'RibbonTrail' registered.
23:22:22: Loading library .\RenderSystem_Direct3D9_d
23:22:22: Installing plugin: D3D9 RenderSystem
23:22:22: D3D9 : Direct3D9 Rendering Subsystem created.
23:22:22: D3D9: Driver Detection Starts
23:22:22: D3D9: Driver Detection Ends
23:22:22: Plugin successfully installed
23:22:22: Loading library .\Plugin_ParticleFX_d
23:22:22: Installing plugin: ParticleFX
23:22:22: Particle Emitter Type 'Point' registered
23:22:22: Particle Emitter Type 'Box' registered
23:22:22: Particle Emitter Type 'Ellipsoid' registered
23:22:22: Particle Emitter Type 'Cylinder' registered
23:22:22: Particle Emitter Type 'Ring' registered
23:22:22: Particle Emitter Type 'HollowEllipsoid' registered
23:22:22: Particle Affector Type 'LinearForce' registered
23:22:22: Particle Affector Type 'ColourFader' registered
23:22:22: Particle Affector Type 'ColourFader2' registered
23:22:22: Particle Affector Type 'ColourImage' registered
23:22:22: Particle Affector Type 'ColourInterpolator' registered
23:22:22: Particle Affector Type 'Scaler' registered
23:22:22: Particle Affector Type 'Rotator' registered
23:22:22: Particle Affector Type 'DirectionRandomiser' registered
23:22:22: Particle Affector Type 'DeflectorPlane' registered
23:22:22: Plugin successfully installed
23:22:22: Loading library .\Plugin_OctreeSceneManager_d
23:22:22: Installing plugin: Octree & Terrain Scene Manager
23:22:22: Plugin successfully installed
23:22:22: *-*-* OGRE Initialising
23:22:22: *-*-* Version 1.7.1 (Cthugha)
23:22:22: Creating resource group Locations
23:22:22: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'Locations'
23:22:22: Added resource location 'media/materials/textures' of type 'FileSystem' to resource group 'Locations'
23:22:22: Added resource location 'media/models/' of type 'FileSystem' to resource group 'Locations'
23:22:22: Added resource location 'media/fonts/' of type 'FileSystem' to resource group 'Locations'
23:22:22: Creating resource group QuickGui
23:22:22: Added resource location 'media/gui/' of type 'FileSystem' to resource group 'QuickGui'
23:22:22: Added resource location 'media/gui/qgui.core.zip' of type 'Zip' to resource group 'QuickGui'
23:22:24: Initialising resource group QuickGui
23:22:24: Parsing scripts for resource group QuickGui
23:22:24: Parsing script qgui.skinTypes
23:22:25: Parsing script micross.fontdef
23:22:25: Finished parsing scripts for resource group QuickGui

Duffy

17-05-2010 00:19:44

Hi folks,

I read some posts with similar errors and one mentioned the need for shaders.
Since OpenGL ES 1.x does not support shaders, only fixed function pipelines, it seems that QuickGUI won't work on most mobile devices, is that correct ?

Alex

kungfoomasta

17-05-2010 18:31:15

Which line of code is causing the error,

new QuickGUI::Root();

or

QuickGUI::SkinTypeManager::getSingleton().loadTypes();

?

Are you able to step into the code and see at a lower level where the crash occurs? If you put a breakpoint into Root, for example, is that being hit, or its failing when trying to allocate memory for QuickGUI?

In the past QuickGUI used a very simple fragment/vertex shader, but its not in use anymore, no shaders required. :)

Duffy

17-05-2010 21:32:03

Hey,

the violaton occurs when allocating the QuickGUI root object
new QuickGUI::Root();

Unfortunately I use the SDK, so theres no source file to insert a breakpoint.
I use the 10.1 version and ogre 1.7.1.

Alex

Duffy

18-05-2010 09:33:32

I got it working by rebuilding quickgui against my ogre version, unfortunately I have no real clues why the violation happened in the first place, since I did the same thing the first time, perhaps I screwed up somewhere ;)

Nevertheless