用jsb.downloader下载包,会出现崩溃的情况

  • Creator 版本:1.9.3

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:
    I/hwaps: JNI_OnLoad
    W/Settings: mValues not put! needsGenerationTracker: true currentGeneration: -1 name: enable_navbar value: 1
    D/jswrapper: JS: popUpTipConfirm closeAnim_scale
    D/cocos2d-x: find in flash memory dirPath(/data/user/0/com.lywx.guandan/files/game-remote-asset)
    I/chatty: uid=10373(u0_a373) GLThread 145 identical 1 line
    D/cocos2d-x: find in flash memory dirPath(/data/user/0/com.lywx.guandan/files/game-remote-asset)
    W/com.lywx.guandan: type=1400 audit(0.0:4887): avc: denied { read } for comm=474C54687265616420313435 name="/" dev=“rootfs” ino=2 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
    I/chatty: uid=10373(u0_a373) GLThread 145 expire 1 line
    D/cocos2d-x: find in flash memory dirPath(/data/user/0/com.lywx.guandan/files/game-remote-asset)
    I/native-activity: http_Respond —m_length = 12
    I/native-activity: CStreamSpeechParamReq http_Respond
    I/zygote: Do partial code cache collection, code=21KB, data=29KB
    After code cache collection, code=21KB, data=29KB
    Increasing code cache capacity to 128KB
    I/native-activity: basic_socket Execute exit — this:0xc0e75c80 ptid:0xba687970 sock fd:124 port:443
    close _socket 124
    D/jswrapper: XMLHttpRequest_finalize, 0xc1ce5e00 …
    A/libc: D:/CocosCreator_1.9/resources/cocos2d-x/cocos/scripting/js-bindings/proj.android/…/jswrapper/Value.cpp:538: se::Object* se::Value::toObject() const: assertion “isObject()” failed
    A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 11277 (GLThread 145)
    V/AsyncHttpRH: Request got cancelled
    Application terminated.

  • 出现概率:50%

大佬们看下这个问题,我们目前强更新下载包是用到jsb.Downloader,下载中经常出现崩溃的情况

我自己找到了出现崩溃情况所在的位置了,尽然会走到我打印的这一句,jsFunc下载了一段时间,被清掉了?

只能先特殊处理下了,不知道引擎的大佬们有什么好的解决方案?