应该使用什么过程来压缩SKMaps.zip文件以在Skobbler驱动的应用程序中使用? [英] What process should be used to compress SKMaps.zip file for use in Skobbler powered app?

查看:67
本文介绍了应该使用什么过程来压缩SKMaps.zip文件以在Skobbler驱动的应用程序中使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在Android应用程序中使用Skobbler SDK来处理映射和转弯方向任务.出现的一个问题是希望更改从SDK发出音频建议的频率,这样我们就不会有太多指令被另一指令触发.

I'm currently using the Skobbler SDK in an Android app to handle mapping and turn-by-turn direction tasks. One issue that came up was the desire to change to frequency at which audio advice is issued from the SDK so that we don't have too many instructions being fired off one after the other.

我找到了此答案,它回答了另一个问题,该问题解释了需要修改advice_places.adv文件的能力,在SDK提供的SKMaps.zip文件中找到.

I found this answer to another question which explains the need to modify an advice_places.adv file which I was able to find within the SDK provided SKMaps.zip file.

我遇到的问题似乎与完成对advice_places.adv文件的更改后如何重新存档zip文件有关.我在Mac上工作,似乎无论我使用内置的"Compress ..."上下文菜单选项还是通过类似于以下命令的命令行执行zip操作:

The issue I'm experiencing seems to be related to how I re-archive the zip file once I've finished making changes to the advice_places.adv file. I'm working on a Mac and it seems that regardless of if I use the built-in "Compress..." context menu option or if I perform a zip operation via the command line similar to:

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

在Skobbler SDK地图初始化过程中,如果我的应用程序不崩溃,我似乎仍然无法加载它.

I still can't seem to load my app without it crashing during the Skobbler SDK map initialization process.

我将问题缩小为与zip/unzip有关的问题,因为即使我不修改SKMaps.zip的任何内容,而仅修改然后重新压缩,我也可以重新创建崩溃.

I've narrowed down the issue to it being a zip/unzip related issue since I can recreate the crash even if I don't modify any of the contents of the SKMaps.zip but only unzip and then rezip.

这是我的应用崩溃时看到的日志的转储.

Here is a dump of the logs that I see when my app 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

如果有人对在Mac上以这种方式与Skobbler SDK一起使用的生成zip文件的首选方法有任何信息,我将不胜感激.

If anyone has any information as to the preferred method of generating a zip file on a Mac for use with the Skobbler SDK in this fashion, I would appreciate any guidance.

谢谢! 基思

推荐答案

我遇到了同样的问题(我手动进行了压缩/解压缩)-我没有找到问题的根源,但是窍门不是将SkMaps文件夹(解压缩时获得)压缩,但是将该文件夹的内容(所有子文件夹)压缩到名为SkMaps.zip的档案中(进入解压缩的文件夹SKMaps中,选择所有文件夹并将其压缩为SKMaps.zip

I've had the same issue (I did the zipping/unzipping manually) - I did not get to the bottom of the problem but the trick is not to zip the SkMaps folder (that you get when unzipping) but the content of that folder (all the subfolders) in an archive named SkMaps.zip (go in the unpacked folder, SKMaps, select all the folder and compress them to an SKMaps.zip.

我不确定这是Mac专用还是zip专用. SDK期望在解压缩SKMaps.zip时会找到许多文件夹,但是当直接压缩SKMaps文件夹时,最终会得到一个存档,该存档具有一个名为SkMaps的文件夹作为根文件夹(这是错误的),并且仅在该文件夹内正确的文件夹结构.

I'm not sure if this is Mac specific or zip specific. The SDK expects that when unzipping SKMaps.zip it will find a number of folders, but when you compress the SKMaps folder directly you end up with an archive that has as root folder a folder named SkMaps (which is wrong) and only inside that folder the correct folder structure.

这篇关于应该使用什么过程来压缩SKMaps.zip文件以在Skobbler驱动的应用程序中使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆