Hello, i’m puzzled with a crash bug that was introduced to our app recently. My first guess was that it was due to storing too many and too long strings to PlayerPrefs and changed that, but we still see many of these.
Samsung Galaxy Tab A 9.7 (gt510wifi), 1536MB RAM, Android 7.1
java.lang.Error: FATAL EXCEPTION [SharedPreferencesImpl-load]
Unity version : 5.6.0p3
Device model : samsung SM-T550
Caused by
at java.lang.StringBuilder.toString (StringBuilder.java:408)
at com.android.internal.util.XmlUtils.readThisValueXml (XmlUtils.java:1370)
at com.android.internal.util.XmlUtils.readThisMapXml (XmlUtils.java:830)
at com.android.internal.util.XmlUtils.readThisValueXml (XmlUtils.java:1409)
at com.android.internal.util.XmlUtils.readValueXml (XmlUtils.java:1330)
at com.android.internal.util.XmlUtils.readMapXml (XmlUtils.java:740)
at android.app.SharedPreferencesImpl.loadFromDisk (SharedPreferencesImpl.java:120)
at android.app.SharedPreferencesImpl.-wrap1 (SharedPreferencesImpl.java)
at android.app.SharedPreferencesImpl$1.run (SharedPreferencesImpl.java:90)
I’m not aware of any of our changes that would call these functions directly, so my guess is that they’re called by some Unity internals. It seems to be rather systematic on certain devices. Unfortunately i don’t have any of them at hand to test and i’ve been unable to reproduce this. Do you recognize this stacktrace and what could possibly cause this?