使用Genymotion时出现了闪退的情况.

发布于 2022-09-07 21:18:42 字数 11358 浏览 23 评论 0

Genymotion配置的虚拟机:Google Pixel2 - 8.0 - API 26
问题:程序闪退.
说明:软件本身没有问题,但是在Genymotion上启动时出现闪退.
以下为运行日志:

08-21 14:54:17.065 2202-2202/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
08-21 14:54:17.080 2202-2209/? E/zygote: Failed sending reply to debugger: Broken pipe
08-21 14:54:17.080 2202-2209/? I/zygote: Debugger is no longer active
08-21 14:54:17.247 2202-2225/? I/vndksupport: sphal namespace is not configured for this process. Loading /system/lib/egl/libGLES_emulation.so from the current namespace instead.
    sphal namespace is not configured for this process. Loading /system/lib/egl/libEGL_emulation.so from the current namespace instead.
08-21 14:54:17.253 2202-2225/? I/vndksupport: sphal namespace is not configured for this process. Loading /system/lib/egl/libGLESv1_CM_emulation.so from the current namespace instead.
08-21 14:54:17.271 2202-2225/? I/vndksupport: sphal namespace is not configured for this process. Loading /system/lib/egl/libGLESv2_emulation.so from the current namespace instead.
08-21 14:54:17.278 2202-2226/? D/OpenGLRenderer: HWUI GL Pipeline
08-21 14:54:17.344 2202-2202/? E/0: ==============Java流程 checkApkUpdate
08-21 14:54:17.346 2202-2202/? D/MicroMsg.PaySdk.WXFactory: createWXAPI, appId = wxbcc5f71dfd993d5c, checkSignature = true
08-21 14:54:17.347 2202-2202/? D/MicroMsg.SDK.WXApiImplV10: <init>, appId = wxbcc5f71dfd993d5c, checkSignature = true
08-21 14:54:17.350 2202-2228/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
    Process pipe failed
08-21 14:54:17.379 2202-2226/? I/OpenGLRenderer: Initialized EGL, version 1.4
08-21 14:54:17.379 2202-2226/? D/OpenGLRenderer: Swap behavior 1
08-21 14:54:17.389 2202-2226/? D/EGL_emulation: eglCreateContext: 0xed4651c0: maj 2 min 0 rcv 2
08-21 14:54:17.440 2202-2226/? E/EGL_emulation: tid 2226: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
08-21 14:54:17.440 2202-2226/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xdd87fc80, error=EGL_BAD_MATCH
08-21 14:54:17.517 2202-2226/? E/EGL_emulation: tid 2226: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
08-21 14:54:17.517 2202-2226/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xdd87fde0, error=EGL_BAD_MATCH
08-21 14:54:17.543 2202-2228/? I/page: <update>
      <versionCode>1</versionCode>
      <name>majsoul</name>
      <version>0.1</version>
      <url>http://www.majsoul.com/app/android/majsoul_0_1.apk</url>
    </update>
08-21 14:54:17.543 2202-2228/? I/System.out: <update>
      <versionCode>1</versionCode>
      <name>majsoul</name>
      <version>0.1</version>
      <url>http://www.majsoul.com/app/android/majsoul_0_1.apk</url>
    </update>
    page
08-21 14:54:17.715 2202-2202/? E/LayaGameEngine: game_plugin_set_option key=localize value=false
    game_plugin_set_option key=gameUrl value=http://www.majsoul.com/app/web/html/index.html
08-21 14:54:17.715 2202-2202/? D/LayaGameEngine: game_plugin_init url =http://www.majsoul.com/app/web/html/index.html
    url=http://www.majsoul.com/app/web/html/index.html
08-21 14:54:17.715 2202-2202/? D/RuntimeProxy: laya_get_value key=CacheDirInSdcard
    laya_get_value key=CacheDir
    laya_get_value key=ExpansionMainPath
    laya_get_value key=ExpansionPatchPath
08-21 14:54:17.715 2202-2202/? I/layaConch3: m_interceptKey OK!
08-21 14:54:17.715 2202-2202/? E/LayaConch5: >>>>>>>conchjar android-2.0.8
08-21 14:54:17.716 2202-2202/? E/LayaConch5: plugin-----------------onCreate() 
08-21 14:54:17.720 2202-2202/? I/LayaBox: setLocalizable:0
    JNI setIsPlug:0
    JNI seturl:http://www.majsoul.com/app/web/html/index.html
08-21 14:54:17.720 2202-2202/? E/LayaBox: =======================addStaticMethod=========zzed429230
08-21 14:54:17.720 2202-2202/? D/MarketTest: >>>>>>>>>>>>>>>>MarketLaya init ok
08-21 14:54:17.720 2202-2202/? E/0: ==============Java流程 InitMainCanvas()
08-21 14:54:17.720 2202-2202/? E/LayaConch5: plugin-----------------EngineStart() = /data/user/0/com.catfoodstudio.majsoul//LayaCache/localstorage
08-21 14:54:17.720 2202-2202/? I/LayaBox: JNI localStoragePath=/data/user/0/com.catfoodstudio.majsoul//LayaCache/localstorage
08-21 14:54:17.721 2202-2202/? I/MainCanvas: Android OpenGL ES Major Version 2
08-21 14:54:17.725 2202-2202/? I/WebViewFactory: Loading com.android.webview version 58.0.3029.125 (code 303012510)
08-21 14:54:17.737 2202-2202/? I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 9736-9737)
08-21 14:54:17.743 2202-2202/? I/chromium: [INFO:library_loader_hooks.cc(140)] Chromium logging enabled: level = 0, default verbosity = 0
08-21 14:54:17.743 2202-2202/? I/cr_LibraryLoader: Expected native library version number "58.0.3029.125", actual native library version number "58.0.3029.125"
08-21 14:54:17.750 2202-2238/? W/cr_ChildProcLauncher: Create a new ChildConnectionAllocator with package name = com.android.webview, inSandbox = true
08-21 14:54:17.750 2202-2202/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
08-21 14:54:17.782 2202-2202/? D/EGL_emulation: eglCreateContext: 0xde35be40: maj 2 min 0 rcv 2
08-21 14:54:17.873 2202-2202/? I/layaConch5: m_interceptKey OK!
08-21 14:54:17.874 2202-2202/? I/LayaBox: JNI InitDLib
    JNI InitDownLoadManager CachePath=/data/user/0/com.catfoodstudio.majsoul//LayaCache, assetroot=cache, APKExpansionMain=, APKExpansionPatch= 
    download thread num = 3
08-21 14:54:17.874 2202-2275/? I/LayaBox: start thread:image decode,2275
08-21 14:54:17.889 2202-2202/? I/LayaBox: found the file in the package:shaders/todevVS.glsl
    found the file in the package:shaders/fillColorPS.glsl
    found the file in the package:shaders/drawImagePS.glsl
    found the file in the package:shaders/fillImagePS.glsl
    found the file in the package:shaders/fillImageMatFilterPS.glsl
    found the file in the package:shaders/drawFilterImagePS.glsl
    found the file in the package:shaders/blurImg.glsl
    found the file in the package:shaders/glowImg.glsl
    found the file in the package:shaders/drawMatFilterImagePS.glsl
08-21 14:54:17.890 2202-2202/? I/LayaBox: createOpenALSource current num=10
08-21 14:54:17.890 2202-2202/? E/LayaGameEngine: game_plugin_init soPath= jarfile= appcache=/data/user/0/com.catfoodstudio.majsoul/
    game_plugin_get_view
08-21 14:54:17.899 2202-2279/? D/AudioTrack: Client defaulted notificationFrames to 2565 for frameCount 5130
08-21 14:54:17.902 2202-2279/? W/AudioTrack: Use of stream types is deprecated for operations other than volume control
    See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
    
    --------- beginning of crash
08-21 14:54:17.908 2202-2235/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 164
    Process: com.catfoodstudio.majsoul, PID: 2202
    java.lang.IllegalArgumentException
        at com.google.android.gles_jni.EGLImpl._eglCreateContext(Native Method)
        at com.google.android.gles_jni.EGLImpl.eglCreateContext(EGLImpl.java:54)
        at android.opengl.GLSurfaceView$DefaultContextFactory.createContext(GLSurfaceView.java:796)
        at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1059)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1429)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
08-21 14:54:17.930 2202-2202/? I/0: >>>>>>>>>>>>>The network has changed
    connected type=1
08-21 14:54:17.937 2202-2202/? I/LayaBox: JNI OnAppPause
    JCAudioManager::pauseMp3
08-21 14:54:17.937 2202-2202/? E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:pauseBackgroundMusic
    >>>>>>>>>>>>before
    >>>>>>>>>>>>after
08-21 14:54:18.081 2202-2202/com.catfoodstudio.majsoul I/JDWP: type=1400 audit(0.0:3060): avc: denied { read write } for path="socket:[36679]" dev="sockfs" ino=36679 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
08-21 14:54:18.497 2202-2202/com.catfoodstudio.majsoul I/LayaBox: JNI del engine
    JCAudioManager::stopMp3
08-21 14:54:18.497 2202-2202/com.catfoodstudio.majsoul E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:stopBackgroundMusic
    >>>>>>>>>>>>before
08-21 14:54:18.498 2202-2202/com.catfoodstudio.majsoul E/LayaBox: >>>>>>>>>>>>after
08-21 14:54:18.498 2202-2202/com.catfoodstudio.majsoul I/LayaBox: JNI exit need a little wait
08-21 14:54:19.529 2202-2202/com.catfoodstudio.majsoul I/LayaBox: JNI App in background!
    render will exit
    render will exit
08-21 14:54:19.529 2202-2275/com.catfoodstudio.majsoul I/LayaBox: thread end:,2275
08-21 14:54:19.529 2202-2202/com.catfoodstudio.majsoul I/LayaBox: stopCurTask end stopnum=0
08-21 14:54:19.529 2202-2276/com.catfoodstudio.majsoul I/LayaBox: thread end:download thread,2276
08-21 14:54:19.529 2202-2277/com.catfoodstudio.majsoul I/LayaBox: thread end:download thread,2277
08-21 14:54:19.530 2202-2278/com.catfoodstudio.majsoul I/LayaBox: thread end:download thread,2278
08-21 14:54:19.530 2202-2202/com.catfoodstudio.majsoul E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
08-21 14:54:19.551 2202-2202/com.catfoodstudio.majsoul E/WindowManager: android.view.WindowLeaked: Activity demo.MainActivity has leaked window DecorView@cf81cbe[] that was originally added here
        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:485)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:92)
        at android.app.Dialog.show(Dialog.java:330)
        at demo.SplashDialog.showSplash(SplashDialog.java:98)
        at demo.MainActivity.onCreate(MainActivity.java:59)
        at android.app.Activity.performCreate(Activity.java:6975)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

此外,我使用AVD配置了虚拟机 Google Pixel2 - 8.0 - API 26,使用软件没有闪退.
希望有大佬能指点一下.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文