简体   繁体   English

在某些 Android 设备上加载主场景时游戏崩溃

[英]Game Crashing When Loading Main Scene On Some Android Devices

Hey guys I'm in desperate need of help with this problem.嘿伙计们,我迫切需要解决这个问题的帮助。 We have an game built and released to the Google Play Store.我们制作了一款游戏并发布到了 Google Play 商店。 The game runs perfectly fine on my phone and many others.游戏在我的手机和许多其他设备上运行得非常好。 The issue is that the game crashes when loading our main scene only on a minority percentage of Android devices.问题是,当仅在少数 Android 设备上加载我们的主场景时,游戏会崩溃。 This is still big a problem though.不过,这仍然是个大问题。

Some devices that have the problems:一些有问题的设备:

  • Samsung Galaxy A20三星盖乐世 A20
  • Samsung Galaxy A32三星盖乐世 A32
  • Oppo A53s OPPO A53s
  • Motorola moto e摩托罗拉摩托
  • Redmi 9红米9
  • Samsung Galaxy A02s三星 Galaxy A02s
  • Samsung Galaxy A11三星盖乐世 A11

There is some info we've gathered that makes this even more confusing:我们收集的一些信息使这更加令人困惑:

  • The logcat does not show any major error when crashing. logcat 在崩溃时没有显示任何重大错误。
  • We added Debug.Log and Try Catch to Awake of all manager scripts We also made the player manager first in Unity's Script Execution Order These logs and Try Catch are not showing in the logcat (Scripts not even being executed?)我们添加了 Debug.Log 和 Try Catch 以唤醒所有管理器脚本 我们还在 Unity 的脚本执行顺序中将播放器管理器放在首位 这些日志和 Try Catch 没有显示在 logcat 中(脚本甚至没有被执行?)
  • The game does not crash when only the player manager object is in the scene When we add EITHER the enemy manager OR the UI Manager the game will crash Both of these managers will draw something on the screen whereas the player manager does not show anything on the screen.当只有玩家管理器 object 在场景中时,游戏不会崩溃当我们添加敌人管理器或 UI 管理器时,游戏将崩溃这两个管理器都会在屏幕上绘制一些东西,而玩家管理器不会在屏幕上显示任何东西屏幕。 (Is it an issue with graphics settings?) (是图形设置的问题吗?)

We tried removing most third party SDKs but it still crashed我们尝试删除大多数第三方 SDK,但它仍然崩溃

  • Facebook SDK Facebook SDK
  • Firebase SDK Firebase SDK
  • Unity Mediation Beta Unity 中介测试版
  • We have a loading scene that does not crash我们有一个不会崩溃的加载场景

Other relevant info:其他相关信息:

  • Unity 2021.2.13f团结 2021.2.13f
  • We tried a couple other Unity version but it still crashed.我们尝试了其他几个 Unity 版本,但它仍然崩溃。
  • Target API level 30目标API 30级

I'll keep adding more info the post once we gain more.一旦我们获得更多信息,我将继续在帖子中添加更多信息。 If anyone has any ideas or has experienced something like this then I would really appreciate the help.如果有人有任何想法或经历过类似的事情,那么我将非常感谢您的帮助。 Thank you in advance!先感谢您!

I have tested your app and I think this will be useful for you.我已经测试了您的应用程序,我认为这对您很有用。 PAY ATTENTION to注意

>>> com.HappyHedgehog.IdleBounceHeroes <<<
uid: 11015
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), 
fault addr 0x60
Cause: null pointer dereference

Part of the error.部分错误。 I think It can't get access to something or gets null.我认为它无法访问某些东西或获取 null。

Full error message:完整的错误信息:

java.lang.Error: FATAL EXCEPTION [main] Unity version: 2021.2.13f1 Device model: Xiaomi Redmi S2 Device fingerprint: xiaomi/ysl/ysl:8.1.0/OPM1.171019.011/V10.3.1.0.OEFMIXM:user/release-keys Build Type: Release Scripting Backend: IL2CPP ABI: armeabi-v7a Strip Engine Code: true java.lang.Error: FATAL EXCEPTION [main] Unity version: 2021.2.13f1 Device model: Xiaomi Redmi S2 Device fingerprint: xiaomi/ysl/ysl:8.1.0/OPM1.171019.011/V10.3.1.0.OEFMIXM:user/ release-keys 构建类型:发布脚本后端:IL2CPP ABI:armeabi-v7a 剥离引擎代码:true

Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Version '2021.2.13f1 (90b6766da538)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a' Build fingerprint: 'xiaomi/ysl/ysl:8.1.0/OPM1.171019.011/V10.3.1.0.OEFMIXM:user/release-keys' Revision: '0' ABI: 'arm' Timestamp: 2022-08-08 13:57:24+0500 pid: 28532, tid: 28604, name: UnityGfxDeviceW >>> com.HappyHedgehog.IdleBounceHeroes <<< uid: 11015 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x60 Cause: null pointer dereference r0 00000048 r1 00000000 r2 00000008 r3 40000000 r4 82386020 r5 01900100 r6 00000002 r7 80ed8c60 r8 00000001 r9 00000000 r10 00000000 r11 82379668 ip a4fa3d5c sp 77f3e4c8 lr 8a21e108 pc 8a21e108引起:java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** ** * *** *** 版本 '2021.2.13f1 (90b6766da538)',构建类型 'Release',脚本后端 'il2cpp',CPU 'armeabi-v7a' 构建指纹:'xiaomi/ysl/ysl:8.1.0/OPM1 .171019.011/V10.3.1.0.OEFMIXM:user/release-keys' Revision: '0' ABI: 'arm' 时间戳: 2022-08-08 13:57:24+0500 pid: 28532, tid: 28604, name : UnityGfxDeviceW >>> com.HappyHedgehog.IdleBounceHeroes <<< uid: 11015 signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x60 Cause: null pointer dereference r0 00000048 r1 00000000 r2 00000008 r3 40000000 r4 82386020 r5 01900100 r6 00000002 r7 80ed8c60 r8 00000001 r9 00000000 r10 00000000 r11 82379668 ip a4fa3d5c sp 77f3e4c8 lr 8a21e108 pc 882

backtrace: #00 pc 007d8108 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #01 pc 007d6cd8 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #02 pc 007d7c80 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #03 pc 007d7858 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #04 pc 00590ad0 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #05 pc 00536278 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #06 pc 0010c7f5 /data/app/com.HappyHedgeh backtrace: #00 pc 007d8108 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #01 pc 007d6cd8 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q= =/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #02 pc 007d7c80 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #03 pc 007d7858 / data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #04 pc 00590ad0 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity .so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #05 pc 00536278 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #06 pc 0010c7f5 /data/app/com.HappyHedgeh og.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #07 pc 00126821 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #08 pc 00126925 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #09 pc 004e981c /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #10 pc 00634097 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #11 pc 00634d7f /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #12 pc 0062e4a7 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm og.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #07 pc 00126821 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a ) #08 pc 00126925 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #09 pc 004e981c /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q== /lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #10 pc 00634097 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #11 pc 00634d7f /data /app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #12 pc 0062e4a7 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm /libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #13 pc 001baa23 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #14 pc 00047a1f /system/lib/libc.so (__pthread_start(void*)+22) (BuildId: 455f9e023a86fc21ca8f19f464f56db2) #15 pc 0001b31d /system/lib/libc.so (__start_thread+32) (BuildId: 455f9e023a86fc21ca8f19f464f56db2) /libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #13 pc 001baa23 /data/app/com.HappyHedgehog.IdleBounceHeroes-Zj0Q3i8jZbOmRJDrVblF9Q==/lib/arm/libunity.so (BuildId: cf27a02556a0eed15af1ae5beb2cbe0adf18284a) #14 pc 00047a1f /system/lib/libc .so (__pthread_start(void*)+22) (BuildId: 455f9e023a86fc21ca8f19f464f56db2) #15 pc 0001b31d /system/lib/libc.so (__start_thread+32) (BuildId: 455f9e023a86fc21ca8f19f464f56db2)

at libunity.0x7d8108(Native Method)
at libunity.0x7d6cd8(Native Method)
at libunity.0x7d7c80(Native Method)
at libunity.0x7d7858(Native Method)
at libunity.0x590ad0(Native Method)
at libunity.0x536278(Native Method)
at libunity.0x10c7f5(Native Method)
at libunity.0x126821(Native Method)
at libunity.0x126925(Native Method)
at libunity.0x4e981c(Native Method)
at libunity.0x634097(Native Method)
at libunity.0x634d7f(Native Method)
at libunity.0x62e4a7(Native Method)
at libunity.0x1baa23(Native Method)
at libc.__pthread_start(void*)(__pthread_start:22)
at libc.__start_thread(__start_thread:32)

With the help of @YGreater and his crash logs I was able to narrow the issue down to a graphical problem.在@YGreater 和他的崩溃日志的帮助下,我能够将问题缩小到图形问题。 It had to do with how some phones loaded the textures from our game.这与某些手机如何从我们的游戏中加载纹理有关。 Had to rework the way that we loaded some resources and changed some references.不得不重新设计我们加载一些资源并更改一些引用的方式。 It works now!现在可以了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 生物识别提示在某些设备上的 Android 9 和 10 上崩溃 - Biometric Prompt crashing on Android 9 and 10 on some devices 在recyclerview中滚动时,Android应用在诸如Samsung之类的某些设备上崩溃 - Android App crashing on some devices like Samsung when scrolling through recyclerview APP 在 android 台设备上崩溃,使用 unity editor 2020.3.33 LTS 构建的游戏 - APP crashing on android devices, game built with unity editor 2020.3.33 LTS 动画在某些设备上崩溃 - Animations Crashing on some Devices 应用程序在设备上运行时崩溃,进入主要活动时 - App crashing when running on devices, when going to main activity 加载.so文件在某些​​android设备上崩溃 - Loading .so files crashed on some android devices Android 应用程序仅在某些设备中崩溃,其中大部分是华为 - Android App Crashing in some Devices Only, most of them Huawei android: 谷歌地图 8.4.0 版本在某些设备上崩溃 - android: The google maps 8.4.0 version is crashing for some devices 某些GSM设备在Android上因CDMA SignalStrength错误而崩溃 - Some GSM devices crashing with CDMA SignalStrength error on Android Android启动画面仅在某些设备上崩溃 - Android splash screen keeps crashing on some devices only
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM