Unity游戏在启动时崩溃

时间:2018-04-06 14:52:31

标签: android debugging unity3d adb

我正在开发一个项目,它将在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)

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

任何帮助都将非常感谢..谢谢。

1 个答案:

答案 0 :(得分:0)

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