Page 1 of 1

Sample iPhone code starts but crashes

Posted: Thu Sep 02, 2010 10:33 pm
by bitblit
I followed the instructions on the wiki to build Ogre for the iPhone. I even installed all the optional components including Boost. I'm using Xcode 3.2.3. I'm not sure what the sample code is supposed to do, but on the simulator I see a greenish gray screen with the Ogre logo. About 2 minutes later, I see a 90 degree rotated screen. On my iPhone 4, I see the same greenish gray screen with the Ogre logo. 6 seconds later the screen goes black. I waited but didn't see anything else hapen. When I touch the screen I get a:

Assertion failed: (index < mViewportList.size() && "Index out of bounds"), function getViewport, file /Users/mbenson/ogre/OgreMain/src/OgreRenderTarget.cpp, line 444.

Has anybody else run into this? Is there an obvious solution to this?

Re: Sample iPhone code starts but crashes

Posted: Thu Sep 02, 2010 10:49 pm
by masterfalcon
Could you post the log too?

Re: Sample iPhone code starts but crashes

Posted: Thu Sep 02, 2010 10:57 pm
by bitblit
I tried the prebuilt iPhone binary and that seems to work.

Re: Sample iPhone code starts but crashes

Posted: Fri Sep 03, 2010 1:29 pm
by bitblit
Sorry. I tried to run it again, but it appears my Ogre libraries are now corrupt. Any attempt to compile or link anything Ogre related causes Xcode to lock up.

Re: Sample iPhone code starts but crashes

Posted: Thu Sep 09, 2010 6:21 pm
by bitblit
I think I built it incorrectly. After several other attempts, I think I finally got a clean install. Everything seems to work now.