java.lang.IllegalArgumentException: averageBytesPerChar is greater than maxBytesPerChar

Salesforce | Manas Prasher | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Getting this crash on my crash reporting tool

    Salesforce | 4 months ago | Manas Prasher
    java.lang.IllegalArgumentException: averageBytesPerChar is greater than maxBytesPerChar

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      averageBytesPerChar is greater than maxBytesPerChar

      at java.nio.charset.CharsetEncoder.<init>()
    2. Java RT
      CharsetICU.newEncoder
      1. java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java)
      2. java.nio.charset.CharsetEncoderICU.<init>(CharsetEncoderICU.java)
      3. java.nio.charset.CharsetEncoderICU.newInstance(CharsetEncoderICU.java:74)
      4. java.nio.charset.CharsetICU.newEncoder(CharsetICU.java:27)
      4 frames
    3. Android Platform
      SharedPreferencesImpl$EditorImpl.commit
      1. com.android.internal.util.FastXmlSerializer.setOutput(FastXmlSerializer.java:313)
      2. com.android.internal.util.XmlUtils.writeMapXml(XmlUtils.java:184)
      3. android.app.SharedPreferencesImpl.writeToFile(SharedPreferencesImpl.java:597)
      4. android.app.SharedPreferencesImpl.access$800(SharedPreferencesImpl.java:51)
      5. android.app.SharedPreferencesImpl$2.run(SharedPreferencesImpl.java:512)
      6. android.app.SharedPreferencesImpl.enqueueDiskWrite(SharedPreferencesImpl.java:533)
      7. android.app.SharedPreferencesImpl.access$100(SharedPreferencesImpl.java:51)
      8. android.app.SharedPreferencesImpl$EditorImpl.commit(SharedPreferencesImpl.java:455)
      8 frames
    4. com.exacttarget.etpushsdk
      e.run
      1. com.exacttarget.etpushsdk.util.a.a(SourceFile:35)
      2. com.exacttarget.etpushsdk.util.e.run(SourceFile:348)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:818)
      1 frame