Unity Issue Tracker - Crash in Player due to an overflow of global references to android.view.MotionEvent
Fixed
UUM-8438
Crash in Player due to an overflow of global references to android.view.MotionEvent
Unity: Android
Android
Fixed
2022.1.X
2021.3.X
2020.3.X
2020.3.35f1 onwards
Android: Fix overflow of MotionEvent global references
Reproduction steps:
1. Download and open the attached project: "CrashTest.zip"
2. Connect an Android device to your system
3. Go to Window > Analysis > Android Logcat
4. Build and Run the project to the Android device
5. Click the screen a few thousand times
Expected result: The counter increases indefinitely
Actual result: After a varying amount of clicks (4000-10000) the project crashes and the android.view.MotionEvent related error can be seen in the Android Logcat window
It was reported by the users that the issue does not occur in 2020.3.34f1
After 25000 clicks when built with Unity 2023.1.0a2, the crash did not occur
Due to the nature of the issue, reproduction and testing on multiple devices and Unity versions would be a very lengthy process thus testing was limited to the 2020.3 stream
Prioritise and Follow this issue
Have a workaround or additional info about this issue?