首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android 3d程序在模拟器上正常在真机上直接崩溃,该如何处理

2012-03-24 
android 3d程序在模拟器上正常在真机上直接崩溃02-10 16:51:32.770: INFO/DEBUG(84): Build fingerprint:

android 3d程序在模拟器上正常在真机上直接崩溃
02-10 16:51:32.770: INFO/DEBUG(84): Build fingerprint: 'MOTO/wifi_hubble/wifi_hubble:3.0.1/H.6.2-9_CN-18/1302231180:user/ota-rel-keys,release-keys'
02-10 16:51:32.770: INFO/DEBUG(84): pid: 761, tid: 769 >>> com.android.GeoGlobe <<<
02-10 16:51:32.770: INFO/DEBUG(84): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
02-10 16:51:32.770: INFO/DEBUG(84): r0 562f34d0 r1 00000000 r2 00000010 r3 00000010
02-10 16:51:32.770: INFO/DEBUG(84): r4 000001bc r5 00000010 r6 00000000 r7 00000000
02-10 16:51:32.770: INFO/DEBUG(84): r8 00000002 r9 00308a78 10 562f34e0 fp 0019ae80
02-10 16:51:32.770: INFO/DEBUG(84): ip 00000000 sp 58e6b9a0 lr 81918c04 pc aff0cba0 cpsr 60000010
02-10 16:51:32.770: INFO/DEBUG(84): d0 0000000000000000 d1 40dfae1400000000
02-10 16:51:32.770: INFO/DEBUG(84): d2 0000000000000000 d3 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d4 0000000000000000 d5 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d6 44480000bf800000 d7 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d8 0000000000000000 d9 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d10 0000000000000000 d11 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d12 0000000000000000 d13 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): d14 0000000000000000 d15 0000000000000000
02-10 16:51:32.770: INFO/DEBUG(84): scr 60000012
02-10 16:51:32.870: INFO/DEBUG(84): #00 pc 0000cba0 /system/lib/libc.so
02-10 16:51:32.870: INFO/DEBUG(84): #01 pc 00018c00 /system/lib/egl/libGLESv2_tegra.so (glDrawElements)02-10 16:51:32.870: INFO/DEBUG(84): #02 pc 0000bc8c /system/lib/egl/libGLESv1_CM_tegra.so (glDrawElements)
02-10 16:51:32.870: INFO/DEBUG(84): #03 pc 0009e992 /data/data/com.android.GeoGlobe/lib/libGeoGlobe.so (_ZN13CVWImageLayer6RenderEP14CVWSceneViewer)
02-10 16:51:32.880: INFO/DEBUG(84): libc base address: aff00000
02-10 16:51:32.880: INFO/DEBUG(84): code around pc:
02-10 16:51:32.880: INFO/DEBUG(84): aff0cb80 1a00002b e88d0fe0 e2603000 e213301c 
02-10 16:51:32.880: INFO/DEBUG(84): aff0cb90 0a00000a e1530002 8202301c e1b0ce03 
02-10 16:51:32.880: INFO/DEBUG(84): aff0cba0 28b100f0 48b10300 28a000f0 48a00300 
02-10 16:51:32.880: INFO/DEBUG(84): aff0cbb0 e3130004 1491a004 1480a004 e0422003 
02-10 16:51:32.880: INFO/DEBUG(84): aff0cbc0 e2522020 3a000008 e3c1c01f e28cc040 
02-10 16:51:32.880: INFO/DEBUG(84): code around lr:
02-10 16:51:32.880: INFO/DEBUG(84): 81918be4 e1a0400e e199c0b8 e1a0000a e1a02005 
02-10 16:51:32.880: INFO/DEBUG(84): 81918bf4 e08aa005 e2888002 e0216c97 ebffab4b 
02-10 16:51:32.880: INFO/DEBUG(84): 81918c04 e2544001 1afffff6 e1a0400b e59db03c 
02-10 16:51:32.880: INFO/DEBUG(84): 81918c14 eaffff9c e59dc018 e35c0001 0a000039 
02-10 16:51:32.880: INFO/DEBUG(84): 81918c24 e35c0000 1a000022 e59da028 e1a0800c 
02-10 16:51:32.880: INFO/DEBUG(84): stack:
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b960 0000002e  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b964 58e6b974  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b968 81302187 /system/lib/libnvrm_graphics.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b96c c0084801  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b970 58e6b978  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b974 00000008  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b978 00000012  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b97c 0000114e  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b980 00000012  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b984 819173f4 /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b988 0019b4b0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b98c 00000008  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b990 000016a0  


02-10 16:51:32.880: INFO/DEBUG(84): 58e6b994 819174b8 /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b998 df002777  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b99c e3a070ad  
02-10 16:51:32.880: INFO/DEBUG(84): #00 58e6b9a0 00000010  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9a4 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9a8 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9ac 00000002  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9b0 00308a78  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9b4 562f34e0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9b8 0019ae80  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9bc 562f34d0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9c0 000001bc  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9c4 81918c04 /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): #01 58e6b9c8 00000010  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9cc 00000004  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9d0 0000000d  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9d4 58e6ba08  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9d8 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9dc 00332146  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9e0 00000001  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9e4 00000004  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9e8 000001bc  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9ec 00005d06  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9f0 0019b4b0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9f4 00000045  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9f8 0019b4b0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6b9fc 0019b4f4  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba00 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba04 000014d0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba08 81944e28 /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba0c ffffffdc  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba10 8194b3a0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba14 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba18 000001bc  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba1c 00000024  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba20 00000009  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba24 000001bc  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba28 81944e0c /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba2c 00000004  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba30 50a2bf58  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba34 0019a2c0  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba38 8181a1a4  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba3c 00000004  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba40 81918434 /system/lib/egl/libGLESv2_tegra.so
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba44 8181a7f4  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba48 00001403  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba4c 00005d06  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba50 00000000  
02-10 16:51:32.880: INFO/DEBUG(84): 58e6ba54 8180bc8f /system/lib/egl/libGLESv1_CM_tegra.so
02-10 16:51:34.040: INFO/BootReceiver(120): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
02-10 16:51:34.050: INFO/WindowManager(120): WIN DEATH: Window{407463d0 SurfaceView paused=false}
02-10 16:51:34.050: DEBUG/gralloc(120): Attempting to delete a locked buffer!
02-10 16:51:34.050: DEBUG/gralloc(120): Buffer c4 locks: (tid = 769 (x1), usage = 0x200)
02-10 16:51:34.050: DEBUG/Zygote(85): Process 761 terminated by signal (11)


02-10 16:51:34.050: INFO/ActivityManager(120): Process com.android.GeoGlobe (pid 761) has died.
02-10 16:51:34.050: INFO/WindowManager(120): WIN DEATH: Window{4100b9f0 com.android.GeoGlobe/com.android.GeoGlobe.GeoGlobeActivity paused=false}
02-10 16:51:34.080: INFO/=====suggestion=====(188): switch to qwerty mode, enable?true
02-10 16:51:34.080: WARN/InputManagerService(120): Got RemoteException sending setActive(false) notification to pid 761 uid 10065
02-10 16:51:34.090: INFO/=====suggestion=====(188): switch to qwerty mode, enable?true
02-10 16:51:34.090: INFO/=====suggestion=====(188): switch to qwerty mode, enable?true
02-10 16:51:36.320: INFO/PollingManager(209): alarm fired!
02-10 16:51:36.320: INFO/PollingManager(209): now: 159507 ,futureTime: 279507
02-10 16:51:36.320: DEBUG/PollingManager(209): wake lock acquired
02-10 16:51:36.320: DEBUG/PollingManager(209): decideWhoNeedsPolling(): polling BlurServiceMother
02-10 16:51:36.330: INFO/PollingManager(209): Polling alarm set to expire at: 279507
02-10 16:51:36.340: DEBUG/BlurServiceMother(209): forcing a sync for app ids: 2,60
02-10 16:51:36.340: INFO/SyncActivityLog(209): not:Forcing sync of sync app id 2
02-10 16:51:36.340: INFO/SyncActivityLog(209): not:Received notification for BlurSettingsSyncHandler. Delay of 0 ms with signature 159532.
02-10 16:51:36.340: INFO/SyncActivityLog(209): not:Forcing sync of sync app id 60
02-10 16:51:36.340: INFO/SyncActivityLog(209): not:Received notification for AdminFlunkySyncHandler. Delay of 0 ms with signature 159534.
02-10 16:51:36.340: DEBUG/PollingManager(209): registerApp(): BlurServiceMother
02-10 16:51:36.340: ERROR/PollingManager(209): registerApp(): BlurServiceMother already registered.
02-10 16:51:36.340: DEBUG/PollingManager(209): modifyApp(): BlurServiceMother
这个是log信息
断点输入log发现glDrawElements函数处出错,把这个函数屏蔽则运行正常,但是仔细检查发现这个函数也没有用错啊,而且在模拟器上效果是好的,请高手指教

[解决办法]
02-10 16:51:32.770: INFO/DEBUG(84): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
说明程序读取了NULL,导致段错误。
02-10 16:51:32.870: INFO/DEBUG(84): #00 pc 0000cba0 /system/lib/libc.so
02-10 16:51:32.870: INFO/DEBUG(84): #01 pc 00018c00 /system/lib/egl/libGLESv2_tegra.so (glDrawElements)
这个说明libGLESv2_tegra.so调用了libc.so中的某个函数时出现问题。模拟器和真机在某些库文件上是有差异

[解决办法]
use dumpobj and addr2line to libGLESv2_tegra.so can get the specific line which caused the the SIGSEGV

热点排行