creator 1.4.2 打包在 android 上启动崩溃

  • Creator 版本号:1.4.2
  • 目标平台:<<< 逍遥安卓模拟器 >>>
  • 做了什么操作引起的 Bug:启动报错
  • 手机型号:逍遥安卓模拟器

注意:真手机上可以跑,运行没问题,但是逍遥安卓模拟器上报错,关键错误行:

08-08 17:12:29.582 19608-19643/com.test.game W/dalvikvm: dvmFindClassByName rejecting ‘org/cocos2dx/lib/Cocos2dxLocalStorage’

08-08 17:12:30.154 19608-19643/com.test.game A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=128), thread 19643 (Thread-896)

================== 以下是所有原日志 ===========================================
08-08 17:12:29.086 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.090 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.090 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.090 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.094 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.102 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.102 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.106 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.106 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.110 19608-19608/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
08-08 17:12:29.110 19608-19608/? D/dalvikvm: Late-enabling CheckJNI
08-08 17:12:29.138 19608-19608/? D/dalvikvm: Trying to load lib /data/app-lib/com.test.game-1/libcocos2djs.so 0xa4f46a80
08-08 17:12:29.150 19608-19608/? D/dalvikvm: Added shared lib /data/app-lib/com.test.game-1/libcocos2djs.so 0xa4f46a80
08-08 17:12:29.150 19608-19608/? D/JniHelper: JniHelper::setJavaVM(0xb7c29730), pthread_self() = -1217400768
08-08 17:12:29.150 19608-19608/? D/main: cocos_android_app_init
08-08 17:12:29.150 19608-19608/? D/Cocos2dxHelper: isSupportLowLatency:false
08-08 17:12:29.162 19608-19608/? D/Cocos2dxHelper: sampleRate: 44100, framesPerBuffer: 512
08-08 17:12:29.162 19608-19608/? D/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp: nativeSetAudioDeviceInfo: sampleRate: 44100, bufferSizeInFrames: 512
08-08 17:12:29.174 19608-19608/? D/dalvikvm: Trying to load lib /data/app-lib/com.test.game-1/libopustool.so 0xa4f46a80
08-08 17:12:29.174 19608-19608/? D/dalvikvm: Added shared lib /data/app-lib/com.test.game-1/libopustool.so 0xa4f46a80
08-08 17:12:29.174 19608-19608/? D/dalvikvm: No JNI_OnLoad found in /data/app-lib/com.test.game-1/libopustool.so 0xa4f46a80, skipping init
08-08 17:12:29.174 19608-19608/? D/top.oply.opuslib.OpusTool: loaded library
08-08 17:12:29.174 19608-19608/? I/JAVA: onCreateView
08-08 17:12:29.174 19608-19608/? D/Cocos2dxActivity: model=GT-P5210
08-08 17:12:29.174 19608-19608/? D/Cocos2dxActivity: product=GT-P5210
08-08 17:12:29.174 19608-19608/? D/Cocos2dxActivity: isEmulator=false
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: AgentManager: loadALLPlugin(), Get the supported plugins: NULL
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin UserDebug is : com/anysdk/framework/UserDebug
08-08 17:12:29.182 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/UserDebug----
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/UserDebug:32
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(UserDebug,32)
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin IAPDebug is : com/anysdk/framework/IAPDebug
08-08 17:12:29.182 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/IAPDebug----
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: IAPDebug: payResult : 5 msg : init success
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/IAPDebug:8
08-08 17:12:29.182 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(IAPDebug,8)
08-08 17:12:29.182 19608-19643/? D/FLQG_LOG: Statistics: onActionResult(IAPDebug,5,init success)
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: IAPDebug: getPluginId() invoked!
08-08 17:12:29.186 19608-19643/? W/FLQG_LOG: IAPObject: Listener of plugin IAPDebug not set correctly
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin AnalyticsDebug is : com/anysdk/framework/AnalyticsDebug
08-08 17:12:29.186 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AnalyticsDebug----
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AnalyticsDebug:1
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(AnalyticsDebug,1)
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin AdsDebug is : com/anysdk/framework/AdsDebug
08-08 17:12:29.186 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AdsDebug----
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AdsDebug:16
08-08 17:12:29.186 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(AdsDebug,16)
08-08 17:12:29.194 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin ShareDebug is : com/anysdk/framework/ShareDebug
08-08 17:12:29.194 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/ShareDebug----
08-08 17:12:29.194 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/ShareDebug:2
08-08 17:12:29.194 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(ShareDebug,2)
08-08 17:12:29.194 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin SocialDebug is : com/anysdk/framework/SocialDebug
08-08 17:12:29.194 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/SocialDebug----
08-08 17:12:29.194 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/SocialDebug:4
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(SocialDebug,4)
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin PushDebug is : com/anysdk/framework/PushDebug
08-08 17:12:29.198 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/PushDebug----
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/PushDebug:64
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(PushDebug,64)
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin CrashDebug is : com/anysdk/framework/CrashDebug
08-08 17:12:29.198 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/CrashDebug----
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: CrashDebug: configDeveloperInfo({})invoked!
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/CrashDebug:128
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(CrashDebug,128)
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin CustomDebug is : com/anysdk/framework/CustomDebug
08-08 17:12:29.198 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/CustomDebug----
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/CustomDebug:256
08-08 17:12:29.198 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(CustomDebug,256)
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin RECDebug is : com/anysdk/framework/RECDebug
08-08 17:12:29.202 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/RECDebug----
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/RECDebug:512
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(RECDebug,512)
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: PluginFactory: Java class name of plugin AdTrackingDebug is : com/anysdk/framework/AdTrackingDebug
08-08 17:12:29.202 19608-19608/? I/FLQG_LOG: PluginWrapper: class name : ----com/anysdk/framework/AdTrackingDebug----
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: PluginFactory: java class com/anysdk/framework/AdTrackingDebug:1024
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: Statistics: createPlugin(AdTrackingDebug,1024)
08-08 17:12:29.202 19608-19608/? D/FLQG_LOG: Statistics: initInfo
08-08 17:12:29.214 19608-19608/? D/MicroMsg.PaySdk.WXFactory: createWXAPI, appId = wxbce7ba8c79a1011b, checkSignature = false
08-08 17:12:29.214 19608-19608/? D/MicroMsg.SDK.WXApiImplV10: , appId = wxbce7ba8c79a1011b, checkSignature = false
08-08 17:12:29.214 19608-19608/? D/MicroMsg.SDK.WXMsgImplComm: ignore wechat app signature validation
08-08 17:12:29.214 19608-19608/? D/MicroMsg.SDK.WXApiImplV10: registerApp, appId = wxbce7ba8c79a1011b
08-08 17:12:29.218 19608-19608/? D/MicroMsg.SDK.WXApiImplV10: registerApp, appId = wxbce7ba8c79a1011b
08-08 17:12:29.218 19608-19608/? D/MicroMsg.SDK.WXApiImplV10: register app com.test.game
08-08 17:12:29.218 19608-19632/? D/dalvikvm: GC_CONCURRENT freed 273K, 11% free 2877K/3212K, paused 0ms+0ms, total 3ms
08-08 17:12:29.222 19608-19608/? D/MicroMsg.SDK.MMessage: send mm message, intent=Intent { act=com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER (has extras) }, perm=com.tencent.mm.permission.MM_MESSAGE
08-08 17:12:29.222 19608-19608/? I/JAVA: onCreate
08-08 17:12:29.222 19608-19608/? I/JAVA: read intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.test.game/org.cocos2dx.javascript.AppActivity bnds=[295,338][425,593] }
08-08 17:12:29.222 19608-19608/? I/JAVA: read scheme:null
08-08 17:12:29.222 19608-19608/? I/JAVA: read scheme-url:null
08-08 17:12:29.222 19608-19608/? I/JAVA: onStart
08-08 17:12:29.222 19608-19608/? I/JAVA: onResume
08-08 17:12:29.222 19608-19608/? D/Cocos2dxActivity: onResume()
08-08 17:12:29.222 19608-19608/? V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb: org.cocos2dx.javascript.AppActivity onActivityResumed
08-08 17:12:29.246 19608-19645/? I/MID: read mid from InternalStorage
08-08 17:12:29.246 19608-19645/? I/MID: read mid from InternalStorage:xjgC8TAYnEIy2ROI05tA43WSIY1ttTiyUj9avlaF2PBqdko93+GP0bxvSiTtXTRCT1s7lrJGSl9pRXJM+F7XZgIKjLkt7ciURry1Sn3yse519qATJ9oxVENj8nJPR04hNxt90aeTwepcZltqwEaDMDerNFXu

            [ 08-08 17:12:29.250 19608:19645 D/         ]
            Searching package installed with ABI2 with Uid: 10057 

08-08 17:12:29.262 19608-19608/? D/libEGL: loaded /system/lib/egl/libEGL_adreno.so

             [ 08-08 17:12:29.262 19608:19608 D/         ]
             HostConnection::get() New Host Connection established 0xb7e41a80, tid 19608

08-08 17:12:29.274 19608-19608/? D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno.so
08-08 17:12:29.274 19608-19608/? D/libEGL: loaded /system/lib/egl/libGLESv2_adreno.so
08-08 17:12:29.286 19608-19632/? D/dalvikvm: GC_CONCURRENT freed 244K, 10% free 3023K/3332K, paused 2ms+1ms, total 5ms
08-08 17:12:29.338 19608-19608/? W/EGL_adreno: eglSurfaceAttrib not implemented
08-08 17:12:29.338 19608-19608/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
08-08 17:12:29.338 19608-19608/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
08-08 17:12:29.338 19608-19608/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
08-08 17:12:29.338 19608-19608/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
08-08 17:12:29.338 19608-19608/? D/OpenGLRenderer: Enabling debug mode 0
08-08 17:12:29.482 19608-19643/com.test.game D/cocos2d-x: {
gl.supports_OES_packed_depth_stencil: true
gl.supports_vertex_array_object: false
gl.supports_BGRA8888: false
cocos2d.x.version: 1.4.1
gl.supports_discard_framebuffer: false
cocos2d.x.compiled_with_profiler: false
gl.supports_PVRTC: false
cocos2d.x.build_type: DEBUG
gl.renderer: Adreno ™ 510
gl.supports_OES_depth24: true
gl.supports_ETC1: true
gl.supports_OES_map_buffer: false
cocos2d.x.compiled_with_gl_state_cache: true
gl.version: OpenGL ES 2.0 build 1.3@2768895
gl.supports_NPOT: true
gl.max_texture_units: 16
gl.vendor: Qualcomm
gl.max_texture_size: 16384
}
08-08 17:12:29.482 19608-19643/com.test.game E/cocos2d-x: cocos2d: warning, Director::setProjection() failed because size is 0
08-08 17:12:29.542 19608-19643/com.test.game D/cocos2d-x: cocos2d: fullPathForFilename: No file found at script/jsb_prepare.js. Possible missing file.
08-08 17:12:29.582 19608-19643/com.test.game W/dalvikvm: dvmFindClassByName rejecting ‘org/cocos2dx/lib/Cocos2dxLocalStorage’
08-08 17:12:29.622 19608-19608/com.test.game D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
08-08 17:12:29.638 19608-19643/com.test.game D/cocos2d-x: cocos2d: fullPathForFilename: No file found at script/jsb_boot.js. Possible missing file.
08-08 17:12:29.658 19608-19643/com.test.game D/cocos2d: android SDK version:19
08-08 17:12:29.738 19608-19643/com.test.game D/cocos2d-x?debug?info: Cocos2d-JS v3.14
08-08 17:12:29.990 19608-19643/com.test.game D/cocos2d-x: create rendererRecreatedListener for GLProgramState
08-08 17:12:30.022 19608-19608/com.test.game V/MicroMsg.SDK.WXApiImplV10.ActivityLifecycleCb: WXStat trigger onForeground
08-08 17:12:30.154 19608-19643/com.test.game D/cocos2d-x?debug?info: Success to load scene: db://assets/resources/scene/login/login.fire
08-08 17:12:30.154 19608-19643/com.test.game A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=128), thread 19643 (Thread-896)
08-08 17:12:30.202 19608-19608/com.test.game D/FLQG_LOG: CustomDebug: CustomResult result : 80000 msg : CUSTOMRESULT_CUSTOMREXTENSION

这里看不出来错误的原因,rejecting localstorage 应该不至于导致崩溃,后面 libc 的崩溃信息就不清楚与什么相关了。

再重申一下,目前我们没有资源支持各种安卓模拟器,这种级别的兼容性支持需要的人力我们承受不起,所以只能靠大家自己解决了,毕竟源码都有

哦哦,谢谢panda

你好,请问下现在cocos引擎在跑模拟器(雷电模拟器)的时候会崩溃,这个问题现在有解决方案吗?