I'm trying to use GLES2 Renderer for iOS of OGRE 1.8.0.
I create a new project file based on XCode template (for 1.7.3) and modified it referencing SampleBrowser's code,
build succeeded, and it had run!
(some topics of this forum help me. Thanks!)
but my program often stall at startup.
stall point is not fixed. but typical point is "mWorkQueue->startup();" in Ogre::Root::oneTimePostWindowInit()
Code: Select all
#0 0x3525fd18 in __semwait_signal ()
#1 0x344db4b2 in nanosleep ()
#2 0x003db0f4 in boost::shared_ptr<boost::detail::thread_data_base> boost::thread::make_thread_info<Ogre::DefaultWorkQueueBase::WorkerFunc>(Ogre::DefaultWorkQueueBase::WorkerFunc) at /Users/takasugiosamu/XCodeProjects/ogre/iosbuild/iPhoneDependencies/include/boost/smart_ptr/detail/yield_k.hpp:123
#3 0x003d75dc in Ogre::DefaultWorkQueue::startup(bool) ()
#4 0x002623fc in Ogre::Root::oneTimePostWindowInit() ()
#5 0x00267ad4 in Ogre::Root::initialise(bool, std::string const&, std::string const&) ()
#6 0x00005270 in OgreFramework::initOgre(std::string, OIS::KeyListener*, OIS::MultiTouchListener*) ()
#7 0x00003b9a in DemoApp::startDemo() ()
#8 0x0000309c in -[AppDelegate go] ()
#9 0x000034cc in -[AppDelegate application:didFinishLaunchingWithOptions:] ()
#10 0x33051820 in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
#11 0x3304bb64 in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()
#12 0x330207d6 in -[UIApplication handleEvent:withNewEvent:] ()
#13 0x33020214 in -[UIApplication sendEvent:] ()
#14 0x3301fc52 in _UIApplicationHandleEvent ()
#15 0x34e19e76 in PurpleEventCallback ()
#16 0x33ab9a96 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#17 0x33abb83e in __CFRunLoopDoSource1 ()
#18 0x33abc60c in __CFRunLoopRun ()
#19 0x33a4cec2 in CFRunLoopRunSpecific ()
#20 0x33a4cdca in CFRunLoopRunInMode ()
#21 0x3304ad48 in -[UIApplication _run] ()
#22 0x33048806 in UIApplicationMain ()
#23 0x00003778 in main ()
it seems boost::shared_ptr rise deadlock, but I can't avoid this deadlock yet.
Can anyone figure out how to avoid this deadlock?
SampleBrowser with GLES2/1.8.0 works well in my environment. but my application dosen't work same as SampleBrowser...
