首页 / 浏览问题 / 移动GIS / 问题详情
打开离线三维场景样例失败
匿名
2017年05月14日
F/libc(450): Fatal signal 11(SIGSEGV) at 0xdeadbaad(code=1)
W/NetworkManagementSocketTagger(79): setKernelCountSet(10021, 0) failed with errno -2
I/DEBUG(34): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG(34): Build fingerprint: 'generic/sdk/generic:4.0.4/MR1/1741834:eng/test-keys'
I/DEBUG(34): pid: 450, tid: 487  >>> com.example.openofflinescene <<<
I/DEBUG(34): signal 11(SIGSEGV), code 1(SEGV_MAPERR), fault addr deadbaad
I/DEBUG(34):  r0 deadbaad  r1 00000001  r2 40000000  r3 00000000
I/DEBUG(34):  r4 00000000  r5 00000027  r6 00000001  r7 002a1cb8
I/DEBUG(34):  r8 4d45a778  r9 4c4b59cc  10 4c4b59a0  fp 4ceec4ac
I/DEBUG(34):  ip ffffffff  sp 4ceec468  lr 4001f161  pc 4001b8c0  cpsr 60000030
I/DEBUG(34):  d0  43c000004401c000  d1  000000003f800000
I/DEBUG(34):  d2  fffffbf2c481c000  d3  0000000000000000
I/DEBUG(34):  d4  4401c0003f800000  d5  c401c00043c00000
I/DEBUG(34):  d6  00af578000000000  d7  4165eaf010000000
I/DEBUG(34):  d8  0000000000000000  d9  0000000000000000
I/DEBUG(34):  d10 0000000000000000  d11 0000000000000000
I/DEBUG(34):  d12 0000000000000000  d13 0000000000000000
I/DEBUG(34):  d14 0000000000000000  d15 0000000000000000
I/DEBUG(34):  scr 20000012
I/DEBUG(34):
I/DEBUG(34):          #00  pc 000178c0  /system/lib/libc.so
I/DEBUG(34):          #01  lr 4001f161  /system/lib/libc.so
I/DEBUG(34):
I/DEBUG(34): code around pc:
I/DEBUG(34): 4001b8a0 4623b15c 2c006824 e026d1fb b12368db  \.#F$h.,..&..h#.
I/DEBUG(34): 4001b8b0 21014a17 6011447a 48124798 24002527  .J.!zD.`.G.H'%.$
I/DEBUG(34): 4001b8c0 f7f47005 2106ee50 eeecf7f5 460aa901  .p..P..!.......F
I/DEBUG(34): 4001b8d0 f04f2006 94015380 94029303 eaa8f7f5  . O..S..........
I/DEBUG(34): 4001b8e0 4622a905 f7f52002 f7f4eab2 2106ee3c  .."F. ......<..!
I/DEBUG(34):
I/DEBUG(34): code around lr:
I/DEBUG(34): 4001f140 41f0e92d 46804c0c 447c2600 68a56824  -..A.L.F.&|D$h.h
I/DEBUG(34): 4001f150 e0076867 300cf9b5 dd022b00 47c04628  gh.....0.+..(F.G
I/DEBUG(34): 4001f160 35544306 37fff117 6824d5f4 d1ee2c00  .CT5...7..$h.,..
I/DEBUG(34): 4001f170 e8bd4630 bf0081f0 0002839a 41f0e92d  0F..........-..A
I/DEBUG(34): 4001f180 fb01b086 9004f602 461f4815 4615460c  .........H.F.F.F
I/DEBUG(34):
I/DEBUG(34): memory map around addr deadbaad:
I/DEBUG(34): be95b000-be970000 [stack]
I/DEBUG(34):(no map for address)
I/DEBUG(34):(no map above)
I/DEBUG(34):
I/DEBUG(34): stack:
I/DEBUG(34):     4ceec428  002931e0  [heap]
I/DEBUG(34):     4ceec42c  4004c35c
I/DEBUG(34):     4ceec430  400476b0  /system/lib/libc.so
I/DEBUG(34):     4ceec434  002a1cb8  [heap]
I/DEBUG(34):     4ceec438  4004770c  /system/lib/libc.so
I/DEBUG(34):     4ceec43c  4004c85c
I/DEBUG(34):     4ceec440  00000000
I/DEBUG(34):     4ceec444  4001f161  /system/lib/libc.so
I/DEBUG(34):     4ceec448  00000000
I/DEBUG(34):     4ceec44c  4ceec47c
I/DEBUG(34):     4ceec450  00000001
I/DEBUG(34):     4ceec454  002a1cb8  [heap]
I/DEBUG(34):     4ceec458  4d45a778
I/DEBUG(34):     4ceec45c  4001e2cd  /system/lib/libc.so
I/DEBUG(34):     4ceec460  df0027ad
I/DEBUG(34):     4ceec464  00000000
I/DEBUG(34): #00 4ceec468  400476b0  /system/lib/libc.so
I/DEBUG(34):     4ceec46c  0000000a
I/DEBUG(34):     4ceec470  00000001
I/DEBUG(34):     4ceec474  4001f6f1  /system/lib/libc.so
I/DEBUG(34):     4ceec478  40047608  /system/lib/libc.so
I/DEBUG(34):     4ceec47c  fffffbdf
I/DEBUG(34):     4ceec480  00000001
I/DEBUG(34):     4ceec484  40047608  /system/lib/libc.so
I/DEBUG(34):     4ceec488  002a1e2c  [heap]
I/DEBUG(34):     4ceec48c  4bce7b98  /data/data/com.example.openofflinescene/lib/libimb_v800.so
I/DEBUG(34):     4ceec490  002a1db8  [heap]
I/DEBUG(34):     4ceec494  00000000
I/DEBUG(34):     4ceec498  002a1db8  [heap]
I/DEBUG(34):     4ceec49c  4bce7a80  /data/data/com.example.openofflinescene/lib/libimb_v800.so
I/DEBUG(34):     4ceec4a0  4bce36dc  /data/data/com.example.openofflinescene/lib/libimb_v800.so
I/DEBUG(34):     4ceec4a4  ffffffff
I/DEBUG(34):     4ceec4a8  4ceec4b4
I/DEBUG(34):     4ceec4ac  4bce36b0  /data/data/com.example.openofflinescene/lib/libimb_v800.so
D/AndroidRuntime(450): Shutting down VM
W/dalvikvm(450): threadid=1: thread exiting with uncaught exception(group=0x409bf1f8)
E/AndroidRuntime(450): FATAL EXCEPTION: main
E/AndroidRuntime(450): java.lang.IllegalStateException: getScene()
E/AndroidRuntime(450):        at com.supermap.realspace.SceneControl.getScene(SceneControl.java:259)
E/AndroidRuntime(450):        at com.example.openofflinescene.MainActivity$1.onClick(MainActivity.java:39)
E/AndroidRuntime(450):        at android.view.View.performClick(View.java:3511)
E/AndroidRuntime(450):        at android.view.View$PerformClick.run(View.java:14105)
E/AndroidRuntime(450):        at android.os.Handler.handleCallback(Handler.java:605)
E/AndroidRuntime(450):        at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(450):        at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(450):        at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(450):        at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(450):        at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(450):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(450):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(450):        at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager(79):   Force finishing activity com.example.openofflinescene/.MainActivity
W/WindowManager(79): Failure taking screenshot for(240x370) to layer 21015
F/NetworkStats(79): problem reading network stats
F/NetworkStats(79): java.lang.IllegalStateException: problem parsing idx 1
F/NetworkStats(79):  at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:300)
F/NetworkStats(79):  at com.android.server.NetworkManagementService.getNetworkStatsUidDetail(NetworkManagementService.java:1282)
F/NetworkStats(79):  at com.android.server.net.NetworkStatsService.performPollLocked(NetworkStatsService.java:831)
F/NetworkStats(79):  at com.android.server.net.NetworkStatsService.performPoll(NetworkStatsService.java:799)
F/NetworkStats(79):  at com.android.server.net.NetworkStatsService.access$100(NetworkStatsService.java:128)
F/NetworkStats(79):  at com.android.server.net.NetworkStatsService$3.onReceive(NetworkStatsService.java:633)
F/NetworkStats(79):  at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:728)
F/NetworkStats(79):  at android.os.Handler.handleCallback(Handler.java:605)
F/NetworkStats(79):  at android.os.Handler.dispatchMessage(Handler.java:92)
F/NetworkStats(79):  at android.os.Looper.loop(Looper.java:137)
F/NetworkStats(79):  at android.os.HandlerThread.run(HandlerThread.java:60)
F/NetworkStats(79): Caused by: java.io.FileNotFoundException: /proc/net/xt_qtaguid/stats: open failed: ENOENT(No such file or directory)
F/NetworkStats(79):  at libcore.io.IoBridge.open(IoBridge.java:406)
F/NetworkStats(79):  at java.io.FileInputStream.<init>(FileInputStream.java:78)
F/NetworkStats(79):  at com.android.internal.net.NetworkStatsFactory.readNetworkStatsDetail(NetworkStatsFactory.java:269)
F/NetworkStats(79):  ... 10 more
F/NetworkStats(79): Caused by: libcore.io.ErrnoException: open failed: ENOENT(No such file or directory)
F/NetworkStats(79):  at libcore.io.Posix.open(Native Method)
F/NetworkStats(79):  at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
F/NetworkStats(79):  at libcore.io.IoBridge.open(IoBridge.java:390)
F/NetworkStats(79):  ... 12 more
W/ActivityManager(79): Activity pause timeout for ActivityRecord{4197aac8 com.example.openofflinescene/.MainActivity}
I/Process(79): Sending signal. PID: 450 SIG: 3
W/NetworkManagementSocketTagger(79): setKernelCountSet(10021, 1) failed with errno -2

1个回答

你好,就这个问题需要了解一下情况:

1、运行这个工程用的SuperMap iMobile for Android是哪个版本?

2、运行的工程时samplecode中的openofflinescene范例,用的数据是范例中用到的还是自己的,要确保设置的数据路径是否正确;

3、从报错信息是看是运行到scenecontrol.getscene()报错,看是否引用了对应的场景jar包;

4、openofflinescene范例是打开的iServer发布的在本地的离线数据,如果是iDesktop中切的场景缓存,在移动端是先打开sxwu工作空间,然后再打开工作空间中的场景。
2,042EXP 2017年05月15日

1. SuperMap iMobile 8C for Android_800_5808

2. SampleData\CBD中的192_168_1_111_8090_iserver_services_realspace-CBD目录和CBD.fpf复制到/sdcard/SuperMap/LocalData,如下:

adb.exe shell ls -l /sdcard/SuperMap/LocalData
d---rwxr-x system   sdcard_rw          2017-05-13 02:43 192_168_1_111_8090_iserver_services_realspace-CBD
----rwxr-x system   sdcard_rw     7121 2014-05-16 18:46 CBD.fpf

3.libs中文件如下:

com.supermap.data_v800.jar
com.supermap.realspace_v800.jar
armeabi\libAisound.so
armeabi\libimb2d_v800.so
armeabi\libimb_v800.so
armeabi\libMQJni.so

4.数据来自SuperMap iMobile 8C for Android_800_5808\SampleData\CBD

如果用示例数据和不该示例工程中代码,需要在pc端解压sampledata中的CBD包,将CBD解压后的数据拷贝到/sdcard/SuperMap/LocalData/下,数据在设备的最终目录是根目录\SuperMap\LocalData\192_168_1_111_8090_iserver_services_realspace-CBD\下。

CBD已经解压并在设备的最终目录中,如下:

adb.exe shell ls -l /sdcard/SuperMap/LocalData/192_168_1_111_8090_iserver_services_realspace-CBD
d---rwxr-x system   sdcard_rw          2017-05-13 02:43 Scenes
d---rwxr-x system   sdcard_rw          2017-05-13 02:43 SymbolLibrary
d---rwxr-x system   sdcard_rw          2017-05-13 02:47 Vectors

你运行的工程是没有改动的openofflinescene范例,还是自己改动后的代码;另外将mapping.jar包也添加进去再运行一下。
运行的工程是没有改动的openofflinescene范例.

将mapping.jar包也添加进去再运行没变化
你那边是用真机运行还是模拟器跑的,如果是真机配置怎么样,如果较低可以换一个设备运行一下看,三维数据对设备要求较高一点。
模拟器. 需要怎样的配置? API Level?RAM?Heap?
API设置4.0以上,其他的按高的配置设置,但三维数据要求配置较高,建议还是用真机运行。
...