代码之家  ›  专栏  ›  技术社区  ›  TheOliveTurtle

Unity游戏启动时崩溃

  •  1
  • TheOliveTurtle  · 技术社区  · 8 年前

    我正在从事一个项目,该项目将在Android的Unity中创建一个游戏,但在这个过程中,我遇到了这个困扰我很久的问题。 问题是,如果我在模拟器或更像样的设备上启动应用程序/游戏,效果会很好,但当我在我的手机“中兴刀片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 19级) 我的设备的API级别:Android 5.0.2“棒棒糖”(API等级21)

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

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

    1 回复  |  直到 8 年前
        1
  •  0
  •   TheOliveTurtle    8 年前

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