Bagoro / connectbot

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

Lack of network connectivity crashes connectbot process #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Be disconnected from external IP connectivity
2. Launch ConnectBot and connect to a host in saved sessions list
3. ConnectBot crashes with:

"The application ConnectBot (process com.connectbot) has stopped
unexpectedly. Please try again."

Stack trace from logcat:

D/class org.connectbot.ConsoleActivity(  609): We couldnt find an existing
bridge with
URI=ssh://jonathan@XXXXXX.thejof.com/#jonathan@XXXXXX.thejof.com, so
creating one now
E/class org.connectbot.service.TerminalBridge(  609): Somehow our
underlying SSH socket died
E/class org.connectbot.service.TerminalBridge(  609): java.lang.Throwable:
There was a problem during connect.
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.Connection.connect(Connection.java:827)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.Connection.connect(Connection.java:629)
E/class org.connectbot.service.TerminalBridge(  609):   at
org.connectbot.service.TerminalBridge$2.run(TerminalBridge.java:264)
E/class org.connectbot.service.TerminalBridge(  609):   at
java.lang.Thread.run(Thread.java:935)
E/class org.connectbot.service.TerminalBridge(  609): Problem in SSH
connection thread
E/class org.connectbot.service.TerminalBridge(  609): java.io.IOException:
There was a problem while connecting to sfo.thejof.com:2222
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.Connection.connect(Connection.java:843)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.Connection.connect(Connection.java:629)
E/class org.connectbot.service.TerminalBridge(  609):   at
org.connectbot.service.TerminalBridge$2.run(TerminalBridge.java:264)
E/class org.connectbot.service.TerminalBridge(  609):   at
java.lang.Thread.run(Thread.java:935)
E/class org.connectbot.service.TerminalBridge(  609): Caused by:
java.net.UnknownHostException: XXXXXX.thejof.com - XXXXXX.thejof.com
E/class org.connectbot.service.TerminalBridge(  609):   at
java.net.InetAddress.lookupHostByName(InetAddress.java:457)
E/class org.connectbot.service.TerminalBridge(  609):   at
java.net.InetAddress.getByName(InetAddress.java:287)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.transport.TransportManager.createInetAddress(TransportManager.j
ava:165)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager
.java:340)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:449
)
E/class org.connectbot.service.TerminalBridge(  609):   at
com.trilead.ssh2.Connection.connect(Connection.java:783)
E/class org.connectbot.service.TerminalBridge(  609):   ... 3 more
D/AndroidRuntime(  609): Shutting down VM
W/dalvikvm(  609): threadid=3: thread exiting with uncaught exception
(group=0x40013e28)
E/AndroidRuntime(  609): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  609): java.lang.NullPointerException
E/AndroidRuntime(  609):        at
org.connectbot.ConsoleActivity$1.onServiceConnected(ConsoleActivity.java:136)
E/AndroidRuntime(  609):        at
android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThr
ead.java:1004)
E/AndroidRuntime(  609):        at
android.app.ActivityThread$PackageInfo$ServiceDispatcher$RunConnection.run(Activ
ityThread.java:1021)
E/AndroidRuntime(  609):        at
android.os.Handler.handleCallback(Handler.java:542)
E/AndroidRuntime(  609):        at
android.os.Handler.dispatchMessage(Handler.java:86)
E/AndroidRuntime(  609):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  609):        at
android.app.ActivityThread.main(ActivityThread.java:3742)
E/AndroidRuntime(  609):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  609):        at
java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(  609):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime(  609):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime(  609):        at dalvik.system.NativeStart.main(Native
Method)

Looks like maybe connectbot isn't set to handle an exception of the DNS
name lookup failing?

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?
 - ConnectBot 1.2 (r109 2008.11.03)

Original issue reported on code.google.com by jof%thej...@gtempaccount.com on 9 Feb 2009 at 7:02

GoogleCodeExporter commented 9 years ago
It doesn't crash it any more for sure.

Original comment by kenny@the-b.org on 14 Aug 2009 at 12:25