Ogre::Root::initialise fails with other static library

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
rado0x54
Gnoblar
Posts: 14
Joined: Fri Jul 08, 2011 5:38 pm
x 1

Ogre::Root::initialise fails with other static library

Post by rado0x54 »

Hey,

I have to weirdest problem right now I apparently I cannot come up with a reasonable explanation. Maybe you guys have an idea.

Ok, I have an Ogre3D Demo running perfectly, but when I add another external library (ROS http://www.ros.org), suddenly Ogre3D fails to
initialize properly and just hangs. The strange thing is:

- Simulator always works
- Device (Start from Xcode) sometimes works
- Device (Stand-alone Startup) never works

Ogre hangs inside Ogre::Root::initialise:

Code: Select all

Incident Identifier: D5151173-F21B-4140-8860-19032AB2C9CD
CrashReporter Key:   fa9655cd1ead99b3a3379c13b05c506334ed8a45
Hardware Model:      iPad2,2
Process:         iRviz [1680]
Path:            /var/mobile/Applications/CED50CC5-453E-4873-931A-9F58A8C10B34/iRviz.app/iRviz
Identifier:      iRviz
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-07-13 13:59:56.775 +0200
OS Version:      iPhone OS 4.3.3 (8J2)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
iRviz failed to launch in time

Elapsed total CPU time (seconds): 17.790 (user 1.630, system 16.160), 44% CPU 
Elapsed application CPU time (seconds): 16.160, 40% CPU

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib        	0x3558fd18 __semwait_signal + 24
1   libsystem_c.dylib             	0x356354ac nanosleep + 132
2   iRviz                         	0x0046bd68 Ogre::DefaultWorkQueue::startup(bool) + 2416
3   iRviz                         	0x002bda48 Ogre::Root::oneTimePostWindowInit() + 52
4   iRviz                         	0x002c398c Ogre::Root::initialise(bool, std::string const&, std::string const&) + 928
5   iRviz                         	0x00006d54 OgreFramework::initOgre(std::string) (OgreFramework.cpp:58)
6   iRviz                         	0x00003ea4 DemoApp::startDemo() (OgreDemoApp.cpp:113)
7   iRviz                         	0x00002c84 -[AppDelegate go] (AppDelegate.h:98)
8   iRviz                         	0x0000311e -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.h:166)
9   UIKit                         	0x30a1781a -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 766
10  UIKit                         	0x30a11b5e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 266
11  UIKit                         	0x309e67d0 -[UIApplication handleEvent:withNewEvent:] + 1108
12  UIKit                         	0x309e620e -[UIApplication sendEvent:] + 38
13  UIKit                         	0x309e5c4c _UIApplicationHandleEvent + 5084
14  GraphicsServices              	0x30269e70 PurpleEventCallback + 660
15  CoreFoundation                	0x30957a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
16  CoreFoundation                	0x30959838 __CFRunLoopDoSource1 + 160
17  CoreFoundation                	0x3095a606 __CFRunLoopRun + 514
18  CoreFoundation                	0x308eaebc CFRunLoopRunSpecific + 224
19  CoreFoundation                	0x308eadc4 CFRunLoopRunInMode + 52
20  UIKit                         	0x30a10d42 -[UIApplication _run] + 366
21  UIKit                         	0x30a0e800 UIApplicationMain + 664
22  iRviz                         	0x0000397a main (main.mm:14)
23  iRviz                         	0x00002b74 start + 32

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib        	0x35590fbc kevent + 24
1   libdispatch.dylib             	0x3525bed4 _dispatch_mgr_invoke + 744
2   libdispatch.dylib             	0x3525cf3a _dispatch_queue_invoke + 70
3   libdispatch.dylib             	0x3525c4ec _dispatch_worker_thread2 + 228
4   libsystem_c.dylib             	0x3566758a _pthread_wqthread + 258
5   libsystem_c.dylib             	0x35667bbc start_wqthread + 0

Thread 2 name:  WebThread
Thread 2:
0   libsystem_kernel.dylib        	0x3558dc00 mach_msg_trap + 20
1   libsystem_kernel.dylib        	0x3558d758 mach_msg + 44
2   CoreFoundation                	0x309582b8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                	0x3095a562 __CFRunLoopRun + 350
4   CoreFoundation                	0x308eaebc CFRunLoopRunSpecific + 224
5   CoreFoundation                	0x308eadc4 CFRunLoopRunInMode + 52
6   WebCore                       	0x35f5327e RunWebThread(void*) + 382
7   libsystem_c.dylib             	0x3566630a _pthread_start + 242
8   libsystem_c.dylib             	0x35667bb4 thread_start + 0

Thread 3:
0   libsystem_kernel.dylib        	0x3558fd18 __semwait_signal + 24
1   libsystem_c.dylib             	0x3568d860 _pthread_cond_wait + 756
2   libsystem_c.dylib             	0x35634eb2 pthread_cond_wait + 26
3   iRviz                         	0x0046e9e4 void boost::condition_variable_any::wait<boost::unique_lock<boost::recursive_mutex> >(boost::unique_lock<boost::recursive_mutex>&) + 320
4   iRviz                         	0x0046a124 Ogre::DefaultWorkQueue::waitForNextRequest() + 228
5   iRviz                         	0x0046ceb0 Ogre::DefaultWorkQueue::_threadMain() + 560
6   iRviz                         	0x0046daf0 boost::detail::thread_data<Ogre::DefaultWorkQueueBase::WorkerFunc>::run() + 8
7   iRviz                         	0x006d9d68 thread_proxy (thread.cpp:121)
8   libsystem_c.dylib             	0x3566630a _pthread_start + 242
9   libsystem_c.dylib             	0x35667bb4 thread_start + 0

Unknown thread crashed with unknown flavor: 5, state_count: 1

Binary Images:
    0x1000 -   0x87bfff +iRviz armv7  <fe81675ba4c13457b8607c0a04a71222> /var/mobile/Applications/CED50CC5-453E-4873-931A-9F58A8C10B34/iRviz.app/iRviz
0x2fe00000 - 0x2fe25fff  dyld armv7  <bb9bfc7d242331d29a79adf7ef7aaa18> /usr/lib/dyld
0x30c0b000 - 0x30c24fff  libRIP.A.dylib armv7  <4825c3e392983aba947eca06555e4480> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x30d48000 - 0x30d53fff  libz.1.dylib armv7  <ac706bee36593dc683fd5a96a389d72e> /usr/lib/libz.1.dylib
0x30d54000 - 0x30e75fff  CoreGraphics armv7  <65f6c8701b563542820a26b0dfc4f6a4> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x30e77000 - 0x30e85fff  OpenGLES armv7  <5a76beaeaa013f0cbf16e5cb154598ab> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x30e86000 - 0x30e89fff  IOSurface armv7  <ad50e71624583d06b891344d832f9b08> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x30e93000 - 0x30e97fff  libcache.dylib armv7  <d2f7fd2a352b3cd59c564be34b53cf80> /usr/lib/system/libcache.dylib
0x30edf000 - 0x30ffefff  Foundation armv7  <09ff368178c5321c9715b9c8d491d53f> /System/Library/Frameworks/Foundation.framework/Foundation
0x30fff000 - 0x31004fff  libnotify.dylib armv7  <9d7198e91de9386a9e5ea43608a66a57> /usr/lib/system/libnotify.dylib
0x3134a000 - 0x3134efff  AssetsLibraryServices armv7  <e1cbfe599c96369ca4bdb0dd99d3cd9f> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x314d1000 - 0x31510fff  libSystem.B.dylib armv7  <33dcf9a403ae3fd5971d6030ada2fcab> /usr/lib/libSystem.B.dylib
0x317c1000 - 0x31830fff  ProofReader armv7  <6d843c6aecdd37ae84baa40af8ad7e65> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x318f7000 - 0x318fbfff  libGFXShared.dylib armv7  <a0772a32cd8b3b9194bb0c29807c1c5b> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x318fc000 - 0x319e1fff  CoreFoundation armv7  <a8444f997111304c9571b3ff974b769c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x31a43000 - 0x31ad8fff  ImageIO armv7  <d520e3241d1130e8ac1375ee0f2c1095> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x31af6000 - 0x31b16fff  PrintKit armv7  <e5a01ca9083a36afacc08611a398e2ad> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x31b1a000 - 0x31b1cfff  libgcc_s.1.dylib armv7  <a2631ac302f4310dae8367939e16b7c2> /usr/lib/libgcc_s.1.dylib
0x31b1d000 - 0x31b46fff  MobileCoreServices armv7  <57fef84bdc17301d8bf53ba0fb967fe6> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x31b6c000 - 0x31c86fff  libicucore.A.dylib armv7  <bada0c2725bb31a483d5adf9aaf1f8df> /usr/lib/libicucore.A.dylib
0x3376d000 - 0x3386dfff  libGLProgrammability.dylib armv7  <c0e6b958279639c098136283c6ad06a8> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x33a76000 - 0x33ac7fff  libsqlite3.dylib armv7  <8a41cc6a6d9332308bc415d27577fd24> /usr/lib/libsqlite3.dylib
0x33ac8000 - 0x33addfff  libresolv.9.dylib armv7  <e92cfbb83f7b330db19181e797bb3f7b> /usr/lib/libresolv.9.dylib
0x33b50000 - 0x33b50fff  libCVMSPluginSupport.dylib armv7  <42d8aa2a31843a6e8bfff745644a7ba5> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x33b65000 - 0x33b65fff  Accelerate armv7  <7d5ad465049136afaa1f0d89aac600bc> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x33b7d000 - 0x33b8afff  libdispatch.dylib armv7  <9a0511ad5ebc3db898f1f49ed1a73d34> /usr/lib/system/libdispatch.dylib
0x33cfa000 - 0x33d2ffff  AddressBook armv7  <3f2071a77bc134cd82065eef90d4082f> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x33d3b000 - 0x33d40fff  MobileKeyBag armv7  <8c35c090bc373cb181fc26b961b8dba5> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x33db3000 - 0x33db4fff  libsystem_network.dylib armv7  <39bf0f48bd8539169a77f8f61cdcd4c9> /usr/lib/system/libsystem_network.dylib
0x33db5000 - 0x33dbafff  liblaunch.dylib armv7  <f5ccc8234aea3ebd9a88bd37f0fa23ae> /usr/lib/system/liblaunch.dylib
0x33dbb000 - 0x33dbdfff  MobileInstallation armv7  <94b6d6c5d9883175af26764567528127> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x33dc1000 - 0x33dc2fff  libsystem_blocks.dylib armv7  <ccc041df3de73eafb7a59e74cdb1702b> /usr/lib/system/libsystem_blocks.dylib
0x3408b000 - 0x340d5fff  libstdc++.6.dylib armv7  <b2cac408951c3f3c9ba3cf563e54ce81> /usr/lib/libstdc++.6.dylib
0x340e3000 - 0x340e3fff  libsystem_sandbox.dylib armv7  <f47c01d627853b328e088b3fdd08e87d> /usr/lib/system/libsystem_sandbox.dylib
0x34118000 - 0x34147fff  SystemConfiguration armv7  <1d73b8a159363f96bb9c039655c5eae6> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x3414b000 - 0x3424ffff  JavaScriptCore armv7  <61a94142e2d23dafa2964190dd46e9e3> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x34282000 - 0x342d7fff  libvDSP.dylib armv7  <0221caba81a235c5a896a835e2aac047> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x34344000 - 0x34363fff  Bom armv7  <b178e3efb4d733c694bd5a55e57a314f> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x343b5000 - 0x343e8fff  AppSupport armv7  <0217468bd9f839229a47910b7816b3d5> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x3454c000 - 0x346a0fff  AudioToolbox armv7  <6619c8c13f8d328e923e797fa8d0df23> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x3474f000 - 0x34754fff  libcopyfile.dylib armv7  <e57c2b9054b831d9a37119baaa4947cb> /usr/lib/system/libcopyfile.dylib
0x34755000 - 0x34826fff  IMGSGX543GLDriver armv7  <406a4fa178c036e78cdc9537d5332c2e> /System/Library/Extensions/IMGSGX543GLDriver.bundle/IMGSGX543GLDriver
0x3487f000 - 0x3492efff  QuartzCore armv7  <ef9632c9781f3101916b65e9faae1579> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x34968000 - 0x3496ffff  libbz2.1.0.dylib armv7  <0a082e1d475432959ba93aa3dbf7fb31> /usr/lib/libbz2.1.0.dylib
0x34970000 - 0x34a2ffff  CFNetwork armv7  <b09e0d53de9f3bc8bde494780f3cdd4f> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x34a43000 - 0x34a5afff  libsystem_kernel.dylib armv7  <a06ec84e53bf32098b63c0caebdb45b6> /usr/lib/system/libsystem_kernel.dylib
0x34a5b000 - 0x34a5cfff  libdyld.dylib armv7  <41a7b5e5d9983449ab33affed0f635ad> /usr/lib/system/libdyld.dylib
0x34a5d000 - 0x34a5ffff  IOMobileFramebuffer armv7  <683f321680763e519d61541170ba2133> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x34a60000 - 0x34a6dfff  libbsm.0.dylib armv7  <0a1e2bb78d5138419ecad8ba0fe42fdd> /usr/lib/libbsm.0.dylib
0x34ad2000 - 0x34b96fff  libobjc.A.dylib armv7  <6b51e76fde9f381bb7b3bc5badbfee3a> /usr/lib/libobjc.A.dylib
0x34be8000 - 0x34beefff  liblockdown.dylib armv7  <14c89b7346433c1f8675f454531f6ca3> /usr/lib/liblockdown.dylib
0x34db3000 - 0x34df5fff  CoreAudio armv7  <c972fd5f8e89333ca680b9a33587f896> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x34e46000 - 0x34f32fff  GLEngine armv7  <f216c91c5fdb38a9ae65dc6651ccbd02> /System/Library/Frameworks/OpenGLES.framework/GLEngine.bundle/GLEngine
0x34fa3000 - 0x35054fff  WebKit armv7  <eb9a0d69c64b3127b2bffd71641add3b> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x350c4000 - 0x35101fff  CoreText armv7  <fb6a72faec2330c4b2cd33c2e9c59588> /System/Library/Frameworks/CoreText.framework/CoreText
0x35102000 - 0x3570dfff  WebCore armv7  <07941e59d0a33f94802c16c76238fddf> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x35745000 - 0x3574efff  CoreVideo armv7  <ea847e6dba2d36b1826b255c73b39539> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x357e3000 - 0x35842fff  libBLAS.dylib armv7  <0b36b2272aa33a8c9aa22d99c89d7189> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x359b1000 - 0x359edfff  libGLImage.dylib armv7  <9d97699e44ee3651ba4ac37e5adec35b> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x359ee000 - 0x359fafff  GraphicsServices armv7  <ff78a9636e933f0dbd222f8d26209788> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x35a17000 - 0x35a34fff  libsystem_info.dylib armv7  <48016be86e3f3cd9aeee1c6590e1ac6f> /usr/lib/system/libsystem_info.dylib
0x35a5b000 - 0x35a5bfff  vecLib armv7  <0c60cd0a60f43d2791d36cb357d30e3c> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x35c29000 - 0x35d16fff  libiconv.2.dylib armv7  <f4146ce07e3031ea8a81fa5516fd77d0> /usr/lib/libiconv.2.dylib
0x35d1b000 - 0x35dc4fff  libxml2.2.dylib armv7  <5538d3f2c7d83b88b06168488fe6326b> /usr/lib/libxml2.2.dylib
0x35dc9000 - 0x35dd0fff  AggregateDictionary armv7  <ab9777b39e8e3026ad64dc90323cad7e> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x35eac000 - 0x35eaefff  libAccessibility.dylib armv7  <d55f1553d14831a2a5435ae27ef75ef4> /usr/lib/libAccessibility.dylib
0x360c9000 - 0x360cafff  CoreSurface armv7  <7b83cd757da73e6e826693c29296d3fa> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x360cc000 - 0x36104fff  IOKit armv7  <80ae313ad69d3363935c88e51a11862d> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x36150000 - 0x36187fff  Security armv7  <6599f42a910b3b31a0e1d98c883d61cb> /System/Library/Frameworks/Security.framework/Security
0x3637f000 - 0x363b7fff  libCGFreetype.A.dylib armv7  <ccea634795153164a681f0f311f4461d> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x364f7000 - 0x3653dfff  CoreTelephony armv7  <af7d1e770e5a3ffd8834a57fb5d40557> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x369dd000 - 0x369ddfff  libdnsinfo.dylib armv7  <21415179ffa03f949fa8cc851c6c31c7> /usr/lib/system/libdnsinfo.dylib
0x369ef000 - 0x36a70fff  libsystem_c.dylib armv7  <a7077267b6743ed3bbdd86d4380c75d9> /usr/lib/system/libsystem_c.dylib
0x36a71000 - 0x36a76fff  libsystem_dnssd.dylib armv7  <c7cfe523e2d73521abc01587313ef730> /usr/lib/system/libsystem_dnssd.dylib
0x36a82000 - 0x36a83fff  libremovefile.dylib armv7  <e8858a499d663e6a9e3c188521273cc1> /usr/lib/system/libremovefile.dylib
0x36b07000 - 0x36b13fff  SpringBoardServices armv7  <c68262667ac8397a949ce4e92dfec7db> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x36bf8000 - 0x36ee5fff  libLAPACK.dylib armv7  <b855d60dac01310495453bddfd004f0d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x36eee000 - 0x3727bfff  UIKit armv7  <c271b78464d93cb7bf28c6e49df293ba> /System/Library/Frameworks/UIKit.framework/UIKit
0x37385000 - 0x37388fff  libmacho.dylib armv7  <43311c113a9d3182b7d007129819f029> /usr/lib/system/libmacho.dylib
Log Output when Device fails to start:

Code: Select all

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 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 "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys003
target remote-mobile /tmp/.XcodeGDBRemote-14318-28
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 11779 thread 0x0]
[Switching to process 11779 thread 0x0]
sharedlibrary apply-load-rules all
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.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.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: jpg,jif,jpeg,jpe,png,tga,targa,tif,tiff
PVRTC codec registering
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 2.0 RenderSystem
OpenGL ES 2.x Rendering Subsystem created.
Plugin successfully installed
CPU Identifier & Features
-------------------------
 *   CPU ID: 
 *      VFP: no
 *     NEON: yes
-------------------------
GLES2RenderSystem::_createRenderWindow "DemoApp v1.0", 768x1024 fullscreen  miscParams: FSAA=0 contentScalingFactor=1 displayFrequency=0 Hz orientation=Landscape Right 
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/Extensions/IMGSGX543GLDriver.bundle/IMGSGX543GLDriver (file not found).
iOS: Window created 768 x 1024 with backing store size 768 x 1024 using content scaling factor 1.0
GL_VERSION = OpenGL ES 2.0 IMGSGX543-58.6
GL_VENDOR = Imagination Technologies
GL_RENDERER = PowerVR SGX 543
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_standard_derivatives 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_standard_derivatives
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 2.x Renderer Started ***
**************************************
GLSL ES support detected
Registering ResourceManager for type GpuProgram
GL ES 2: Using FBOs for rendering to textures
FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 Packed-D24S8 
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_B5G6R5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 Packed-D24S8 
[GLES2] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_X8R8G8B8 PF_X8B8G8R8 
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL ES 2.x Rendering Subsystem
GPU Vendor: imagination technologies
Device Name: PowerVR SGX 543
Driver Version: 0.0.0.0
 * Fixed function pipeline: no
 * Hardware generation of mipmaps: yes
 * Texture blending: yes
 * Anisotropic texture filtering: yes
 * Dot product texture operation: yes
 * Cube mapping: yes
 * Hardware stencil buffer: no
 * Hardware vertex / index buffers: yes
 * Vertex programs: yes
 * Number of floating-point constants for vertex programs: 128
 * Number of integer constants for vertex programs: 128
 * Number of boolean constants for vertex programs: 128
 * Fragment programs: yes
 * Number of floating-point constants for fragment programs: 64
 * Number of integer constants for fragment programs: 64
 * Number of boolean constants for fragment programs: 64
 * 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: glsles
 * Texture Compression: yes
   - DXT: no
   - VTC: no
   - PVRTC: yes
 * Scissor Rectangle: yes
 * Hardware Occlusion Query: no
 * User clip planes: no
 * 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: yes
 * Extended point parameters: yes
 * Max Point Size: 0
 * Vertex texture fetch: no
 * Number of world matrices: 0
 * Number of texture units: 8
 * 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: yes
 * Frame Buffer objects (ARB extension): no
 * Frame Buffer objects (ATI extension): no
 * PBuffer support: no
 * GL 1.5 without HW-occlusion workaround: no
Registering ResourceManager for type Texture
DefaultWorkQueue('Root') initialising on thread 0x1341760.
The funny thing is, that I do not call any ROS functions during startup. I just have one ros::init call hidden in an IBAction. ROS also has a boost dependency. I have applications running fine just with ROS or just with Ogre3D, but adding both libs results in this weird behavior. I wouldn't even know how they could technically influence each other.

ROS also has other dependencies that I have to add, but I think they are not relevant for the problem.
- apr
- apr-util
- expat
- log4cxx

All libs are in armv6/7/i386 and were compiled with Symbols and Inline Methods NOT hidden.

Any ideas?


Update:
The the startup failure is quite indeterministic. Sometimes it starts, sometimes it hangs in root::initialize or sometimes in ScriptCompilerManager(). Always some kind of infinite sleep().

Code: Select all

Incident Identifier: F2F8B95B-45EC-4A39-9495-4A5EF967BA9E
CrashReporter Key:   fa9655cd1ead99b3a3379c13b05c506334ed8a45
Hardware Model:      iPad2,2
Process:         RosOgrePlayground [1864]
Path:            /var/mobile/Applications/5ECCDB7A-9475-40E5-B40C-85F78EFA69B8/RosOgrePlayground.app/RosOgrePlayground
Identifier:      RosOgrePlayground
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-07-13 14:35:55.017 +0200
OS Version:      iPhone OS 4.3.3 (8J2)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
RosOgrePlayground failed to launch in time

Elapsed total CPU time (seconds): 16.180 (user 1.470, system 14.710), 40% CPU 
Elapsed application CPU time (seconds): 15.330, 38% CPU

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   libsystem_kernel.dylib        	0x3558fd18 __semwait_signal + 24
1   libsystem_c.dylib             	0x356354ac nanosleep + 132
2   RosOgrePlayground             	0x0035c824 boost::thread_specific_ptr<Ogre::ScriptCompiler>::reset(Ogre::ScriptCompiler*) + 736
3   RosOgrePlayground             	0x0034e7a8 Ogre::ScriptCompilerManager::ScriptCompilerManager() + 1556
4   RosOgrePlayground             	0x002c8b84 Ogre::Root::Root(std::string const&, std::string const&, std::string const&) + 3720
5   RosOgrePlayground             	0x00007108 OgreFramework::initOgre(std::string) (OgreFramework.cpp:48)
6   RosOgrePlayground             	0x000043a4 DemoApp::startDemo() (OgreDemoApp.cpp:113)
7   RosOgrePlayground             	0x00002c54 -[AppDelegate go] (AppDelegate.h:98)
8   RosOgrePlayground             	0x000030ee -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.h:166)
9   UIKit                         	0x30a1781a -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 766
10  UIKit                         	0x30a11b5e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 266
11  UIKit                         	0x309e67d0 -[UIApplication handleEvent:withNewEvent:] + 1108
12  UIKit                         	0x309e620e -[UIApplication sendEvent:] + 38
13  UIKit                         	0x309e5c4c _UIApplicationHandleEvent + 5084
14  GraphicsServices              	0x30269e70 PurpleEventCallback + 660
15  CoreFoundation                	0x30957a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
16  CoreFoundation                	0x30959838 __CFRunLoopDoSource1 + 160
17  CoreFoundation                	0x3095a606 __CFRunLoopRun + 514
18  CoreFoundation                	0x308eaebc CFRunLoopRunSpecific + 224
19  CoreFoundation                	0x308eadc4 CFRunLoopRunInMode + 52
20  UIKit                         	0x30a10d42 -[UIApplication _run] + 366
21  UIKit                         	0x30a0e800 UIApplicationMain + 664
22  RosOgrePlayground             	0x0000394a main (main.mm:16)
23  RosOgrePlayground             	0x00002b44 start + 32
rado0x54
Gnoblar
Posts: 14
Joined: Fri Jul 08, 2011 5:38 pm
x 1

Re: Ogre::Root::initialise fails with other static library

Post by rado0x54 »

Ok, I'm pretty sure it is a faulty race condition in these boost calls. But I have no idea why this would be triggered by adding another library with boost dependency. I'm using 1.46.1.
rado0x54
Gnoblar
Posts: 14
Joined: Fri Jul 08, 2011 5:38 pm
x 1

Re: Ogre::Root::initialise fails with other static library

Post by rado0x54 »

Ok, I confirmed that the error only takes place on the iPad2. My iPad1 works fine.

Ticket is already filed: https://svn.boost.org/trac/boost/ticket/5372.

Perhaps I have to go with a pThread backend till it is fixed.
rado0x54
Gnoblar
Posts: 14
Joined: Fri Jul 08, 2011 5:38 pm
x 1

Re: Ogre::Root::initialise fails with other static library

Post by rado0x54 »

Hey I recompiled boost & ogre with -DBOOST_AC_USE_PTHREADS -DBOOST_SP_USE_PTHREADS flags. Everything seems to work now. Hopefully it's not too big of a performance loss.

In correction to my previous post: The iPad1 had the same errors! Just less frequent.