Code: Select all
if(Root::getSingleton().getRenderSystem()->getCapabilities()->hasCapability(RSC_SEPARATE_SHADER_OBJECTS))
{
GLSLESProgramPipeline* programPipeline =
GLSLESProgramPipelineManager::getSingleton().getActiveProgramPipeline();
------------------------>if (!programPipeline->isAttributeValid(sem, elem->getIndex()))
{
continue;
}
attrib = (GLuint)programPipeline->getAttributeIndex(sem, elem->getIndex());
}
else
{
GLSLESLinkProgram* linkProgram = GLSLESLinkProgramManager::getSingleton().getActiveLinkProgram();
----------------------------> if (!linkProgram->isAttributeValid(sem, elem->getIndex()))
{
continue;
}
attrib = (GLuint)linkProgram->getAttributeIndex(sem, elem->getIndex());
}
I copyed media into the sdcard , and i am sure all the script has been parsed.
except :
15:17:59: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DiffuseOneTexture.glsles in resource group /LOCUserData/materials/scripts or any other group. in ResourceGroupManager::openResource at D:/LegendofCelestial/Source/Ogre/ogre-port/OGRE//jni/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
15:17:59: High-level program Ogre/BasicFragmentPrograms/DiffuseOneTextureGLSLES encountered an error during loading and is thus not supported.
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource DiffuseOneTexture.glsles in resource group /LOCUserData/materials/scripts or any other group. in ResourceGroupManager::openResource at D:/LegendofCelestial/Source/Ogre/ogre-port/OGRE//jni/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
15:17:59: OGRE EXCEPTION(2:InvalidParametersException): Named constants have not been initialised, perhaps a compile error. in GpuProgramParameters::_findNamedConstantDefinition at D:/LegendofCelestial/Source/Ogre/ogre-port/OGRE//jni/ogre/OgreMain/src/OgreGpuProgramParams.cpp (line 1441)
15:17:59: Compiler error: invalid parameters in Examples.program(207): setting of constant failed
15:17:59: Parsing script ASMSwizzle.material
15:17:59: Compiler error: object unsupported by render system in ASMSwizzle.material(1)
15:17:59: Parsing script Examples-Advanced.material
15:17:59: Compiler error: object unsupported by render system in Examples-Advanced.material(1047)
15:17:59: Compiler error: object unsupported by render system in Examples-Advanced.material(1573)
15:17:59: Parsing script OffsetMapping.material
15:17:59: Compiler error: object unsupported by render system in OffsetMapping.material(69)
Here is a stack-trace of the crash:
- 01-29 16:29:27.540: I/DEBUG(29758): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-29 16:29:27.540: I/DEBUG(29758): Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/ZSLPE:user/release-keys'
01-29 16:29:27.540: I/DEBUG(29758): pid: 30905, tid: 30956 >>> com.niukou.legendofcelestial <<<
01-29 16:29:27.540: I/DEBUG(29758): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
01-29 16:29:27.540: I/DEBUG(29758): r0 00000000 r1 00000001 r2 00000000 r3 00000000
01-29 16:29:27.540: I/DEBUG(29758): r4 00000000 r5 00b6cf38 r6 00000000 r7 006463f8
01-29 16:29:27.540: I/DEBUG(29758): r8 00000190 r9 505a6f54 10 00000008 fp 54a3598c
01-29 16:29:27.540: I/DEBUG(29758): ip 40625e84 sp 54a35978 lr 52fc69dc pc 52fd7bd8 cpsr 60000010
01-29 16:29:27.540: I/DEBUG(29758): d0 1000010f3f800000 d1 1000010e00000000
01-29 16:29:27.540: I/DEBUG(29758): d2 1000010b00000200 d3 0000002000000000
01-29 16:29:27.540: I/DEBUG(29758): d4 0000000000000000 d5 000000003f800000
01-29 16:29:27.540: I/DEBUG(29758): d6 0000000000000000 d7 3f8000003f800000
01-29 16:29:27.540: I/DEBUG(29758): d8 43d68000000001ad d9 0000000043a80000
01-29 16:29:27.540: I/DEBUG(29758): d10 0000000000000000 d11 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d12 0000000000000000 d13 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d14 0000000000000000 d15 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d16 0000000000000000 d17 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d18 0000000000000000 d19 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d20 0000000000000000 d21 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d22 0000000000000000 d23 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d24 0000000000000000 d25 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d26 0000000000000000 d27 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d28 0000000000000000 d29 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): d30 0000000000000000 d31 0000000000000000
01-29 16:29:27.540: I/DEBUG(29758): scr 6000001b
01-29 16:29:27.625: D/dalvikvm(29597): GC_CONCURRENT freed 418K, 33% free 11851K/17607K, paused 1ms+3ms
01-29 16:29:27.775: I/DEBUG(29758): #00 pc 00d3ebd8 /data/data/com.niukou.legendofcelestial/lib/libogre.so (_ZN4Ogre19GLSLESProgramCommon16isAttributeValidENS_21VertexElementSemanticEj)
01-29 16:29:27.775: I/DEBUG(29758): #01 lr 52fc69dc /data/data/com.niukou.legendofcelestial/lib/libogre.so
01-29 16:29:27.775: I/DEBUG(29758): code around pc:
01-29 16:29:27.775: I/DEBUG(29758): 52fd7bb8 00230ff0 e92d4800 e28db004 e24dd010 ..#..H-.......M.
01-29 16:29:27.775: I/DEBUG(29758): 52fd7bc8 e50b0008 e50b100c e50b2010 e51b3008 ......... ...0..
01-29 16:29:27.775: I/DEBUG(29758): 52fd7bd8 e5933000 e283301c e5933000 e51b0008 .0...0...0......
01-29 16:29:27.775: I/DEBUG(29758): 52fd7be8 e51b100c e51b2010 e12fff33 e1a03000 ..... ..3./..0..
01-29 16:29:27.775: I/DEBUG(29758): 52fd7bf8 e3730001 03a03000 13a03001 e6ef3073 ..s..0...0..s0..
01-29 16:29:27.775: I/DEBUG(29758): code around lr:
01-29 16:29:27.775: I/DEBUG(29758): 52fc69bc e1a03000 e1a00003 ebef1d24 e1a03000 .0......$....0..
01-29 16:29:27.775: I/DEBUG(29758): 52fc69cc e1a00004 e51b1034 e1a02003 eb004477 ....4.... ..wD..
01-29 16:29:27.775: I/DEBUG(29758): 52fc69dc e1a03000 e2233001 e6ef3073 e3530000 .0...0#.s0....S.
01-29 16:29:27.775: I/DEBUG(29758): 52fc69ec 0a000001 e3a04000 ea00004e e51b302c .....@..N...,0..
01-29 16:29:27.775: I/DEBUG(29758): 52fc69fc e5933000 e283301c e5934000 e51b502c .0...0...@..,P..
01-29 16:29:27.775: I/DEBUG(29758): stack:
01-29 16:29:27.775: I/DEBUG(29758): 54a35938 54a35964
01-29 16:29:27.775: I/DEBUG(29758): 54a3593c 54a3595c
01-29 16:29:27.775: I/DEBUG(29758): 54a35940 54a3598c
01-29 16:29:27.775: I/DEBUG(29758): 54a35944 54a3598c
01-29 16:29:27.775: I/DEBUG(29758): 54a35948 54a3598c
01-29 16:29:27.775: I/DEBUG(29758): 54a3594c 00000009
01-29 16:29:27.775: I/DEBUG(29758): 54a35950 00008892 /system/bin/app_process
01-29 16:29:27.775: I/DEBUG(29758): 54a35954 006463f8 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a35958 00000880
01-29 16:29:27.775: I/DEBUG(29758): 54a3595c 0064c128 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a35960 006469a0 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a35964 00000002
01-29 16:29:27.775: I/DEBUG(29758): 54a35968 006469bc [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a3596c 0064aa28 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a35970 df0027ad
01-29 16:29:27.775: I/DEBUG(29758): 54a35974 00000000
01-29 16:29:27.775: I/DEBUG(29758): #00 54a35978 00000000
01-29 16:29:27.775: I/DEBUG(29758): 54a3597c 00000000
01-29 16:29:27.775: I/DEBUG(29758): 54a35980 00000001
01-29 16:29:27.775: I/DEBUG(29758): 54a35984 00000000
01-29 16:29:27.775: I/DEBUG(29758): 54a35988 54a359fc
01-29 16:29:27.775: I/DEBUG(29758): 54a3598c 52fc69dc /data/data/com.niukou.legendofcelestial/lib/libogre.so
01-29 16:29:27.775: I/DEBUG(29758): 54a35990 00000001
01-29 16:29:27.775: I/DEBUG(29758): 54a35994 006463f8 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a35998 00a43018 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a3599c 006463f8 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a359a0 00000000
01-29 16:29:27.775: I/DEBUG(29758): 54a359a4 00030000 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a359a8 00b90e00 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a359ac 0090e318 [heap]
01-29 16:29:27.775: I/DEBUG(29758): 54a359b0 00000000
01-29 16:29:27.775: I/DEBUG(29758): 54a359b4 52d2bc44 /data/data/com.niukou.legendofcelestial/lib/libogre.so
01-29 16:29:27.775: I/DEBUG(29758): 54a359b8 00000001
01-29 16:29:27.775: I/DEBUG(29758): 54a359bc 00000000