【问题标题】:Unity Game Crashes on StartupUnity 游戏在启动时崩溃
【发布时间】:2018-04-14 01:53:19
【问题描述】:

我正在开发一个项目,该项目将在 Unity for Android 中创建游戏,但在此过程中,我遇到了这个困扰我很久的问题。 问题是,如果我在模拟器或更体面的设备中启动应用程序/游戏,它工作得很好,但是当我在“ZTE BLADE L3”手机上尝试它时,它会在启动后立即崩溃。 我注册了一些日志(按错误过滤),得到了一些我不理解的数据,如果你们中的一个人能帮我找出问题所在,那就太好了。 我已经尝试了 Unity Docs 在link 中发布的所有内容,但没有任何效果。

--------- beginning of system
--------- beginning of main
E/ctxmgr  (16988): [BaseServerTask]Failed network request due to no network connectivity:
E/ctxmgr  (16988): [AccountAclCallback]Failed Acl fetch: network status=1
E/MPlugin (16988): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
E/ctxmgr  (16988): [BaseServerTask]Failed network request due to no network connectivity:
E/ctxmgr  (16988): [AccountAclCallback]Failed Acl fetch: network status=1
E/MPlugin (19785): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
E/[DRVB][EXT][UTIL](19785): disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (2/0x47/0x48/0x46)
E/[DRVB][EXT][UTIL](19785): disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (480/854/1)
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/Unity   (19785): [EGL] eglChooseConfig(m_EGLDisplay, configAttribs, NULL, 0, &eglConfigCount): EGL_BAD_ATTRIBUTE: An unrecognized attribute or attribute value was passed in the attribute list.
E/Unity   (19785): Stacktrace is not supported on this platform.
E/Unity   (19785): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/ConfigEGL.cpp Line: 376)
E/Unity   (19785):
E/lowmemorykiller(  138): Error opening /proc/19448/oom_score_adj; errno=2
E/InputDispatcher(  661): channel 'f626dc5 com.pfeHY.pfeGame/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/Launcher3(19884): MTKUnreadLoader, initUnreadNumberFromSystem SettingNotFoundException key = com_android_rcse_mtk_unread, e = com_android_rcse_mtk_unread
E/Launcher3(19884): MTKUnreadLoader, initUnreadNumberFromSystem SettingNotFoundException key = com_mediatek_cellbroadcastreceiver_mtk_unread, e = com_mediatek_cellbroadcastreceiver_mtk_unread
E/[DRVB][EXT][UTIL](19884): disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (2/0x47/0x48/0x46)
E/[DRVB][EXT][UTIL](19884): disp_only_chk: DRVB CHECK DISP PROCESS DONE ! (480/854/1)
E/        (  228): AudioCloseDumpPCMFile file== NULL
E/        (  228): AudioCloseDumpPCMFile file== NULL
E/        (  228): AudioCloseDumpPCMFile file== NULL
E/        (  228): AudioCloseDumpPCMFile file== NULL
E/MPlugin (19956): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
E/MPlugin (19907): Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport

关于主题的更多信息: 应用程序最低 API 级别:Android 4.4 'Kit Kat' (API lvl 19) 我的设备的 API 级别:Android 5.0.2 'Lollipop' (API lvl 21)

我导入了几个粒子效果包,它们可能隐藏了某种插件,也许这就是导致问题的原因。我真的不知道。我只是在做假设。

任何帮助将不胜感激..谢谢。

【问题讨论】:

    标签: android debugging unity3d adb


    【解决方案1】:

    好吧,我通过删除用于某些效果的粒子包解决了这个问题。一旦我删除了这个包,应用程序就正常启动了,但我仍然有一些性能问题,但可以通过一些分析来解决。

    【讨论】:

      猜你喜欢
      • 2019-03-26
      • 2014-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多