lianlab / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

IPhoneDemo crashes #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Xcode 4.0.2 in OS X 10.6.7 I compiled svn revision 887 and
when I ran it in the iphone 4.3 simulator,
the demo crashes.

Xcode states receiving the signal EXC_BAD_ACCESS from

line 430
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
in function
GLESRenderSystem::setAmbientLight(float r, float g, float b)
in file
OgreGLESRenderSystem.cpp

called from line 1433
mDestRenderSystem->setAmbientLight(mAmbientLight.r, mAmbientLight.g, 
mAmbientLight.b);
in function 
SceneManager::_renderScene(Camera* camera, Viewport* vp, bool includeOverlays)
in file
OgreSceneManager.cpp

called from line 414
for (ListenerList::iterator i = mListeners.begin(); i != mListeners.end(); ++i)
(note I think the problem actually is from the line above)
in function 
Camera::_renderScene(Viewport *vp, bool includeOverlays)
in file
OgreCamera.cpp

called from line 217
mCamera->_renderScene(this, mShowOverlays);
in function
Viewport::update(void)
in file
OgreViewport.cpp

called from line 199
viewport->update();
in function
RenderTarget::_updateViewport(Viewport* viewport, bool updateStatistics)
in file
OgreRenderTarget.cpp

called from line 177
_updateViewport(viewport,updateStatistics);
in function
RenderTarget::_updateAutoUpdatedViewports(bool updateStatistics)
in file
OgreRenderTarget.cpp

called from line 154
_updateAutoUpdatedViewports(true);
in function
RenderTarget::updateImpl(void)
in file
OgreRenderTarget.cpp

called from line 611
updateImpl();
in function
RenderTarget::update(bool swap)
in file
OgreRenderTarget.cpp

called from line 122
itarg->second->update(swapBuffers);
in function
RenderSystem::_updateAllRenderTargets(bool swapBuffers)
in file
OgreRenderSystem.cpp

called from line 1382
mActiveRenderer->_updateAllRenderTargets(false);
in function
Root::_updateAllRenderTargets(void)
in file
OgreRoot.cpp

called from line 971
if (!_updateAllRenderTargets())
in function
Root::renderOneFrame(void)
in file
OgreRoot.cpp

called from line 585
if (!m_private->root->renderOneFrame())
in function
gkEngine::stepOneFrame(void)
in file
gkEngine.cpp

called from line 69
return m_engine->stepOneFrame();
in function
stepOneFrame(void)
in file
Main.mm

called from line 257
m_okit.stepOneFrame();
in function
- (void)stepOneFrame:(id)sender
in file
Main.mm

This is the console output is

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 51174.
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
DDS codec registering
FreeImage version: 3.13.0
This program uses FreeImage, a free, open source image library supporting all 
common bitmap formats. See http://freeimage.sourceforge.net for details
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
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.8.0unstable (Byatis)
Installing plugin: OpenGL ES 1.x RenderSystem
OpenGL ES 1.x Rendering Subsystem created.
Plugin successfully installed
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
ArchiveFactory for archive type BLEND registered.
CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz
 *      SSE: yes
 *     SSE2: yes
 *     SSE3: yes
 *      MMX: yes
 *   MMXEXT: yes
 *    3DNOW: no
 * 3DNOWEXT: no
 *     CMOV: yes
 *      TSC: yes
 *      FPU: yes
 *      PRO: yes
 *       HT: no
-------------------------
Added resource location '' of type 'BLEND' to resource group 'General'
Particle Emitter Type 'gkEmitter' registered
Particle Affector Type 'gkAffector' registered
Particle Renderer Type 'gkBillboard' registered
AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit 
little-endian signed integer, deinterleaved
GLESRenderSystem::_createRenderWindow "OgreKit Demo (Press Escape to 
exit)[momo_ogre_i.blend]", 320x480 windowed  miscParams: 
iOS: Window created 320 x 480 with backing store size 320 x 480 using content 
scaling factor 1.0
GL_VERSION = OpenGL ES 2.0 APPLE
GL_VENDOR = Apple Computer, Inc.
GL_RENDERER = Apple Software Renderer
GL_EXTENSIONS = GL_OES_depth_texture GL_OES_depth24 GL_OES_fbo_render_mipmap 
GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 
GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object 
GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_read_format_bgra 
GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic 
GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 
GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format 
GL_IMG_texture_compression_pvrtc 
EXT:GL_OES_depth_texture
EXT:GL_OES_depth24
EXT:GL_OES_fbo_render_mipmap
EXT:GL_OES_mapbuffer
EXT:GL_OES_packed_depth_stencil
EXT:GL_OES_rgb8_rgba8
EXT:GL_OES_texture_float
EXT:GL_OES_texture_half_float
EXT:GL_OES_vertex_array_object
EXT:GL_EXT_blend_minmax
EXT:GL_EXT_discard_framebuffer
EXT:GL_EXT_read_format_bgra
EXT:GL_EXT_shader_texture_lod
EXT:GL_EXT_texture_filter_anisotropic
EXT:GL_APPLE_framebuffer_multisample
EXT:GL_APPLE_rgb_422
EXT:GL_APPLE_texture_format_BGRA8888
EXT:GL_APPLE_texture_max_level
EXT:GL_IMG_read_format
EXT:GL_IMG_texture_compression_pvrtc
**************************************
*** OpenGL ES 1.x Renderer Started ***
**************************************
Registering ResourceManager for type GpuProgram
GL ES: Using PBuffers for rendering to textures
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 1.x Rendering Subsystem
GPU Vendor: apple
Device Name: Apple Software Renderer
Driver Version: 0.0.0.0
 * Fixed function pipeline: yes
 * Hardware generation of mipmaps: yes
 * Texture blending: yes
 * Anisotropic texture filtering: yes
 * Dot product texture operation: yes
 * Cube mapping: no
 * Hardware stencil buffer: no
 * Hardware vertex / index buffers: yes
 * Vertex programs: no
 * Number of floating-point constants for vertex programs: 0
 * Number of integer constants for vertex programs: 0
 * Number of boolean constants for vertex programs: 0
 * Fragment programs: no
 * Number of floating-point constants for fragment programs: 0
 * Number of integer constants for fragment programs: 0
 * Number of boolean constants for fragment programs: 0
 * Geometry programs: no
 * Number of floating-point constants for geometry programs: 0
 * Number of integer constants for geometry programs: 0
 * Number of boolean constants for geometry programs: 0
 * Supported Shader Profiles:
 * Texture Compression: yes
   - DXT: no
   - VTC: no
   - PVRTC: yes
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: no
 * User clip planes: yes
 * VET_UBYTE4 vertex element type: yes
 * Infinite far plane projection: yes
 * Hardware render-to-texture: yes
 * Floating point textures: no
 * Non-power-of-two textures: no
 * Volume textures: no
 * Multiple Render Targets: 1
   - With different bit depths: no
 * Point Sprites: no
 * Extended point parameters: yes
 * Vertex texture fetch: no
 * Number of world matrices: 0
 * Number of texture units: 45880
 * Stencil buffer depth: 0
 * Number of vertex blend matrices: 0
 * Render to Vertex Buffer : no
 * GL 1.5 without VBO workaround: no
 * Frame Buffer objects: no
 * Frame Buffer objects (ARB extension): no
 * Frame Buffer objects (ATI extension): no
 * PBuffer support: yes
 * GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
DefaultWorkQueue('Root') initialising on thread main.
Particle Renderer Type 'billboard' registered
Creating resource group <gkBuiltin>
Texture: <gkBuiltin/FlareAlpah64.png>: Loading 1 faces(PF_A8B8G8R8,64x64x1) 
with 6 hardware generated mipmaps from Image. Internal format is 
PF_A8R8G8B8,64x64x1.
Font <gkBuiltin/Font>using texture size 256x256
Info: Freetype returned null for character 160 in font <gkBuiltin/Font>
Texture: <gkBuiltin/Font>Texture: Loading 1 faces(PF_BYTE_LA,256x256x1) with  
hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
Creating resource group 
[Switching to process 51174 thread 0xab0b]
BLENDER-v253

sizeof(void*) == 4
Swapping endian? no
File format is 64 bit
Varing pointer sizes? yes
swap = 0
swap = 0
Warning, file DNA is different than built in, performance is reduced. Best to 
re-export file with a matching version/platformBuilding datablocks
Chunk size = 20
File chunk size = 24
resolvePointers start
resolvePointers end
numAllocs = 11776
Sound: Loaded buffer Break.
Sound: Loaded buffer Fly.
Sound: Loaded buffer bird_splat.ogg.
Sound: Loaded buffer Impact.
Sound: Loaded buffer msx_fight.ogg.
Sound: Loaded buffer Step.
Texture: SkyFront.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,256x256x1.
Texture: SkyBack.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,256x256x1.
Texture: SkyLeft.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,256x256x1.
Texture: SkyRight.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,256x256x1.
Texture: SkyTop.png: Loading 1 faces(PF_A8B8G8R8,2x2x1) with 1 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,2x2x1.
Texture: SkyBottom.png: Loading 1 faces(PF_A8B8G8R8,2x2x1) with 1 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,2x2x1.
Texture: Bridge: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: Dirt: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: GroundAlpha: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: Grass: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: GroundAO: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: MomoTex: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: Weeds.png: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: Fern: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: OverHang: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: Stone: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: crate.jpg: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,256x256x1.
Texture: StoneCliff.jpg: Loading 1 faces(PF_B8G8R8,1024x256x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,1024x256x1.
Texture: PlatBigAO.tga: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: PlatMedAO.tga: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: Stump: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: Bark: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 hardware generated 
mipmaps from Image. Internal format is PF_R8G8B8,512x512x1.
Texture: Leaves: Loading 1 faces(PF_A8B8G8R8,1024x1024x1) with 5 hardware 
generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x1024x1.
WARNING: Stencil shadows were requested, but this device does not have a 
hardware stencil. Shadows disabled.
OpenGL error 0x0500 in bool Ogre::EAGLES2Context::createFramebuffer() at line 
91 in 
/Users/hudson/Documents/Programming/GameKit/gamekit-read-only/Ogre-1.8/RenderSys
tems/GLES2/src/EAGL/OgreEAGLES2Context.mm
[Switching to process 51174 thread 0x207]
sharedlibrary apply-load-rules all
Current language:  auto; currently c++
(gdb) 

Original issue reported on code.google.com by jonathan...@gmail.com on 24 Apr 2011 at 7:44

GoogleCodeExporter commented 9 years ago
In my case, Emulator is working with XCode 4.0.1, but demo isn't working on 
Device 4.3.2.
It seems, Ogrekit still has a issue with XCode4.
I will try fix it. Thanks.

Original comment by harkon...@gmail.com on 27 Apr 2011 at 11:23

GoogleCodeExporter commented 9 years ago
r890 is working with XCode 4.0.2/iOS 4.3.2.

Original comment by harkon...@gmail.com on 29 Apr 2011 at 1:06

GoogleCodeExporter commented 9 years ago
Close old issue.

Original comment by harkon...@gmail.com on 21 May 2011 at 4:44