[Android] strange SEGV_MAPERR in OgreGLSLESProgramCommon.cpp

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
l999358
Gnoblar
Posts: 1
Joined: Fri Aug 31, 2012 10:04 am

[Android] strange SEGV_MAPERR in OgreGLSLESProgramCommon.cpp

Post by l999358 »

ogre 1.8 rc
Android 4.1

RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgramCommon.cpp

Code: Select all

bool GLSLESProgramCommon::isAttributeValid(VertexElementSemantic semantic, uint index)
{
        return getAttributeIndex(semantic, index) != NOT_FOUND_CUSTOM_ATTRIBUTES_INDEX;
}
just got error at

Code: Select all

        return getAttributeIndex(semantic, index) != NOT_FOUND_CUSTOM_ATTRIBUTES_INDEX;
and, the strange part!
just that line, not the body of method getAttributeIndex

Code: Select all

********** Crash dump: **********
Build fingerprint: 'google/takju/maguro:4.1/JRN84D/392829:user/release-keys'
pid: 30820, tid: 30833, name: Thread-3174  >>> net.afpro.test.ogre <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
Stack frame #00  pc 0026751e  /data/data/net.afpro.test.ogre/lib/libmain.so (Ogre::GLSLESProgramCommon::isAttributeValid(Ogre::VertexElementSemantic, unsigned int)+1): Routine isAttributeValid in /home/afpro/tools/modules/ogre/RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgramCommon.cpp:162
Stack frame #01  pc 0025f2c7  /data/data/net.afpro.test.ogre/lib/libmain.so (Ogre::GLES2RenderSystem::_render(Ogre::RenderOperation const&)+878): Routine _render in /home/afpro/tools/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_vector.h:754
full dump:

Code: Select all

I/DEBUG   (  121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  121): Build fingerprint: 'google/takju/maguro:4.1/JRN84D/392829:user/release-keys'
I/DEBUG   (  121): pid: 30820, tid: 30833, name: Thread-3174  >>> net.afpro.test.ogre <<<
I/DEBUG   (  121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (  121):     r0 00000000  r1 00000001  r2 00000000  r3 00000002
I/DEBUG   (  121):     r4 5a32d198  r5 5db2c128  r6 5db2e92c  r7 5e850a00
I/DEBUG   (  121):     r8 00001a58  r9 00000002  sl 00000000  fp 00000000
I/DEBUG   (  121):     ip 5a2d30f4  sp 5db2c0f0  lr 5d69b2cb  pc 5d6a351e  cpsr 40000030
I/DEBUG   (  121):     d0  0000000000000000  d1  00000000c393b700
I/DEBUG   (  121):     d2  000000003f800080  d3  33bbbd2ec2c8003f
I/DEBUG   (  121):     d4  0000000033bbbd2e  d5  c393b73abf800000
I/DEBUG   (  121):     d6  0000000000000000  d7  3f80000000000000
I/DEBUG   (  121):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  121):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  121):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  121):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  121):     d16 40737e5a22aff51d  d17 3faf019b84a612a9
I/DEBUG   (  121):     d18 3fd5555555555563  d19 3fda8279a7bc2207
I/DEBUG   (  121):     d20 3fd921fb60000000  d21 3f1460ea3eff5d8f
I/DEBUG   (  121):     d22 3f12e167f9ad8af4  d23 3f43545b10f5feaa
I/DEBUG   (  121):     d24 3f3043b3a18f8aef  d25 3f6d8a8e44e27de7
I/DEBUG   (  121):     d26 3f57f48a38a4a052  d27 3f967b6faf8d2e07
I/DEBUG   (  121):     d28 3f82391ed3d83df8  d29 3fabbd76807614f3
I/DEBUG   (  121):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   (  121):     scr 20000010
I/DEBUG   (  121): 
I/DEBUG   (  121): backtrace:
I/DEBUG   (  121):     #00  pc 0026751e  /data/data/net.afpro.test.ogre/lib/libmain.so (Ogre::GLSLESProgramCommon::isAttributeValid(Ogre::VertexElementSemantic, unsigned int)+1)
I/DEBUG   (  121):     #01  pc 0025f2c7  /data/data/net.afpro.test.ogre/lib/libmain.so (Ogre::GLES2RenderSystem::_render(Ogre::RenderOperation const&)+878)
I/DEBUG   (  121): 
I/DEBUG   (  121): stack:
I/DEBUG   (  121):          5db2c0b0  00000000  
I/DEBUG   (  121):          5db2c0b4  00000000  
I/DEBUG   (  121):          5db2c0b8  00000000  
I/DEBUG   (  121):          5db2c0bc  00000000  
I/DEBUG   (  121):          5db2c0c0  00000000  
I/DEBUG   (  121):          5db2c0c4  00000000  
I/DEBUG   (  121):          5db2c0c8  00000000  
I/DEBUG   (  121):          5db2c0cc  00000000  
I/DEBUG   (  121):          5db2c0d0  00000000  
I/DEBUG   (  121):          5db2c0d4  00001a58  
I/DEBUG   (  121):          5db2c0d8  00000002  
I/DEBUG   (  121):          5db2c0dc  00000000  
I/DEBUG   (  121):          5db2c0e0  00000000  
I/DEBUG   (  121):          5db2c0e4  5a32d198  
I/DEBUG   (  121):          5db2c0e8  df0027ad  
I/DEBUG   (  121):          5db2c0ec  00000000  
I/DEBUG   (  121):     #00  5db2c0f0  5a32d198  
I/DEBUG   (  121):          5db2c0f4  5d69b2cb  /data/data/net.afpro.test.ogre/lib/libmain.so (Ogre::GLES2RenderSystem::_render(Ogre::RenderOperation const&)+882)
I/DEBUG   (  121):     #01  5db2c0f8  00000000  
I/DEBUG   (  121):          5db2c0fc  00000000  
I/DEBUG   (  121):          5db2c100  00000000  
I/DEBUG   (  121):          5db2c104  5e949e8c  
I/DEBUG   (  121):          5db2c108  00000001  
I/DEBUG   (  121):          5db2c10c  5d9dacc0  /data/data/net.afpro.test.ogre/lib/libmain.so
I/DEBUG   (  121):          5db2c110  00000003  
I/DEBUG   (  121):          5db2c114  00000000  
I/DEBUG   (  121):          5db2c118  5d8866a0  /data/data/net.afpro.test.ogre/lib/libmain.so
I/DEBUG   (  121):          5db2c11c  000008e4  
I/DEBUG   (  121):          5db2c120  5d8866a0  /data/data/net.afpro.test.ogre/lib/libmain.so
I/DEBUG   (  121):          5db2c124  5e850f50  
I/DEBUG   (  121):          5db2c128  5d9cb508  /data/data/net.afpro.test.ogre/lib/libmain.so
I/DEBUG   (  121):          5db2c12c  5f74aa50  
I/DEBUG   (  121):          5db2c130  5f34a080  
I/DEBUG   (  121):          5db2c134  00000000  
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near r4:
I/DEBUG   (  121):     5a32d178 00000000 00000000 5a33074c 5da2ce38  ........L.3Z8..]
I/DEBUG   (  121):     5a32d188 00000001 00000007 00000028 00000023  ........(...#...
I/DEBUG   (  121):     5a32d198 5a32d1f8 5e949e8c 00000002 00000000  ..2Z...^........
I/DEBUG   (  121):     5a32d1a8 00000002 00000001 2e310000 00000043  ..........1.C...
I/DEBUG   (  121):     5a32d1b8 00000000 5a32d5c8 00000000 00000000  ......2Z........
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near r5:
I/DEBUG   (  121):     5db2c108 00000001 5d9dacc0 00000003 00000000  .......]........
I/DEBUG   (  121):     5db2c118 5d8866a0 000008e4 5d8866a0 5e850f50  .f.].....f.]P..^
I/DEBUG   (  121):     5db2c128 5d9cb508 5f74aa50 5f34a080 00000000  ...]P.t_..4_....
I/DEBUG   (  121):     5db2c138 00000000 00000000 00000000 00000000  ................
I/DEBUG   (  121):     5db2c148 00000000 00000000 00000000 00000000  ................
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near r6:
I/DEBUG   (  121):     5db2e90c 00000000 5d9dacc0 00000001 00000001  .......]........
I/DEBUG   (  121):     5db2e91c 5e8a16d8 5e87a528 5be3c5cc 00000000  ...^(..^...[....
I/DEBUG   (  121):     5db2e92c 5ea73090 00000004 3f800001 5e949c58  .0.^.......?X..^
I/DEBUG   (  121):     5db2e93c 5e8a16d8 00000001 00000001 00000000  ...^............
I/DEBUG   (  121):     5db2e94c 59d36880 59d36880 59d36880 59d36880  .h.Y.h.Y.h.Y.h.Y
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near r7:
I/DEBUG   (  121):     5e8509e0 00000000 00000000 00000000 00000000  ................
I/DEBUG   (  121):     5e8509f0 00000000 00000000 5b91b810 0000080b  ...........[....
I/DEBUG   (  121):     5e850a00 5d9d0a38 00000000 00000000 5c67d4c0  8..]..........g\
I/DEBUG   (  121):     5e850a10 5c67d4c0 5c67d4c0 00000001 00000000  ..g\..g\........
I/DEBUG   (  121):     5e850a20 00000000 5c641400 5c641400 5c641400  ......d\..d\..d\
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near r8:
I/DEBUG   (  121):     00001a38 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   (  121):     00001a48 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   (  121):     00001a58 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   (  121):     00001a68 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   (  121):     00001a78 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near ip:
I/DEBUG   (  121):     5a2d30d4 40146198 4014f3b5 408b7c39 59a9ff20  .a.@...@9|.@ ..Y
I/DEBUG   (  121):     5a2d30e4 59a9ff10 40141780 59a1cc90 59a1113c  ...Y...@...Y<..Y
I/DEBUG   (  121):     5a2d30f4 40146080 4014a00c 40141828 59a9f608  .`.@...@(..@...Y
I/DEBUG   (  121):     5a2d3104 59aa0760 40142654 59a1cc7c 59a9d498  `..YT&.@|..Y...Y
I/DEBUG   (  121):     5a2d3114 59aa082c 59a9fe6c 59a9f504 40144960  ,..Yl..Y...Y`I.@
I/DEBUG   (  121): 
I/DEBUG   (  121): memory near sp:
I/DEBUG   (  121):     5db2c0d0 00000000 00001a58 00000002 00000000  ....X...........
I/DEBUG   (  121):     5db2c0e0 00000000 5a32d198 df0027ad 00000000  ......2Z.'......
I/DEBUG   (  121):     5db2c0f0 5a32d198 5d69b2cb 00000000 00000000  ..2Z..i]........
I/DEBUG   (  121):     5db2c100 00000000 5e949e8c 00000001 5d9dacc0  .......^.......]
I/DEBUG   (  121):     5db2c110 00000003 00000000 5d8866a0 000008e4  .........f.]....
I/DEBUG   (  121): 
I/DEBUG   (  121): code around pc:
I/DEBUG   (  121):     5d6a34fc f002601a 1c20fa57 e952f6f1 e7f21c04  .`..W. ...R.....
I/DEBUG   (  121):     5d6a350c e7eb1c04 e7fbe7fa 00338f5e 00338f34  ........^.3.4.3.
I/DEBUG   (  121):     5d6a351c 6803b510 479869db 1e433001 bd104198  ...h.i.G.0C..A..
I/DEBUG   (  121):     5d6a352c 4c07b510 1c20447c ea60f6f1 1c204b05  ...L|D ...`..K .
I/DEBUG   (  121):     5d6a353c 6819447b 447b4b04 f6f0681a bd10eee6  {D.h.K{D.h......
I/DEBUG   (  121): 
I/DEBUG   (  121): code around lr:
I/DEBUG   (  121):     5d69b2a8 0020c19e 0000069e 0000054c 00001b02  .. .....L.......
I/DEBUG   (  121):     5d69b2b8 fe5af007 ff9cf007 46529904 f0089007  ..Z.......RF....
I/DEBUG   (  121):     5d69b2c8 2800f929 e73ed100 99049807 68034652  )..(..>.....RF.h
I/DEBUG   (  121):     5d69b2d8 479869db 46824649 290b9016 e0a0d900  .i.GIF.F...)....
I/DEBUG   (  121):     5d69b2e8 23c12201 011b408a d100421a 2204e099  .".#.@...B....."
any help? any suggestion?
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: [Android] strange SEGV_MAPERR in OgreGLSLESProgramCommon

Post by masterfalcon »

That crash typically occurs when you either have a shader that is missing or not compiled.