ikariiin / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

Manage Public Keys crashes latest snapshot v. master-2012-11-28_22-14-18 #623

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Open the settings tab for Manage Public Keys

What is the expected output? What do you see instead?
Public keys expected.
Instead ConnectBot crashes

What version of the product are you using (you can see this by using Menu
ConnectBot-git-master-2012-11-28_22-14-18.apk

Phone details: Samsung i9100 (EU/GSM)
O/S:  CM 10.0.0.-RC0-i9100

Please provide any additional information below.
LOGCAT follows
D/AndroidRuntime(16570): >>>>>> AndroidRuntime START 
com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(16570): CheckJNI is OFF
I/HK/LatinKeyboardBaseView( 5887): closing 
org.pocketworkstation.pckeyboard.LatinKeyboardView@2c7dbbb0
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
D/dalvikvm(16570): Trying to load lib libjavacore.so 0x0
D/dalvikvm(16570): Added shared lib libjavacore.so 0x0
D/dalvikvm(16570): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(16570): Added shared lib libnativehelper.so 0x0
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
I/ConnectBot.TerminalBridge(16504): parentChanged() now width=80, height=30
D/AndroidRuntime(16570): Calling main entry com.android.commands.am.Am
D/AndroidRuntime(16570): Shutting down VM
D/dalvikvm(16570): GC_CONCURRENT freed 100K, 94% free 503K/8192K, paused 
0ms+1ms, total 3ms
W/ProcessStats( 3025): Skipping unknown process pid 16567
W/ProcessStats( 3025): Skipping unknown process pid 16568
V/PhoneStatusBar( 5504): setLightsOn(true)
W/InputMethodManagerService( 3025): Window already focused, ignoring focus gain 
of: com.android.internal.view.IInputMethodClient$Stub$Proxy@2c3bb168 
attribute=null
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
W/HK/LatinKeyboardBaseView( 5887): onUpEvent: corresponding down event not 
found for pointer 0
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
D/dalvikvm( 5887): GC_EXPLICIT freed 2658K, 68% free 7967K/24576K, paused 
28ms+7ms, total 146ms
D/dalvikvm( 3025): GC_EXPLICIT freed 770K, 32% free 22800K/33411K, paused 
3ms+8ms, total 97ms
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
I/HK/LatinKeyboardBaseView( 5887): onMeasure width=480
I/Keyboard( 5887): setKeyboardWidth newWidth=480, mTotalWidth=480
V/Keyboard( 5887): keyboard's display metrics:DisplayMetrics{density=1.5, 
width=480, height=800, scaledDensity=1.5, xdpi=217.71428, ydpi=218.49463}, 
mDisplayWidth=480
I/ConnectBot.TerminalBridge(16504): parentChanged() now width=80, height=58
D/ConnectBot.ConsoleActivity(16504): onPause called
I/HK/LatinKeyboardBaseView( 5887): closing 
org.pocketworkstation.pckeyboard.LatinKeyboardView@2c7dbbb0
W/ThrottleService( 3025): unable to find stats for iface pdp0
I/wpa_supplicant( 5586): wlan0: WPA: Group rekeying completed with 
6c:9c:ed:ed:6b:e1 [GTK=CCMP]
I/ActivityManager( 3025): START {cmp=org.connectbot/.PubkeyListActivity u=0} 
from pid 16504
D/AndroidRuntime(16504): Shutting down VM
W/dalvikvm(16504): threadid=1: thread exiting with uncaught exception 
(group=0x2b887300)
E/AndroidRuntime(16504): FATAL EXCEPTION: main
E/AndroidRuntime(16504): java.lang.RuntimeException: Unable to start activity 
ComponentInfo{org.connectbot/org.connectbot.PubkeyListActivity}: 
java.lang.NullPointerException
E/AndroidRuntime(16504):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2190)
E/AndroidRuntime(16504):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2215)
E/AndroidRuntime(16504):    at 
android.app.ActivityThread.access$600(ActivityThread.java:145)
E/AndroidRuntime(16504):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1211)
E/AndroidRuntime(16504):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(16504):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(16504):    at 
android.app.ActivityThread.main(ActivityThread.java:4978)
E/AndroidRuntime(16504):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(16504):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(16504):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(16504):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
E/AndroidRuntime(16504):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(16504): Caused by: java.lang.NullPointerException
E/AndroidRuntime(16504):    at 
java.security.spec.EncodedKeySpec.<init>(EncodedKeySpec.java:37)
E/AndroidRuntime(16504):    at 
java.security.spec.X509EncodedKeySpec.<init>(X509EncodedKeySpec.java:34)
E/AndroidRuntime(16504):    at 
org.connectbot.bean.PubkeyBean.setPublicKey(PubkeyBean.java:116)
E/AndroidRuntime(16504):    at 
org.connectbot.util.PubkeyDatabase.getPubkeys(PubkeyDatabase.java:154)
E/AndroidRuntime(16504):    at 
org.connectbot.util.PubkeyDatabase.allPubkeys(PubkeyDatabase.java:122)
E/AndroidRuntime(16504):    at 
org.connectbot.PubkeyListActivity.updateList(PubkeyListActivity.java:480)
E/AndroidRuntime(16504):    at 
org.connectbot.PubkeyListActivity.onCreate(PubkeyListActivity.java:153)
E/AndroidRuntime(16504):    at 
android.app.Activity.performCreate(Activity.java:5008)
E/AndroidRuntime(16504):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
E/AndroidRuntime(16504):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
E/AndroidRuntime(16504):    ... 11 more
W/ActivityManager( 3025):   Force finishing activity 
org.connectbot/.PubkeyListActivity
W/ActivityManager( 3025):   Force finishing activity 
org.connectbot/.HostListActivity
W/ActivityManager( 3025): Activity pause timeout for ActivityRecord{2c138a88 
org.connectbot/.PubkeyListActivity}
I/Process (16504): Sending signal. PID: 16504 SIG: 9
V/PhoneStatusBar( 5504): setLightsOn(true)
E/JavaBinder( 3025): !!! FAILED BINDER TRANSACTION !!!
E/JavaBinder( 3025): !!! FAILED BINDER TRANSACTION !!!
W/InputMethodManagerService( 3025): Got RemoteException sending 
setActive(false) notification to pid 16504 uid 10075
E/JavaBinder( 5887): !!! FAILED BINDER TRANSACTION !!!
I/ActivityManager( 3025): Process org.connectbot (pid 16504) has died.
W/ActivityManager( 3025): Scheduling restart of crashed service 
org.connectbot/.service.TerminalManager in 5000ms
I/WindowState( 3025): WIN DEATH: Window{2c1e23b8 
org.connectbot/org.connectbot.HostListActivity paused=true}

Original issue reported on code.google.com by simon.lo...@gmail.com on 7 Dec 2012 at 1:28