java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cyanogenmod.filemanager/com.cyanogenmod.filemanager.activities.preferences.SettingsPreferences}: java.util.UnknownFormatConversionException: Conversion:

JIRA | Dmitry Smirnov | 8 months ago
  1. 0

    Hi, The issue I'm reporting is found on a custom build (and a non-officially supported device) but I suppose it can be reproduced on any cm-12.1-based build. Steps to reproduce: Prerequisite: The phone should use Russian language 1. Start File Manager 2. Enter Settings -> General settings (in Russian: "Настройки -> Основные настройки") Result: The app crashes The crash stack: {noformat} 04-18 13:52:47.683 14773 14773 E AndroidRuntime: FATAL EXCEPTION: main 04-18 13:52:47.683 14773 14773 E AndroidRuntime: Process: com.cyanogenmod.filemanager, PID: 14773 04-18 13:52:47.683 14773 14773 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cyanogenmod.filemanager/com.cyanogenmod.filemanager.activities.preferences.SettingsPreferences}: java.util.UnknownFormatConversionException: Conversion: 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:154) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5294) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: Caused by: java.util.UnknownFormatConversionException: Conversion: 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:2315) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseConversionType(Formatter.java:2394) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2365) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2298) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.doFormat(Formatter.java:1071) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:1042) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:1011) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.String.format(String.java:1803) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:436) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment$1.onPreferenceChange(GeneralPreferenceFragment.java:94) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment.onCreate(GeneralPreferenceFragment.java:203) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.Fragment.performCreate(Fragment.java:2031) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.BackStackRecord.run(BackStackRecord.java:834) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:6005) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: ... 10 more 04-18 13:52:47.683 765 1863 I am_crash: [14773,0,com.cyanogenmod.filemanager,14204485,java.util.UnknownFormatConversionException,Conversion: ,Formatter.java,2321] {noformat} Most likely this is caused by the % sign in a resource https://github.com/CyanogenMod/android_packages_apps_CMFileManager/blob/cm-12.1/res/values-ru/strings.xml#L308

    JIRA | 8 months ago | Dmitry Smirnov
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cyanogenmod.filemanager/com.cyanogenmod.filemanager.activities.preferences.SettingsPreferences}: java.util.UnknownFormatConversionException: Conversion:
  2. 0

    Hi, The issue I'm reporting is found on a custom build (and a non-officially supported device) but I suppose it can be reproduced on any cm-12.1-based build. Steps to reproduce: Prerequisite: The phone should use Russian language 1. Start File Manager 2. Enter Settings -> General settings (in Russian: "Настройки -> Основные настройки") Result: The app crashes The crash stack: {noformat} 04-18 13:52:47.683 14773 14773 E AndroidRuntime: FATAL EXCEPTION: main 04-18 13:52:47.683 14773 14773 E AndroidRuntime: Process: com.cyanogenmod.filemanager, PID: 14773 04-18 13:52:47.683 14773 14773 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cyanogenmod.filemanager/com.cyanogenmod.filemanager.activities.preferences.SettingsPreferences}: java.util.UnknownFormatConversionException: Conversion: 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:154) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5294) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: Caused by: java.util.UnknownFormatConversionException: Conversion: 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:2315) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseConversionType(Formatter.java:2394) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2365) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2298) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.doFormat(Formatter.java:1071) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:1042) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.util.Formatter.format(Formatter.java:1011) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at java.lang.String.format(String.java:1803) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:436) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment$1.onPreferenceChange(GeneralPreferenceFragment.java:94) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment.onCreate(GeneralPreferenceFragment.java:203) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.Fragment.performCreate(Fragment.java:2031) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.BackStackRecord.run(BackStackRecord.java:834) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.Activity.performStart(Activity.java:6005) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2321) 04-18 13:52:47.683 14773 14773 E AndroidRuntime: ... 10 more 04-18 13:52:47.683 765 1863 I am_crash: [14773,0,com.cyanogenmod.filemanager,14204485,java.util.UnknownFormatConversionException,Conversion: ,Formatter.java,2321] {noformat} Most likely this is caused by the % sign in a resource https://github.com/CyanogenMod/android_packages_apps_CMFileManager/blob/cm-12.1/res/values-ru/strings.xml#L308

    JIRA | 8 months ago | Dmitry Smirnov
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cyanogenmod.filemanager/com.cyanogenmod.filemanager.activities.preferences.SettingsPreferences}: java.util.UnknownFormatConversionException: Conversion:
  3. 0

    percentage symbol in strings.xml

    Stack Overflow | 4 years ago | danijoo
    java.util.UnknownFormatConversionException: Conversion:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1088#255612704

    GitHub | 1 month ago | wasdennnoch
    java.util.UnknownFormatConversionException: Conversion:
  6. 0

    GitHub comment 1103#255843291

    GitHub | 1 month ago | wasdennnoch
    java.util.UnknownFormatConversionException: Conversion:
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.UnknownFormatConversionException

    Conversion:

    at java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException()
  2. Java RT
    String.format
    1. java.util.Formatter$FormatSpecifierParser.unknownFormatConversionException(Formatter.java:2321)
    2. java.util.Formatter$FormatSpecifierParser.advance(Formatter.java:2315)
    3. java.util.Formatter$FormatSpecifierParser.parseConversionType(Formatter.java:2394)
    4. java.util.Formatter$FormatSpecifierParser.parseArgumentIndexAndFlags(Formatter.java:2365)
    5. java.util.Formatter$FormatSpecifierParser.parseFormatToken(Formatter.java:2298)
    6. java.util.Formatter.doFormat(Formatter.java:1071)
    7. java.util.Formatter.format(Formatter.java:1042)
    8. java.util.Formatter.format(Formatter.java:1011)
    9. java.lang.String.format(String.java:1803)
    9 frames
  3. Android Platform
    Resources.getString
    1. android.content.res.Resources.getString(Resources.java:436)
    1 frame
  4. com.cyanogenmod.filemanager
    GeneralPreferenceFragment.onCreate
    1. com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment$1.onPreferenceChange(GeneralPreferenceFragment.java:94)
    2. com.cyanogenmod.filemanager.activities.preferences.GeneralPreferenceFragment.onCreate(GeneralPreferenceFragment.java:203)
    2 frames
  5. Android Platform
    ActivityThread.main
    1. android.app.Fragment.performCreate(Fragment.java:2031)
    2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
    3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    4. android.app.BackStackRecord.run(BackStackRecord.java:834)
    5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
    6. android.app.Activity.performStart(Activity.java:6005)
    7. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2321)
    8. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
    9. android.app.ActivityThread.access$900(ActivityThread.java:154)
    10. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
    11. android.os.Handler.dispatchMessage(Handler.java:102)
    12. android.os.Looper.loop(Looper.java:135)
    13. android.app.ActivityThread.main(ActivityThread.java:5294)
    13 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)
    2 frames