New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFormatException #36

tianxiaogu opened this Issue Nov 4, 2017 · 3 comments


None yet
2 participants

tianxiaogu commented Nov 4, 2017

It seems that parseInt is not properly used.

[APE] // CRASH: com.fr3ts0n.ecu.gui.androbd (pid 6501) (elapsed nanos: 8183794177457)
[APE] // Short Msg: java.lang.NumberFormatException
[APE] // Long Msg: java.lang.NumberFormatException: Invalid int: "627768533312155715515"
[APE] // Build Label: Android/sdk_google_phone_x86/generic_x86:6.0/MASTER/4088240:userdebug/test-keys
[APE] // Build Changelist: 4088240
[APE] // Build Time: 1497047463000
[APE] // java.lang.NumberFormatException: Invalid int: "627768533312155715515"
[APE] // 	at java.lang.Integer.invalidInt(
[APE] // 	at java.lang.Integer.parse(
[APE] // 	at java.lang.Integer.parseInt(
[APE] // 	at java.lang.Integer.parseInt(
[APE] // 	at java.lang.Integer.valueOf(
[APE] // 	at com.fr3ts0n.ecu.gui.androbd.MainActivity.setAutoHider(
[APE] // 	at com.fr3ts0n.ecu.gui.androbd.MainActivity.onSharedPreferenceChanged(
[APE] // 	at$EditorImpl.notifyListeners(
[APE] // 	at$EditorImpl.apply(
[APE] // 	at android.preference.Preference.tryCommit(
[APE] // 	at android.preference.Preference.persistString(
[APE] // 	at android.preference.EditTextPreference.setText(
[APE] // 	at android.preference.EditTextPreference.onDialogClosed(
[APE] // 	at android.preference.DialogPreference.onDismiss(
[APE] // 	at$ListenersHandler.handleMessage(
[APE] // 	at android.os.Handler.dispatchMessage(
[APE] // 	at android.os.Looper.loop(
[APE] // 	at
[APE] // 	at java.lang.reflect.Method.invoke(Native Method)
[APE] // 	at$
[APE] // 	at
[APE] // 


This comment has been minimized.


fr3ts0n commented Nov 5, 2017

  • What did you do to produce this exception?
    • What I read from the call stack, you entered a hughe number as AutoHide timeout ...
  • What is the further reaction of the app (on further starts)?

This comment has been minimized.

tianxiaogu commented Nov 5, 2017

Thanks for your response.

This exception can be reproduced easily following the instructions below.

  1. Settings -> Common settings.
  2. Enable Hide toolbar.
  3. Click Hide toolbar dealy.
  4. Input a very large number.

The app crashed and cannot be restarted unless you clear all data.
It seems that the invalid number string has been saved into persistent data.

@fr3ts0n fr3ts0n added the bug label Nov 5, 2017


This comment has been minimized.


fr3ts0n commented Nov 5, 2017

OK, I'll have to fix that by defining / checking the value to be within a defined range ...

@fr3ts0n fr3ts0n closed this in 66cf84f Nov 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment