[Android] Issues with SampleBrowser

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

[Android] Issues with SampleBrowser

Post by brainsandwich »

Hello,

We are currently working on porting OpenSpace3D (http://www.openspace3d.com/) to Android, and got quite a bad time trying to build the Ogre samples on that platform.
After some tweaks on CMakeFiles.txt and cmake configuration, we managed to build and install the OgreJNI and SampleBrowserNDK on emulator but the applications always crashes on startup.
OpenGLES, mainly, seems to be involved in the issue.
Here's a log taken from Android Studio when debugging the application :

Code: Select all

03-13 09:33:47.963        89-89/system_process I/ActivityManager﹕ Start proc org.ogre.jni for activity org.ogre.jni/org.ogre3d.android.MainActivity: pid=762 uid=10044 gids={1015, 3003}
03-13 09:33:48.203       89-127/system_process W/NetworkManagementSocketTagger﹕ setKernelCountSet(10044, 1) failed with errno -2
03-13 09:33:48.313       89-241/system_process D/dalvikvm﹕ GC_EXPLICIT freed 453K, 19% free 15205K/18567K, paused 4ms+7ms
03-13 09:33:48.452      762-762/org.ogre.jni W/ActivityThread﹕ Application org.ogre.jni is waiting for the debugger on port 8100...
03-13 09:33:48.523      762-762/org.ogre.jni I/System.out﹕ Sending WAIT chunk
03-13 09:33:48.523      762-769/org.ogre.jni I/dalvikvm﹕ Debugger is active
03-13 09:33:48.568      762-762/org.ogre.jni I/System.out﹕ Debugger has connected
03-13 09:33:48.568      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:48.783      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:48.853       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:48.853      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:48.983      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:49.012      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:49.183      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:49.353       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:49.353      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:49.363      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:49.383      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:49.583      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:49.782      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:49.853       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:49.853      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:49.863      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:49.992      762-762/org.ogre.jni I/System.out﹕ waiting for debugger to settle...
03-13 09:33:50.192      762-762/org.ogre.jni I/System.out﹕ debugger has settled (1355)
03-13 09:33:50.362       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:50.362      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:50.402      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:50.862       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:50.862      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:50.882      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:51.362       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:51.362      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:51.382      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:51.822      762-762/org.ogre.jni D/dalvikvm﹕ Trying to load lib /data/data/org.ogre.jni/lib/libOgreJNI.so 0x416135c0
03-13 09:33:51.862       89-103/system_process I/Process﹕ Sending signal. PID: 762 SIG: 3
03-13 09:33:51.862      762-768/org.ogre.jni I/dalvikvm﹕ threadid=3: reacting to signal 3
03-13 09:33:51.872      762-768/org.ogre.jni I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
03-13 09:33:51.902      762-762/org.ogre.jni D/dalvikvm﹕ Added shared lib /data/data/org.ogre.jni/lib/libOgreJNI.so 0x416135c0
03-13 09:33:52.142      762-762/org.ogre.jni D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
03-13 09:33:52.192       89-117/system_process I/ActivityManager﹕ Displayed org.ogre.jni/org.ogre3d.android.MainActivity: +4s328ms
03-13 09:33:52.292      762-762/org.ogre.jni I/OGRE﹕ Creating resource group General
03-13 09:33:52.342      762-762/org.ogre.jni I/OGRE﹕ Creating resource group Internal
03-13 09:33:52.342      762-762/org.ogre.jni I/OGRE﹕ Creating resource group Autodetect
03-13 09:33:52.382      762-762/org.ogre.jni I/OGRE﹕ SceneManagerFactory for type 'DefaultSceneManager' registered.
03-13 09:33:52.442      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Material
03-13 09:33:52.462      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Mesh
03-13 09:33:52.462      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Skeleton
03-13 09:33:52.462      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'ParticleSystem' registered.
03-13 09:33:52.472      762-762/org.ogre.jni I/OGRE﹕ ArchiveFactory for archive type FileSystem registered.
03-13 09:33:52.482      762-762/org.ogre.jni I/OGRE﹕ ArchiveFactory for archive type Zip registered.
03-13 09:33:52.482      762-762/org.ogre.jni I/OGRE﹕ ArchiveFactory for archive type EmbeddedZip registered.
03-13 09:33:52.482      762-762/org.ogre.jni I/OGRE﹕ DDS codec registering
03-13 09:33:52.492      762-762/org.ogre.jni I/OGRE﹕ FreeImage version: 3.15.3
03-13 09:33:52.492      762-762/org.ogre.jni I/OGRE﹕ This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
03-13 09:33:52.502      762-762/org.ogre.jni I/OGRE﹕ 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
03-13 09:33:52.502      762-762/org.ogre.jni I/OGRE﹕ PVRTC codec registering
03-13 09:33:52.502      762-762/org.ogre.jni I/OGRE﹕ ETC codec registering
03-13 09:33:52.502      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type HighLevelGpuProgram
03-13 09:33:52.512      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Compositor
03-13 09:33:52.522      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'Entity' registered.
03-13 09:33:52.522      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'Light' registered.
03-13 09:33:52.532      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'BillboardSet' registered.
03-13 09:33:52.532      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'ManualObject' registered.
03-13 09:33:52.532      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'BillboardChain' registered.
03-13 09:33:52.532      762-762/org.ogre.jni I/OGRE﹕ MovableObjectFactory for type 'RibbonTrail' registered.
03-13 09:33:52.542      762-762/org.ogre.jni E/OGRE﹕ OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\..\OgreMain\src\OgreConfigFile.cpp (line 88)
03-13 09:33:52.542      762-762/org.ogre.jni I/OGRE﹕ plugins.cfg not found, automatic plugin loading disabled.
03-13 09:33:52.542      762-762/org.ogre.jni I/OGRE﹕ *-*-* OGRE Initialising
03-13 09:33:52.552      762-762/org.ogre.jni I/OGRE﹕ *-*-* Version 1.10.0unstable (Xalafu)
03-13 09:33:52.552      762-762/org.ogre.jni I/OGRE﹕ Installing plugin: OpenGL ES 2.0 RenderSystem
03-13 09:33:52.552      762-762/org.ogre.jni I/OGRE﹕ OpenGL ES 2.x Rendering Subsystem created.
03-13 09:33:52.562      762-762/org.ogre.jni D/libEGL﹕ Emulator without GPU support detected. Fallback to software renderer.
03-13 09:33:52.562      762-762/org.ogre.jni D/libEGL﹕ loaded /system/lib/egl/libGLES_android.so
03-13 09:33:52.572      762-762/org.ogre.jni I/OGRE﹕ Plugin successfully installed
03-13 09:33:52.572      762-762/org.ogre.jni I/OGRE﹕ Installing plugin: Octree Scene Manager
03-13 09:33:52.582      762-762/org.ogre.jni I/OGRE﹕ Plugin successfully installed
03-13 09:33:52.582      762-762/org.ogre.jni I/OGRE﹕ Installing plugin: ParticleFX
03-13 09:33:52.582      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'Point' registered
03-13 09:33:52.582      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'Box' registered
03-13 09:33:52.593      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'Ellipsoid' registered
03-13 09:33:52.593      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'Cylinder' registered
03-13 09:33:52.593      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'Ring' registered
03-13 09:33:52.593      762-762/org.ogre.jni I/OGRE﹕ Particle Emitter Type 'HollowEllipsoid' registered
03-13 09:33:52.593      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'LinearForce' registered
03-13 09:33:52.602      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'ColourFader' registered
03-13 09:33:52.602      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'ColourFader2' registered
03-13 09:33:52.602      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'ColourImage' registered
03-13 09:33:52.602      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'ColourInterpolator' registered
03-13 09:33:52.602      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'Scaler' registered
03-13 09:33:52.612      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'Rotator' registered
03-13 09:33:52.612      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'DirectionRandomiser' registered
03-13 09:33:52.612      762-762/org.ogre.jni I/OGRE﹕ Particle Affector Type 'DeflectorPlane' registered
03-13 09:33:52.612      762-762/org.ogre.jni I/OGRE﹕ Plugin successfully installed
03-13 09:33:52.622      762-762/org.ogre.jni I/OGRE﹕ OverlayElementFactory for type Panel registered.
03-13 09:33:52.622      762-762/org.ogre.jni I/OGRE﹕ OverlayElementFactory for type BorderPanel registered.
03-13 09:33:52.622      762-762/org.ogre.jni I/OGRE﹕ OverlayElementFactory for type TextArea registered.
03-13 09:33:52.622      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Font
03-13 09:33:52.632      762-762/org.ogre.jni I/OGRE﹕ CPU Identifier & Features
03-13 09:33:52.632      762-762/org.ogre.jni I/OGRE﹕ -------------------------
03-13 09:33:52.632      762-762/org.ogre.jni I/OGRE﹕ *   CPU ID: ARMv7
03-13 09:33:52.646      762-762/org.ogre.jni I/OGRE﹕ *      VFP: yes
03-13 09:33:52.646      762-762/org.ogre.jni I/OGRE﹕ *     NEON: yes
03-13 09:33:52.646      762-762/org.ogre.jni I/OGRE﹕ -------------------------
03-13 09:33:52.652      762-762/org.ogre.jni I/OGRE﹕ Registering ResourceManager for type Texture
03-13 09:33:52.662      762-762/org.ogre.jni I/OGRE﹕ ArchiveFactory for archive type APKFileSystem registered.
03-13 09:33:52.662      762-762/org.ogre.jni I/OGRE﹕ ArchiveFactory for archive type APKZip registered.
03-13 09:33:52.692      762-762/org.ogre.jni I/OGRE﹕ GLES2RenderSystem::_createRenderWindow "OgreWindow", 0x0 windowed  miscParams: externalWindowHandle=1985576
03-13 09:33:52.762      762-762/org.ogre.jni I/OGRE﹕ GL_VERSION = OpenGL ES-CM 1.0
03-13 09:33:52.762      762-762/org.ogre.jni I/OGRE﹕ GL_VENDOR = Android
03-13 09:33:52.772      762-762/org.ogre.jni I/OGRE﹕ GL_RENDERER = Android PixelFlinger 1.4
03-13 09:33:52.772      762-762/org.ogre.jni I/OGRE﹕ GL_EXTENSIONS = GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
03-13 09:33:52.772      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_byte_coordinates
03-13 09:33:52.772      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_fixed_point
03-13 09:33:52.772      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_single_precision
03-13 09:33:52.782      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_read_format
03-13 09:33:52.782      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_compressed_paletted_texture
03-13 09:33:52.782      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_draw_texture
03-13 09:33:52.782      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_matrix_get
03-13 09:33:52.792      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_query_matrix
03-13 09:33:52.792      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_EGL_image
03-13 09:33:52.792      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_OES_compressed_ETC1_RGB8_texture
03-13 09:33:52.792      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_ARB_texture_compression
03-13 09:33:52.792      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_ARB_texture_non_power_of_two
03-13 09:33:52.803      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_ANDROID_user_clip_plane
03-13 09:33:52.803      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_ANDROID_vertex_buffer_object
03-13 09:33:52.803      762-762/org.ogre.jni I/OGRE﹕ EXT:GL_ANDROID_generate_mipmap
03-13 09:33:52.812      762-762/org.ogre.jni I/OGRE﹕ **************************************
03-13 09:33:52.812      762-762/org.ogre.jni I/OGRE﹕ *** OpenGL ES 2.x Renderer Started ***
03-13 09:33:52.812      762-762/org.ogre.jni I/OGRE﹕ **************************************
03-13 09:33:52.866      762-762/org.ogre.jni A/libc﹕ Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
03-13 09:33:53.372        34-34/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-13 09:33:53.372        34-34/? I/DEBUG﹕ Build fingerprint: 'generic/google_sdk/generic:4.0.4/MR1/302030:eng/test-keys'
03-13 09:33:53.372        34-34/? I/DEBUG﹕ pid: 762, tid: 762  >>> org.ogre.jni <<<
03-13 09:33:53.382        34-34/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
03-13 09:33:53.382        34-34/? I/DEBUG﹕ r0 deadbaad  r1 00000001  r2 40000000  r3 00000000
03-13 09:33:53.382        34-34/? I/DEBUG﹕ r4 00000000  r5 00000027  r6 0017d184  r7 bea853b0
03-13 09:33:53.382        34-34/? I/DEBUG﹕ r8 0017d1b8  r9 4b3e811c  10 4b2b9c68  fp 4b3ebcf8
03-13 09:33:53.392        34-34/? I/DEBUG﹕ ip ffffffff  sp bea85388  lr 4001f161  pc 4001b8c0  cpsr 60000030
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d0  43c0000044140000  d1  000000003f800000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d2  fffffb60c4940000  d3  0000000000000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d4  441400003f800000  d5  c414000043c00000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d6  005d9a8000000000  d7  415766a020000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d8  0000000000000000  d9  0000000000000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d10 0000000000000000  d11 0000000000000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d12 0000000000000000  d13 0000000000000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ d14 0000000000000000  d15 0000000000000000
03-13 09:33:53.392        34-34/? I/DEBUG﹕ scr 60000012
03-13 09:33:53.662        34-34/? I/DEBUG﹕ #00  pc 000178c0  /system/lib/libc.so
03-13 09:33:53.662        34-34/? I/DEBUG﹕ #01  lr 4001f161  /system/lib/libc.so
03-13 09:33:53.662        34-34/? I/DEBUG﹕ code around pc:
03-13 09:33:53.672        34-34/? I/DEBUG﹕ 4001b8a0 4623b15c 2c006824 e026d1fb b12368db  \.#F$h.,..&..h#.
03-13 09:33:53.672        34-34/? I/DEBUG﹕ 4001b8b0 21014a17 6011447a 48124798 24002527  .J.!zD.`.G.H'%.$
03-13 09:33:53.672        34-34/? I/DEBUG﹕ 4001b8c0 f7f47005 2106ee50 eeecf7f5 460aa901  .p..P..!.......F
03-13 09:33:53.672        34-34/? I/DEBUG﹕ 4001b8d0 f04f2006 94015380 94029303 eaa8f7f5  . O..S..........
03-13 09:33:53.682        34-34/? I/DEBUG﹕ 4001b8e0 4622a905 f7f52002 f7f4eab2 2106ee3c  .."F. ......<..!
03-13 09:33:53.682        34-34/? I/DEBUG﹕ code around lr:
03-13 09:33:53.682        34-34/? I/DEBUG﹕ 4001f140 41f0e92d 46804c0c 447c2600 68a56824  -..A.L.F.&|D$h.h
03-13 09:33:53.682        34-34/? I/DEBUG﹕ 4001f150 e0076867 300cf9b5 dd022b00 47c04628  gh.....0.+..(F.G
03-13 09:33:53.682        34-34/? I/DEBUG﹕ 4001f160 35544306 37fff117 6824d5f4 d1ee2c00  .CT5...7..$h.,..
03-13 09:33:53.692        34-34/? I/DEBUG﹕ 4001f170 e8bd4630 bf0081f0 0002839a 41f0e92d  0F..........-..A
03-13 09:33:53.692        34-34/? I/DEBUG﹕ 4001f180 fb01b086 9004f602 461f4815 4615460c  .........H.F.F.F
03-13 09:33:53.692        34-34/? I/DEBUG﹕ memory map around addr deadbaad:
03-13 09:33:53.692        34-34/? I/DEBUG﹕ bea71000-bea86000 [stack]
03-13 09:33:53.692        34-34/? I/DEBUG﹕ (no map for address)
03-13 09:33:53.702        34-34/? I/DEBUG﹕ (no map above)
03-13 09:33:53.702        34-34/? I/DEBUG﹕ stack:
03-13 09:33:53.702        34-34/? I/DEBUG﹕ bea85348  00130f90  [heap]
03-13 09:33:53.702        34-34/? I/DEBUG﹕ bea8534c  4004c35c
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea85350  400476b0  /system/lib/libc.so
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea85354  bea853b0  [stack]
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea85358  4004770c  /system/lib/libc.so
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea8535c  4004c85c
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea85360  00000000
03-13 09:33:53.712        34-34/? I/DEBUG﹕ bea85364  4001f161  /system/lib/libc.so
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85368  00000000
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea8536c  bea8539c  [stack]
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85370  0017d184  [heap]
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85374  bea853b0  [stack]
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85378  0017d1b8  [heap]
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea8537c  4001e2cd  /system/lib/libc.so
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85380  df0027ad
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85384  00000000
03-13 09:33:53.722        34-34/? I/DEBUG﹕ #00 bea85388  400476b0  /system/lib/libc.so
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea8538c  0000000a
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85390  0017d184  [heap]
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85394  4001f6f1  /system/lib/libc.so
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea85398  40047608  /system/lib/libc.so
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea8539c  fffffbdf
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea853a0  00000001
03-13 09:33:53.722        34-34/? I/DEBUG﹕ bea853a4  40047608  /system/lib/libc.so
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853a8  00000001
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853ac  4b261aef  /data/data/org.ogre.jni/lib/libOgreJNI.so
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853b0  0017d168  [heap]
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853b4  00000000
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853b8  0017d168  [heap]
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853bc  0017d110  [heap]
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853c0  00000001
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853c4  bea853d0  [stack]
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853c8  4b2499d9  /data/data/org.ogre.jni/lib/libOgreJNI.so
03-13 09:33:53.732        34-34/? I/DEBUG﹕ bea853cc  4b22a43b  /data/data/org.ogre.jni/lib/libOgreJNI.so
03-13 09:33:54.242      762-766/org.ogre.jni D/dalvikvm﹕ GC_CONCURRENT freed 158K, 2% free 12843K/13063K, paused 5ms+4ms
03-13 09:33:56.892       89-109/system_process I/BootReceiver﹕ Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
03-13 09:33:56.933        37-37/? D/Zygote﹕ Process 762 terminated by signal (11)
03-13 09:33:56.933       89-240/system_process I/ActivityManager﹕ Process org.ogre.jni (pid 762) has died.
03-13 09:33:56.933       89-240/system_process W/ActivityManager﹕ Force removing ActivityRecord{4164a230 org.ogre.jni/org.ogre3d.android.MainActivity}: app died, no saved state
03-13 09:33:56.942       89-127/system_process W/NetworkManagementSocketTagger﹕ setKernelCountSet(10044, 0) failed with errno -2
03-13 09:33:56.952       89-314/system_process I/WindowManager﹕ WIN DEATH: Window{4187c060 org.ogre.jni/org.ogre3d.android.MainActivity paused=false}
03-13 09:33:56.952       89-314/system_process W/WindowManager﹕ Force-removing child win Window{41884528 SurfaceView paused=false} from container Window{4187c060 org.ogre.jni/org.ogre3d.android.MainActivity paused=false}
03-13 09:33:56.982       89-241/system_process W/WindowManager﹕ Failed looking up window
    java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@417592e0 does not exist
            at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7163)
            at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7154)
            at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1545)
            at android.os.BinderProxy.sendDeathNotice(Binder.java:417)
            at dalvik.system.NativeStart.run(Native Method)
03-13 09:33:56.982       89-241/system_process I/WindowManager﹕ WIN DEATH: null
The project is built with :
- OGRE 1.10.0unstable
- NDK 10d
- ANT 1.9.4
For Android 4.0.3 (API 15)

If someone has an idea on where does this issue comes from ... :)
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: [Android] Issues with SampleBrowser

Post by c6burns »

Code: Select all

GL_VERSION = OpenGL ES-CM 1.0
GL_VENDOR = Android
GL_RENDERER = Android PixelFlinger 1.4
so you are targetting some GLES1 only version of android in the emulator? Which goes fine until you initialize the render system:

Code: Select all

*** OpenGL ES 2.x Renderer Started ***
I bet this doesn't happen on real hardware, because it's likely that all your target hardware is GLES2 capable. Options from here though, you could use the GLES1 render system if you are targetting hardware without GLES2, or you could switch the image in the emulator to one that supports GLES2
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

Oh I didn't see that !
I'll try next monday that on a newer version of the API or my phone.
I hope that will be okay then :/
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

I tried with the API 22, and I got an error at the same place.
Not exactly the same error though (it's an "abort" here, where it was a "seg fault" before).

GLES is 2.0 and emulated now, so it's the problem may not come from the emulator.

Code: Select all

GL_VERSION = OpenGL ES 2.0 (4.5.0 NVIDIA 347.52)
GL_VENDOR = Google (NVIDIA Corporation)
GL_RENDERER = Android Emulator OpenGL ES Translator (GeForce GTX 560 Ti/PCIe/SSE2)
Here's the log again :

Code: Select all

03-16 08:54:35.073: I/ActivityManager(347): Displayed org.ogre.jni/org.ogre3d.android.MainActivity: +1s800ms
03-16 08:54:35.130: I/OGRE(1543): Creating resource group General
03-16 08:54:35.134: I/OGRE(1543): Creating resource group Internal
03-16 08:54:35.135: I/OGRE(1543): Creating resource group Autodetect
03-16 08:54:35.137: I/OGRE(1543): SceneManagerFactory for type 'DefaultSceneManager' registered.
03-16 08:54:35.183: I/OGRE(1543): Registering ResourceManager for type Material
03-16 08:54:35.185: I/OGRE(1543): Registering ResourceManager for type Mesh
03-16 08:54:35.188: I/OGRE(1543): Registering ResourceManager for type Skeleton
03-16 08:54:35.189: I/OGRE(1543): MovableObjectFactory for type 'ParticleSystem' registered.
03-16 08:54:35.190: I/OGRE(1543): ArchiveFactory for archive type FileSystem registered.
03-16 08:54:35.191: I/OGRE(1543): ArchiveFactory for archive type Zip registered.
03-16 08:54:35.202: I/OGRE(1543): ArchiveFactory for archive type EmbeddedZip registered.
03-16 08:54:35.206: I/OGRE(1543): DDS codec registering
03-16 08:54:35.216: I/OGRE(1543): FreeImage version: 3.15.3
03-16 08:54:35.216: I/OGRE(1543): This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
03-16 08:54:35.221: I/OGRE(1543): 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
03-16 08:54:35.222: I/OGRE(1543): PVRTC codec registering
03-16 08:54:35.223: I/OGRE(1543): ETC codec registering
03-16 08:54:35.223: I/OGRE(1543): Registering ResourceManager for type HighLevelGpuProgram
03-16 08:54:35.286: I/OGRE(1543): Registering ResourceManager for type Compositor
03-16 08:54:35.372: I/OGRE(1543): MovableObjectFactory for type 'Entity' registered.
03-16 08:54:35.373: I/OGRE(1543): MovableObjectFactory for type 'Light' registered.
03-16 08:54:35.373: I/OGRE(1543): MovableObjectFactory for type 'BillboardSet' registered.
03-16 08:54:35.378: I/OGRE(1543): MovableObjectFactory for type 'ManualObject' registered.
03-16 08:54:35.379: I/OGRE(1543): MovableObjectFactory for type 'BillboardChain' registered.
03-16 08:54:35.379: I/OGRE(1543): MovableObjectFactory for type 'RibbonTrail' registered.
03-16 08:54:35.384: E/OGRE(1543): OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\..\OgreMain\src\OgreConfigFile.cpp (line 88)
03-16 08:54:35.388: I/OGRE(1543): plugins.cfg not found, automatic plugin loading disabled.
03-16 08:54:35.388: I/OGRE(1543): *-*-* OGRE Initialising
03-16 08:54:35.389: I/OGRE(1543): *-*-* Version 1.10.0unstable (Xalafu)
03-16 08:54:35.389: I/OGRE(1543): Installing plugin: OpenGL ES 2.0 RenderSystem
03-16 08:54:35.390: I/OGRE(1543): OpenGL ES 2.x Rendering Subsystem created.
03-16 08:54:35.402: I/OGRE(1543): Plugin successfully installed
03-16 08:54:35.403: I/OGRE(1543): Installing plugin: Octree Scene Manager
03-16 08:54:35.403: I/OGRE(1543): Plugin successfully installed
03-16 08:54:35.403: I/OGRE(1543): Installing plugin: ParticleFX
03-16 08:54:35.404: I/OGRE(1543): Particle Emitter Type 'Point' registered
03-16 08:54:35.410: I/OGRE(1543): Particle Emitter Type 'Box' registered
03-16 08:54:35.413: I/OGRE(1543): Particle Emitter Type 'Ellipsoid' registered
03-16 08:54:35.414: I/OGRE(1543): Particle Emitter Type 'Cylinder' registered
03-16 08:54:35.414: I/OGRE(1543): Particle Emitter Type 'Ring' registered
03-16 08:54:35.418: I/OGRE(1543): Particle Emitter Type 'HollowEllipsoid' registered
03-16 08:54:35.419: I/OGRE(1543): Particle Affector Type 'LinearForce' registered
03-16 08:54:35.422: I/OGRE(1543): Particle Affector Type 'ColourFader' registered
03-16 08:54:35.423: I/OGRE(1543): Particle Affector Type 'ColourFader2' registered
03-16 08:54:35.428: I/OGRE(1543): Particle Affector Type 'ColourImage' registered
03-16 08:54:35.430: I/OGRE(1543): Particle Affector Type 'ColourInterpolator' registered
03-16 08:54:35.435: I/OGRE(1543): Particle Affector Type 'Scaler' registered
03-16 08:54:35.435: I/OGRE(1543): Particle Affector Type 'Rotator' registered
03-16 08:54:35.438: I/OGRE(1543): Particle Affector Type 'DirectionRandomiser' registered
03-16 08:54:35.438: I/OGRE(1543): Particle Affector Type 'DeflectorPlane' registered
03-16 08:54:35.438: I/OGRE(1543): Plugin successfully installed
03-16 08:54:35.445: I/OGRE(1543): OverlayElementFactory for type Panel registered.
03-16 08:54:35.445: I/OGRE(1543): OverlayElementFactory for type BorderPanel registered.
03-16 08:54:35.446: I/OGRE(1543): OverlayElementFactory for type TextArea registered.
03-16 08:54:35.446: I/OGRE(1543): Registering ResourceManager for type Font
03-16 08:54:35.450: I/OGRE(1543): CPU Identifier & Features
03-16 08:54:35.450: I/OGRE(1543): -------------------------
03-16 08:54:35.454: I/OGRE(1543):  *   CPU ID: ARMv7
03-16 08:54:35.457: I/OGRE(1543):  *      VFP: yes
03-16 08:54:35.457: I/OGRE(1543):  *     NEON: yes
03-16 08:54:35.461: I/OGRE(1543): -------------------------
03-16 08:54:35.462: I/OGRE(1543): Registering ResourceManager for type Texture
03-16 08:54:35.471: I/OGRE(1543): ArchiveFactory for archive type APKFileSystem registered.
03-16 08:54:35.471: I/OGRE(1543): ArchiveFactory for archive type APKZip registered.
03-16 08:54:35.519: I/OGRE(1543): GLES2RenderSystem::_createRenderWindow "OgreWindow", 0x0 windowed  miscParams: externalWindowHandle=3029858312 
03-16 08:54:35.593: I/OGRE(1543): GL_VERSION = OpenGL ES 2.0 (4.5.0 NVIDIA 347.52)
03-16 08:54:35.594: I/OGRE(1543): GL_VENDOR = Google (NVIDIA Corporation)
03-16 08:54:35.598: I/OGRE(1543): GL_RENDERER = Android Emulator OpenGL ES Translator (GeForce GTX 560 Ti/PCIe/SSE2)
03-16 08:54:35.603: I/OGRE(1543): GL_EXTENSIONS = GL_EXT_debug_marker GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_texture_npot GL_OES_rgb8_rgba8
03-16 08:54:35.604: I/OGRE(1543): EXT:GL_EXT_debug_marker
03-16 08:54:35.607: I/OGRE(1543): EXT:GL_OES_EGL_image
03-16 08:54:35.608: I/OGRE(1543): EXT:GL_OES_EGL_image_external
03-16 08:54:35.608: I/OGRE(1543): EXT:GL_OES_depth24
03-16 08:54:35.618: I/OGRE(1543): EXT:GL_OES_depth32
03-16 08:54:35.618: I/OGRE(1543): EXT:GL_OES_element_index_uint
03-16 08:54:35.623: I/OGRE(1543): EXT:GL_OES_texture_float
03-16 08:54:35.624: I/OGRE(1543): EXT:GL_OES_texture_float_linear
03-16 08:54:35.624: I/OGRE(1543): EXT:GL_OES_compressed_paletted_texture
03-16 08:54:35.624: I/OGRE(1543): EXT:GL_OES_compressed_ETC1_RGB8_texture
03-16 08:54:35.629: I/OGRE(1543): EXT:GL_OES_depth_texture
03-16 08:54:35.630: I/OGRE(1543): EXT:GL_OES_texture_half_float
03-16 08:54:35.630: I/OGRE(1543): EXT:GL_OES_texture_half_float_linear
03-16 08:54:35.635: I/OGRE(1543): EXT:GL_OES_packed_depth_stencil
03-16 08:54:35.639: I/OGRE(1543): EXT:GL_OES_vertex_half_float
03-16 08:54:35.639: I/OGRE(1543): EXT:GL_OES_texture_npot
03-16 08:54:35.640: I/OGRE(1543): EXT:GL_OES_rgb8_rgba8
03-16 08:54:35.640: I/OGRE(1543): **************************************
03-16 08:54:35.644: I/OGRE(1543): *** OpenGL ES 2.x Renderer Started ***
03-16 08:54:35.644: I/OGRE(1543): **************************************
03-16 08:54:35.652: A/libc(1543): Fatal signal 6 (SIGABRT), code -6 in tid 1543 (org.ogre.jni)
03-16 08:54:35.761: I/DEBUG(63): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-16 08:54:35.761: I/DEBUG(63): Build fingerprint: 'generic/sdk_phone_armv7/generic:5.1/LKY45/1737576:eng/test-keys'
03-16 08:54:35.761: I/DEBUG(63): Revision: '0'
03-16 08:54:35.761: I/DEBUG(63): ABI: 'arm'
03-16 08:54:35.762: I/DEBUG(63): pid: 1543, tid: 1543, name: org.ogre.jni  >>> org.ogre.jni <<<
03-16 08:54:35.762: I/DEBUG(63): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-16 08:54:35.822: I/DEBUG(63):     r0 00000000  r1 00000607  r2 00000006  r3 00000000
03-16 08:54:35.824: I/DEBUG(63):     r4 b6fb0e38  r5 00000006  r6 0000000b  r7 0000010c
03-16 08:54:35.825: I/DEBUG(63):     r8 b4b56500  r9 a71a911c  sl a707ac68  fp a71accf8
03-16 08:54:35.825: I/DEBUG(63):     ip 00000607  sp becb2fe0  lr b6e2e745  pc b6e52d48  cpsr 60000010
03-16 08:54:35.827: I/DEBUG(63): backtrace:
03-16 08:54:35.827: I/DEBUG(63):     #00 pc 0003ad48  /system/lib/libc.so (tgkill+12)
03-16 08:54:35.828: I/DEBUG(63):     #01 pc 00016741  /system/lib/libc.so (pthread_kill+52)
03-16 08:54:35.828: I/DEBUG(63):     #02 pc 0001735f  /system/lib/libc.so (raise+10)
03-16 08:54:35.828: I/DEBUG(63):     #03 pc 00013b39  /system/lib/libc.so (__libc_android_abort+36)
03-16 08:54:35.829: I/DEBUG(63):     #04 pc 00012f18  /system/lib/libc.so (abort+4)
03-16 08:54:35.829: I/DEBUG(63):     #05 pc 00648aeb  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (__gnu_cxx::__verbose_terminate_handler()+226)
03-16 08:54:35.829: I/DEBUG(63):     #06 pc 00611439  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (__cxxabiv1::__terminate(void (*)())+4)
03-16 08:54:35.830: I/DEBUG(63):     #07 pc 006114ad  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (std::terminate()+8)
03-16 08:54:35.830: I/DEBUG(63):     #08 pc 006115d1  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (__cxa_throw+120)
03-16 08:54:35.830: I/DEBUG(63):     #09 pc 006439e9  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so
03-16 08:54:35.831: I/DEBUG(63):     #10 pc 00645f73  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so
03-16 08:54:35.831: I/DEBUG(63):     #11 pc 0064627b  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so
03-16 08:54:35.831: I/DEBUG(63):     #12 pc 00298d70  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (Ogre::GLES2RenderSystem::_createRenderWindow(std::string const&, unsigned int, unsigned int, bool, std::map<std::string, std::string, std::less<std::string>, Ogre::STLAllocator<std::pair<std::string const, std::string>, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)+1056)
03-16 08:54:35.832: I/DEBUG(63):     #13 pc 003b8750  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (Ogre::Root::createRenderWindow(std::string const&, unsigned int, unsigned int, bool, std::map<std::string, std::string, std::less<std::string>, Ogre::STLAllocator<std::pair<std::string const, std::string>, Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*)+68)
03-16 08:54:35.832: I/DEBUG(63):     #14 pc 0025f7eb  /data/app/org.ogre.jni-1/lib/arm/libOgreJNI.so (Java_org_ogre3d_android_OgreActivityJNI_initWindow+170)
03-16 08:54:35.832: I/DEBUG(63):     #15 pc 00000c99  /data/dalvik-cache/arm/data@app@org.ogre.jni-1@base.apk@classes.dex
03-16 08:54:36.600: D/TaskPersister(347): removeObsoleteFile: deleting file=7_task.xml
03-16 08:54:36.770: W/ActivityManager(347):   Force finishing activity 1 org.ogre.jni/org.ogre3d.android.MainActivity
03-16 08:54:36.804: I/DEBUG(63): Tombstone written to: /data/tombstones/tombstone_02
03-16 08:54:36.852: W/InputDispatcher(347): channel '2507218c org.ogre.jni/org.ogre3d.android.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
03-16 08:54:36.852: E/InputDispatcher(347): channel '2507218c org.ogre.jni/org.ogre3d.android.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
03-16 08:54:36.856: I/Zygote(69): Process 1543 exited due to signal (6)
03-16 08:54:36.860: I/WindowState(347): WIN DEATH: Window{2507218c u0 org.ogre.jni/org.ogre3d.android.MainActivity}
03-16 08:54:36.861: W/InputDispatcher(347): Attempted to unregister already unregistered input channel '2507218c org.ogre.jni/org.ogre3d.android.MainActivity (server)'
03-16 08:54:36.861: W/WindowManager(347): Force-removing child win Window{208f10ea u0 SurfaceView} from container Window{2507218c u0 org.ogre.jni/org.ogre3d.android.MainActivity}
03-16 08:54:36.923: W/WindowManager(347): Failed looking up window
03-16 08:54:36.923: W/WindowManager(347): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@2e8a20d5 does not exist
03-16 08:54:36.923: W/WindowManager(347): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8539)
03-16 08:54:36.923: W/WindowManager(347): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8530)
03-16 08:54:36.923: W/WindowManager(347): 	at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1142)
03-16 08:54:36.923: W/WindowManager(347): 	at android.os.BinderProxy.sendDeathNotice(Binder.java:551)
03-16 08:54:36.923: I/WindowState(347): WIN DEATH: null
03-16 08:54:36.928: W/ActivityManager(347): Exception thrown during pause
03-16 08:54:36.928: W/ActivityManager(347): android.os.DeadObjectException
03-16 08:54:36.928: W/ActivityManager(347): 	at android.os.BinderProxy.transactNative(Native Method)
03-16 08:54:36.928: W/ActivityManager(347): 	at android.os.BinderProxy.transact(Binder.java:496)
03-16 08:54:36.928: W/ActivityManager(347): 	at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
03-16 08:54:36.928: W/ActivityManager(347): 	at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-16 08:54:36.938: E/lowmemorykiller(52): Error opening /proc/1543/oom_score_adj; errno=2
03-16 08:54:36.980: I/ActivityManager(347): Process org.ogre.jni (pid 1543) has died
Did you (or someone else) managed to build and run that version of ogre on android recently ?
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

Okay it's been some times but our team managed to run Ogre 1.9 on Android :)
We didn't resolve the issue with GLES 2 on emulator but just ran the application on a real device.
Nice note : we managed to build it with Boost statically linked ("vanilla" Boost ; didn't try to run on device however).
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: [Android] Issues with SampleBrowser

Post by c6burns »

I've actually never run my app (or any app) on the emulator, so I just don't know anything about it. The only real value in it, to me, is quickly testing different android versions. I will probably use it right before launch instead of flashing my devices around. I'd be interested in what is happening inside Ogre::GLES2RenderSystem::_createRenderWindow ... but not *that* interested since I don't have any problems on any devices right now.

I link static boost and it runs fine. I use thread, atomic, chrono, lockfree and probably some other stuff ... once you are committed to boost you might as well go all the way :lol:

Also I notice we have the same desktop GPU haha
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

At least it runs somewhere, that's a good point :)
Haha, I'm not a huge fan of boost but all the "platform independent stuff" of the application is written with boost so it's quite a necessity to link it !
The next issue we have is that CMake is not finding our version of Boost without our help :/ It's okay, since we can point where to find it, but it's quite annoying ...

Oh, tell me if it breaks one day ;)
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: [Android] Issues with SampleBrowser

Post by c6burns »

I had issues building ogre + boost for android also. I remember I dug into the FindBOOST.cmake or w/e script that ships with CMake itself. There are a number of options in there to get more verbose so you can see exactly where it is looking for boost, which versions, and what the name of each individual library it is looking for should be. I remember the threading lib was named something it wasn't expecting ... like boost_thread vs boost_thread_pthread or something
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

We tried to look into that too, without success ... With some changes, it finds the boost directory but not the libs. Even though the thread library is not "correclty" written, it should find the others at least :( I even tried to force the boost lib directory in environment variables and it doesn't work x(
So, until findBoost.cmake is okay, manual hacks and stuff.
brainsandwich
Gnoblar
Posts: 11
Joined: Fri Mar 13, 2015 11:18 am
x 2

Re: [Android] Issues with SampleBrowser

Post by brainsandwich »

Good news !

Instead of using the standard emulator, the sample runs on the Google "ARC Welder".
You don't have access to debugger but you can test the application directly from chrome.
Plus it runs pretty smooth and launches quickly.

This should prove useful for dev test and maybe for easy peasy multi-platform :O
Post Reply