(I submitted this to Stack Overflow, but I’m posting it here as it is Unity specific)
A while ago, I published a game for android (made in unity in C#). However, I’ve been getting many complaints of crashes, and recently I’ve experienced these crashes myself. I’m using
adb logcat
to read the logs from the app and the system to try to figure out the cause but it always crashes at a random times; when loading, in the middle of the game, and in the main menu. I’ve also tried it on a friend’s S7 Edge and it works fine. It’s not laggy at all on all devices I’ve tested it, so I know it’s not a memory leak or excessive CPU usage.
I don’t know what data to share to receive help, so I’ll just supply any info that is needed. Link to the app if it is useful: Google Play
Weird little detail: For a while it crashed at start, but then started working again when I added this line of code (which shouldn’t alter code as it just prints a string to the console)
Debug.Log("Sending Analytic Data");