fuycadw / netsentry

Automatically exported from code.google.com/p/netsentry
0 stars 0 forks source link

NetSentry crashed because of unhandled NumberFormatException #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can't reproduce it and it has only happened once. 

I'm using a NetSentry 1.1.2 on a HTC Hero with the latest official update 
(2.73.405.5).  

Here's the hopefully relevant part of the log:

10-03 17:24:02.848 D/AndroidRuntime(15907): Shutting down VM
10-03 17:24:02.848 W/dalvikvm(15907): threadid=3: thread exiting with uncaught 
exception 
(group=0x40013140)
10-03 17:24:08.578 E/AndroidRuntime(15907): Uncaught handler: thread main 
exiting due to 
uncaught exception
10-03 17:24:08.818 D/KeyguardViewMediator(   59): wakeWhenReadyLocked(82)
10-03 17:24:08.828 D/KeyguardViewMediator(   59): handleWakeWhenReady(82)
10-03 17:24:08.828 D/KeyguardViewMediator(   59): pokeWakelock(15000)
10-03 17:24:08.867 I/WindowManager(   59): Screen status=true, current 
orientation=5, 
SensorEnabled=false
10-03 17:24:08.867 I/WindowManager(   59): needSensorRunningLp, 
mCurrentAppOrientation =5
10-03 17:24:08.867 I/WindowManager(   59): needSensorRunningLp, 
SCREEN_ORIENTATION_NOSENSOR
10-03 17:24:08.877 I/HtcLockScreen(   59): HtcLockScreen:onResume 
10-03 17:24:09.018 W/KeyCharacterMap(   59): Bad keycharmap - filesize=32
10-03 17:24:09.037 D/KeyguardViewMediator(   59): pokeWakelock(15000)
10-03 17:24:09.037 I/HtcLockScreen(   59): Press Menu key to unlock screen
10-03 17:24:09.058 D/KeyguardViewMediator(   59): screen is unlocked.
10-03 17:24:09.077 I/HtcLockScreen(   59): HtcLockScreen:onPause
10-03 17:24:09.077 D/HtcLockScreen(   59): onScreenPause
10-03 17:24:09.298 I/WindowManager(   59): Screen status=true, current 
orientation=1, 
SensorEnabled=false
10-03 17:24:09.298 I/WindowManager(   59): needSensorRunningLp, 
mCurrentAppOrientation =1
10-03 17:24:09.298 I/WindowManager(   59): needSensorRunningLp, 
SCREEN_ORIENTATION_PORTRAIT
10-03 17:24:09.328 D/Rosie   (  103): onResume() [onRestoreInstanceState] : 
diff - 139
10-03 17:24:09.428 D/SurfaceFlinger(   59): Screen about to return, flinger = 
0x17e8c8
10-03 17:24:09.958 D/Rosie   (  103): onResume() [finished] : diff - 768
10-03 17:24:09.968 E/AndroidRuntime(15907): java.lang.RuntimeException: Unable 
to start 
receiver com.googlecode.netsentry.backend.Updater: 
java.lang.NumberFormatException: 
unable to parse '2215608385' as integer
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:2417)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.app.ActivityThread.access$2700(ActivityThread.java:112)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1741)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.os.Handler.dispatchMessage(Handler.java:99)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.os.Looper.loop(Looper.java:123)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.app.ActivityThread.main(ActivityThread.java:3948)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
java.lang.reflect.Method.invokeNative(Native Method)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
java.lang.reflect.Method.invoke(Method.java:521)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
dalvik.system.NativeStart.main(Native 
Method)
10-03 17:24:09.968 E/AndroidRuntime(15907): Caused by: 
java.lang.NumberFormatException: 
unable to parse '2215608385' as integer
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
java.lang.Integer.parse(Integer.java:390)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
java.lang.Integer.parseInt(Integer.java:374)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
java.lang.Integer.parseInt(Integer.java:333)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
com.googlecode.netsentry.backend.Updater.updateDataMap(Updater.java:426)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
com.googlecode.netsentry.backend.Updater.updateInterfaceStats(Updater.java:235)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
com.googlecode.netsentry.backend.Updater.onReceive(Updater.java:129)
10-03 17:24:09.968 E/AndroidRuntime(15907): at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:2408)
10-03 17:24:09.968 E/AndroidRuntime(15907): ... 10 more

Original issue reported on code.google.com by johan.ap...@gmail.com on 5 Oct 2009 at 7:36

GoogleCodeExporter commented 9 years ago
Thank's Johan

I'll have a look at it ;-)

Original comment by Lorenz.F...@gmail.com on 6 Oct 2009 at 7:14

GoogleCodeExporter commented 9 years ago
I'm also seeing a NumberFormatException, but mine is repeatable and causes a 
Force Close every time I try to start NetSentry.

It happened just after doing a lot of downloading on WiFi, so it looks like the 
amount I've downloaded is just too big to fit in an 
integer.

01-22 23:00:50.289: ERROR/AndroidRuntime(2271): Uncaught handler: thread main 
exiting due to uncaught exception
01-22 23:00:50.299: ERROR/AndroidRuntime(2271): java.lang.RuntimeException: 
Unable to start receiver 
com.googlecode.netsentry.backend.Updater: java.lang.NumberFormatException: 
unable to parse '2523648690' as integer
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:2646)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.app.ActivityThread.access$3100(ActivityThread.java:119)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.os.Looper.loop(Looper.java:123)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.app.ActivityThread.main(ActivityThread.java:4363)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
java.lang.reflect.Method.invokeNative(Native Method)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
java.lang.reflect.Method.invoke(Method.java:521)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
dalvik.system.NativeStart.main(Native Method)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271): Caused by: 
java.lang.NumberFormatException: unable to parse '2523648690' as integer
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
java.lang.Integer.parse(Integer.java:379)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
java.lang.Integer.parseInt(Integer.java:363)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
java.lang.Integer.parseInt(Integer.java:323)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
com.googlecode.netsentry.backend.Updater.updateDataMap(Updater.java:426)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
com.googlecode.netsentry.backend.Updater.updateInterfaceStats(Updater.java:235)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
com.googlecode.netsentry.backend.Updater.onReceive(Updater.java:129)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
01-22 23:00:50.299: ERROR/AndroidRuntime(2271):     ... 10 more

Original comment by oli...@gmail.com on 22 Jan 2010 at 11:19

GoogleCodeExporter commented 9 years ago
Ok, I think I found the bug. Should be fixed in the next release.

Original comment by Lorenz.F...@gmail.com on 26 Jul 2010 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by Lorenz.F...@gmail.com on 26 Jul 2010 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by Lorenz.F...@gmail.com on 28 Jul 2010 at 9:37