各位大佬,我需要在矢量图层加载后,在某一时刻重新替换原始shp文件,请问,如何将已加载的数据集和图层删除后重新导入shp文件并加载至图层中?目前,我在DataConversion.importSHP之前判断工作空间是否有数据集和图层存在,如果有就将对应的数据集和图层删掉后导入,导入是在一个线程中导入shp并添加到图层,但是程序一直崩溃,崩溃日志如下:
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: pid: 30243, tid: 30487, name: Thread-177 >>> com.xtkj.LpWydc <<<
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: r0 00000000 r1 00007717 r2 00000006 r3 00000008
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: r4 00007623 r5 00007717 r6 c98fe9fc r7 0000010c
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: r8 c865cfac r9 00000001 r10 c98feb20 r11 c98fea34
2022-07-29 14:32:27.179 30490-30490/? A/DEBUG: ip 00000041 sp c98fe9e8 lr f2a6ae55 pc f2a62b7a
2022-07-29 14:32:27.247 30490-30490/? A/DEBUG: backtrace:
2022-07-29 14:32:27.247 30490-30490/? A/DEBUG: #00 pc 0001db7a /system/lib/libc.so (abort+58)
2022-07-29 14:32:27.247 30490-30490/? A/DEBUG: #01 pc 01699104 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (__gnu_cxx::__verbose_terminate_handler()+312)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #02 pc 01695210 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (__cxxabiv1::__terminate(void (*)())+8)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #03 pc 01695254 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (std::terminate()+20)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #04 pc 016958b4 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (__cxa_pure_virtual+24)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #05 pc 00eedc29 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (UGC::UGLayer::IsWebRasterLayer()+16)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #06 pc 00efbf0d /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (UGC::UGLayers::RemoveAt(int, int, unsigned char)+92)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #07 pc 00f7c1b5 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (UGC::UGMobileMap::Remove(UGC::UGLayers*, UGC::UGLayer*)+48)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #08 pc 009dab73 /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/lib/arm/libimb_v1012.so (Java_com_supermap_mapping_LayersNative_jni_1Remove+30)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #09 pc 00442479 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #10 pc 0043df75 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #11 pc 00410793 /system/lib/libart.so (art_quick_invoke_static_stub+222)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #12 pc 000a82bf /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+154)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #13 pc 001f4717 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+230)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #14 pc 001ef389 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+784)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #15 pc 0021854d /system/lib/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE0ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+96)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #16 pc 00215541 /system/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+51296)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #17 pc 00442e55 /system/lib/libart.so (ExecuteSwitchImplAsm+4)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #18 pc 0046bae8 /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/base.apk (deleted) (com.supermap.mapping.Layers.removeLayer)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #19 pc 001d3d01 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2377676604+292)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #20 pc 001d8677 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #21 pc 001ef373 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+762)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #22 pc 002163db /system/lib/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE2ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+438)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #23 pc 00214913 /system/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+48178)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #24 pc 00442e55 /system/lib/libart.so (ExecuteSwitchImplAsm+4)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #25 pc 0046b7dc /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.xtkj.LpWydc-GM8WO8U_2yZxmvFBt25EeQ==/base.apk (deleted) (com.supermap.mapping.Layers.remove)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #26 pc 001d3d01 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2377676604+292)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #27 pc 001d8677 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #28 pc 001ef373 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+762)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #29 pc 002163db /system/lib/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE2ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+438)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #30 pc 00214913 /system/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+48178)
2022-07-29 14:32:27.248 30490-30490/? A/DEBUG: #31 pc 00442e55 /system/lib/libart.so (ExecuteSwitchImplAsm+4)