AndFTP crashing

FTP client for Android handsets.
HLevison
Posts: 2
Joined: Wed Feb 11, 2009 3:55 pm

AndFTP crashing

Post by HLevison »

Hi:

I have been having problems with AndFTP crashing when it tries to connects. I am using sftp to a linux machine. I have played with this for a while and have found that it will work for a while after I reinstall the software or after I reboot the android. Any ideas?

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: AndFTP crashing

Post by support »

Is there any error message displayed?

schumsen
Posts: 2
Joined: Tue Nov 03, 2009 6:47 pm
AntiSpam sum: 8

Re: AndFTP crashing

Post by schumsen »

Hello!

I have the same problem here (G1, cyan 4.0.4) with andftp version 1.0RC1 and 1.0 final. After reinstalling andftp or rebooting the phone i can connect exactly once to machine via SFTP, successive tries immediatly abort after touching the connect-button with a force-close message.
I tried with different ssh-servers, ports, username, 3G/wifi, etc. no change in behaviour.

Here is the logcat output from the force-close:

Code: Select all

I/ActivityManager(  129): Starting activity: Intent { comp={lysesoft.andftp/lysesoft.andftp.FTPFileChooserActivity} }
I/NotificationService(  129): enqueueToast pkg=lysesoft.andftp callback=android.app.ITransientNotification$Stub$Proxy@43b88360 duration=0
W/dalvikvm(19264): threadid=17: thread exiting with uncaught exception (group=0x4001a210)
E/AndroidRuntime(19264): Uncaught handler: thread Thread-9 exiting due to uncaught exception
E/AndroidRuntime(19264): java.lang.NullPointerException
E/AndroidRuntime(19264):        at lysesoft.andftp.FTPFileChooserActivity$4.run(FTPFileChooserActivity.java:232)
I/Process (  129): Sending signal. PID: 19264 SIG: 3
I/dalvikvm(19264): threadid=7: reacting to signal 3
I/dalvikvm(19264): Wrote stack trace to '/data/anr/traces.txt'
I/ActivityManager(  129): Displayed activity lysesoft.andftp/.FTPFileChooserActivity: 805 ms
and here the trace info from traces.txt

Code: Select all

----- pid 19264 at 2009-11-03 19:28:17 -----
Cmd line: lysesoft.andftp

DALVIK THREADS:
"main" prio=5 tid=3 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x4001a2f0 self=0xbc70
  | sysTid=19264 nice=0 sched=0/0 handle=-1344001260
  at android.os.BinderProxy.transact(Native Method)
  at android.view.IWindowSession$Stub$Proxy.add(IWindowSession.java:330)
  at android.view.ViewRoot.setView(ViewRoot.java:405)
  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:178)
  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
  at android.view.Window$LocalWindowManager.addView(Window.java:392)
  at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2686)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2299)
  at android.app.ActivityThread.access$1800(ActivityThread.java:112)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1704)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:3960)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  at dalvik.system.NativeStart.main(Native Method)

"Thread-9" prio=5 tid=17 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x437e1d70 self=0x1ac448
  | sysTid=19273 nice=0 sched=0/0 handle=1754472
  at android.os.BinderProxy.transact(Native Method)
  at android.app.ActivityManagerProxy.handleApplicationError(ActivityManagerNative.java:2103)
  at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302)
  at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:75)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
  at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)

"Binder Thread #3" prio=5 tid=15 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x437de7c8 self=0x17d740
  | sysTid=19270 nice=0 sched=0/0 handle=1562368
  at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #2" prio=5 tid=13 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x437de708 self=0x17ca88
  | sysTid=19269 nice=0 sched=0/0 handle=1359968
  at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=11 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x437de648 self=0x165c50
  | sysTid=19268 nice=0 sched=0/0 handle=1361312
  at dalvik.system.NativeStart.run(Native Method)

"JDWP" daemon prio=5 tid=9 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x437dc2a0 self=0x165b30
  | sysTid=19267 nice=0 sched=0/0 handle=1438200
  at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=7 RUNNABLE
  | group="system" sCount=0 dsCount=0 s=N obj=0x437dc1e8 self=0x15e730
  | sysTid=19266 nice=0 sched=0/0 handle=1435376
  at dalvik.system.NativeStart.run(Native Method)

"HeapWorker" daemon prio=5 tid=5 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x42a31ad8 self=0x15dce0
  | sysTid=19265 nice=0 sched=0/0 handle=1432736
  at dalvik.system.NativeStart.run(Native Method)

----- end 19264 -----
i hope this helps

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: AndFTP crashing

Post by support »

Does it work with FTP instead of SFTP ?

schumsen
Posts: 2
Joined: Tue Nov 03, 2009 6:47 pm
AntiSpam sum: 8

Re: AndFTP crashing

Post by schumsen »

After adding a FTP-connection to the list the problem was gone! Even after removing the FTP-entry, all SFTP connections seem to work flawlessly now. In my test before i had only SFTP connections.
I will try to reproduce the error and see if adding a FTP-server really is the key to get it working.

rserling
Posts: 6
Joined: Sun Nov 22, 2009 6:05 pm
AntiSpam sum: 8

Re: AndFTP crashing

Post by rserling »

First, many thanks to the developers for the admirable effort.

I'm amazed this keeps getting updates and never improves in the slightest. Sometimes i am able to establish connections and chdir and ls, but when download is started the app crashes. Never gotten past that. Just applied yet another update today (1.2), and it is the same if not worse. Often the app crashes immediately when the "connect" button is clicked. These problems are equal with SFTP and FTP. Servers are sshd on FreeBSD 7 and CrushFTP on OS X 10.5, respectively. Can provide test account on the latter and logs on both.

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: AndFTP crashing

Post by support »

Yes, please provide a testing FTP account. Send an email to support(at)lysesoft(dot)com

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: AndFTP crashing

Post by support »

Thanks for the testing account. I've tested under both emulator and my HTC Magic and it seems to work fine. I've tried several connect/disconnect and I'm able to list files in the remote folder (see image below).

What error do you get ? You're using Android 2.0 under Motorola Droid ?
ftptest.png
ftptest.png (16.18 KiB) Viewed 11837 times

rserling
Posts: 6
Joined: Sun Nov 22, 2009 6:05 pm
AntiSpam sum: 8

Re: AndFTP crashing

Post by rserling »

I am able to list files, the problem is most often when starting a download. The app AndFTP has stopped unexpectedly. Please try again. [Force close]

This is on a HTC (t-mobile) G1, with Android 2.6.29-00479-g3c7df37

rserling
Posts: 6
Joined: Sun Nov 22, 2009 6:05 pm
AntiSpam sum: 8

Re: AndFTP crashing

Post by rserling »

Ok i have more information, this appears to be something specific to my own account setup. If you use as "Remote dir" a relative path (not beginning with /), client will CWD to that dir successfully, but then subsequent commands, e.g. RETR, will prepend the relative path, causing a 550 error, and causing AndFTP to crash inelegantly.

Sorry to disparage your efforts, it's really just down to error handling in this case. Not sure but you might want to not allow relative paths in Remote dr.

Post Reply