What process should be used to compress the SKMaps.zip file for use in a Skobbler-enabled application?

I am currently using the Skobbler SDK in an Android application for processing map tasks and turn-based tasks. One of the problems was the desire to switch to the frequency with which the audio advice is issued from the SDK, so we do not have too many instructions that run one after another.

I found this answer to another question that explains the need to modify the advice_places.adv file, which I could find in the SDK under SKMaps.zip .

The problem I am facing seems to be related to the way I am re-archiving the zip file after I have finished making changes to the advice_places.adv file. I work on a Mac, and it seems that whether I use the built-in β€œCompress ...” context menu or if I perform a zip operation through a command line similar to:

 zip -vr SKMaps.zip SKMaps/ -x "*.DS_Store"; chmod +x SKMaps.zip 

I still cannot download my application without crashing during the initialization process of the Skobbler SDK card.

I narrowed down the problem because it is a problem with zip / unzip, as I can recreate the crash even if I do not modify the contents of SKMaps.zip, but only unzip it and then rezip it.

Here is a dump of the logs that I see when my application crashes.

  SKMaps D SKMapViewHolder----@onResume D SKMapSurfaceView----@onResume D SKMapSurfaceView----@onResume preserve GL context is TRUE WindowManager V Adding window Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity} at 23 of 32 (before Window{246caca8 u0 SurfaceView}) V Adding window Window{1b0d49f9 u0 SurfaceView} at 23 of 33 (before Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity}) SKMaps D MapRenderer----@onSurfaceCreated D MapRenderer----@onSurfaceCreated LinInitialized = true D MapRenderer---- @initGLView SkobblerNG D set density JNI - before NG_SetScreenScale D set density JNI - after NG_SetScreenScale libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 24828 (GLThread 44711) btif_config_util D btif_config_save_file(L188): in file name:/data/misc/bluedroid/bt_config.new DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I Build fingerprint: 'google/shamu/shamu:5.1/LMY47I/1767468:user/release-keys' I Revision: '33696' I ABI: 'arm' I pid: 24493, tid: 24828, name: GLThread 44711 >>> com.company.mymapapp <<< I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4 I r0 00000001 r1 00000000 r2 00000001 r3 00000029 I r4 a0edfcd0 r5 00000000 r6 a0edfc00 r7 a044a9b0 I r8 00000000 r9 a044a9d8 sl 00000001 fp 13250820 I ip 80000000 sp a044a978 lr 9e8d5efd pc 9e8d5f22 cpsr 600f0030 I backtrace: I #00 pc 0018ef22 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::SetupTextureInBufferFromTex(SK_WTEXTURE_ID&)+113) I #01 pc 0018ff23 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::Init(unsigned int, unsigned int)+190) I #02 pc 0011dc7d /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (MapRenderer::InitializeGlobeAndWorldTextures()+116) I #03 pc 000fe1bd /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (NG_InitializeGL+52) I #04 pc 000e7fcf /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (Java_com_skobbler_ngx_map_MapRenderer_initgl+14) I #05 pc 0064b963 /data/dalvik-cache/arm/ data@app @ com.company.mymapapp-1@base.apk @classes.dex I Tombstone written to: /data/tombstones/tombstone_07 ActivityManager W Force finishing activity 1 com.company.mymapapp/.activities.MainActivity BootReceiver I Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE) JavaBinder E !!! FAILED BINDER TRANSACTION !!! WindowState I WIN DEATH: Window{23adbb9a u0 SurfaceView} NetlinkEvent E NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found E NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found NetdConnector E Error handling '613 IfaceClass active (null)': java.lang.NumberFormatException: Invalid int: "(null)" WindowState I WIN DEATH: Window{246caca8 u0 SurfaceView} I WIN DEATH: Window{259e40bc u0 com.company.mymapapp/com.company.mymapapp.activities.IntroActivity} I WIN DEATH: Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity} I WIN DEATH: Window{1b0d49f9 u0 SurfaceView} Zygote I Process 24493 exited due to signal (11) ActivityManager W Exception thrown during pause W android.os.TransactionTooLargeException W at android.os.BinderProxy.transactNative(Native Method) W at android.os.BinderProxy.transact(Binder.java:496) W at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704) W at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825) W at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726) W at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583) W at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497) W at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500) W at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397) W at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081) W at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592) W at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86) lowmemorykiller E Error opening /proc/24493/oom_score_adj; errno=2 Process com.company.mymapapp (PID: 24493) ended 

If anyone has information on the preferred way to create a zip file on a Mac for use with the Skobbler SDK in this way, I would appreciate any advice.

Thanks! Whale

+5
source share
1 answer

I had the same problem (I did the pen / unpack manually) - I did not get to the bottom of the problem, but the trick is not to fasten the SkMaps folder (which you get when unpacking), but the contents of this folder (all sub folders) in the archive with the name SkMaps.zip (go to the unpacked folder, SKMaps, select the entire folder and compile it into SKMaps.zip.

I'm not sure if this is Mac specific or zip code. The SDK expects that when unpacking SKMaps.zip it will find several folders, but when you compress the SKMaps folder directly, you get an archive with the root folder with the SkMaps folder (which is wrong) and only inside this folder is the correct folder structure.

+2
source

Source: https://habr.com/ru/post/1241176/


All Articles