Connection issues with remote repository causing app to hang after clicking connection

Description

It seems that some private networks are causing issues if the application cannot connect to the remote repository. Perhaps the call the get the status of the repository is on the main thread.

Investigate and remove from the main application thread if necessary and see if there is a way to prevent the timeout from occurring or at least notify the user that there is a connection problem.

Stack trace submitted through play.

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE

group="main" sCount=1 dsCount=0 obj=0x40aa6460 self=0x100f848

sysTid=2877 nice=0 sched=0/0 cgrp=default handle=1075025032

schedstat=( 0 0 0 ) utm=39 stm=23 core=0
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:118)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)
at libcore.io.IoBridge.read(IoBridge.java:422)
at java.io.FileInputStream.read(FileInputStream.java:179)
at java.io.BufferedInputStream.read(BufferedInputStream.java:304)
at java.io.InputStreamReader.read(InputStreamReader.java:244)
at java.io.BufferedReader.fillBuf(BufferedReader.java:130)
at java.io.BufferedReader.readLine(BufferedReader.java:354)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14Factory.getVersion(SVNAdminArea14Factory.java:118)
at org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:158)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:379)
at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:283)
at org.tmatesoft.svn.core.wc.SVNWCUtil.isWorkingCopyRoot(SVNWCUtil.java:293)
at com.valleytg.oasvnlite.android.application.OASVNApplication.verifyWorkingCopy(OASVNApplication.java:436)
at com.valleytg.oasvnlite.android.ui.activity.ConnectionDetails.determineCheckoutState(ConnectionDetails.java:309)
at com.valleytg.oasvnlite.android.ui.activity.ConnectionDetails.populateTopInfo(ConnectionDetails.java:385)
at com.valleytg.oasvnlite.android.ui.activity.ConnectionDetails.onCreate(ConnectionDetails.java:147)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

"Timer-0" daemon prio=5 tid=11 TIMED_WAIT

group="main" sCount=1 dsCount=0 obj=0x4112ea38 self=0x11a2698

sysTid=2890 nice=0 sched=0/0 cgrp=default handle=18243280

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x4112ea38> (a java.util.Timer$TimerImpl)
    at java.lang.Object.wait(Object.java:401)
    at java.util.Timer$TimerImpl.run(Timer.java:238)

"Binder Thread #3" prio=5 tid=10 NATIVE

group="main" sCount=1 dsCount=0 obj=0x41119e08 self=0x11ede28

sysTid=2889 nice=0 sched=0/0 cgrp=default handle=18787936

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #2" prio=5 tid=9 NATIVE

group="main" sCount=1 dsCount=0 obj=0x41112d38 self=0x112d9e0

sysTid=2888 nice=0 sched=0/0 cgrp=default handle=18788200

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=8 NATIVE

group="main" sCount=1 dsCount=0 obj=0x411110e0 self=0x1192c38

sysTid=2887 nice=0 sched=0/0 cgrp=default handle=18215392

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at dalvik.system.NativeStart.run(Native Method)

"FinalizerWatchdogDaemon" daemon prio=5 tid=7 TIMED_WAIT

group="main" sCount=1 dsCount=0 obj=0x4110d738 self=0x11d4890

sysTid=2886 nice=0 sched=0/0 cgrp=default handle=18118808

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.VMThread.sleep(Native Method)
at java.lang.Thread.sleep(Thread.java:1031)
at java.lang.Thread.sleep(Thread.java:1013)
at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:213)
at java.lang.Thread.run(Thread.java:856)

"FinalizerDaemon" daemon prio=5 tid=6 WAIT

group="main" sCount=1 dsCount=0 obj=0x4110d5e0 self=0x11f1ad8

sysTid=2885 nice=0 sched=0/0 cgrp=default handle=18374624

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x40a9c5d0> (a java.lang.ref.ReferenceQueue)
    at java.lang.Object.wait(Object.java:401)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
    at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:168)
    at java.lang.Thread.run(Thread.java:856)

"ReferenceQueueDaemon" daemon prio=5 tid=5 WAIT

group="main" sCount=1 dsCount=0 obj=0x4110d478 self=0x11b85d8

sysTid=2884 nice=0 sched=0/0 cgrp=default handle=18460128

schedstat=( 0 0 0 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x40a9c4f8>

at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:128)
at java.lang.Thread.run(Thread.java:856)

"Compiler" daemon prio=5 tid=4 VMWAIT

group="system" sCount=1 dsCount=0 obj=0x4110d388 self=0x11db680

sysTid=2883 nice=0 sched=0/0 cgrp=default handle=18356160

schedstat=( 0 0 0 ) utm=2 stm=1 core=1
at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=3 RUNNABLE

group="system" sCount=0 dsCount=0 obj=0x4110d290 self=0x11e2a68

sysTid=2882 nice=0 sched=0/0 cgrp=default handle=18173984

schedstat=( 0 0 0 ) utm=0 stm=1 core=0
at dalvik.system.NativeStart.run(Native Method)

"GC" daemon prio=5 tid=2 VMWAIT

group="system" sCount=1 dsCount=0 obj=0x4110d1b0 self=0x119a668

sysTid=2879 nice=0 sched=0/0 cgrp=default handle=18749616

schedstat=( 0 0 0 ) utm=1 stm=0 core=0
at dalvik.system.NativeStart.run(Native Method)

Environment

None

Status

Assignee

Brian Gormanly

Reporter

Brian Gormanly

Labels

External issue ID

None

Time tracking

24h

Fix versions

Affects versions

1.0.10
1.0.10.1

Due date

2012/11/15

Priority

Major
Configure