Puzzled with crash - Do you recognize this stack trace?
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?
Answer by unclejey34 · Dec 16, 2021 at 12:08 PM
Having same error. Think it notification plugin https://forum.unity.com/threads/error-in-notification-plugin.1212768/
Your answer
Follow this Question
Related Questions
Write on Player Prefs from Unity and read Shared Preferences from Android returns wrong value 1 Answer
Android App Crashes Randomly 0 Answers
“activityStartTrigger: not whiteListed” on android builds 1 Answer
Resources.Load crash Android 0 Answers
Unity compilation error even when VS compiles fine 0 Answers