damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Bug in com.trilead.ssh2.StreamGobbler #88

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

What device(s) are you experiencing the problem on?
All devices

What firmware version are you running on the device?
All firmware

What steps will reproduce the problem?
1. Run any script and check log

What is the expected output? What do you see instead?
Log is not present or truncated.

What version of the product are you using? On what operating system?
All versions.

Please provide any additional information below.
I have traced the bug to com.trilead.ssh2.StreamGobbler. The code does not 
write what is remaining in the buffer when the stream is closed. This results 
in missing log text (for long logs) or empty log file (for short logs). I am 
sure it is simple to fix. Please let me know if you need any help.

Original issue reported on code.google.com by adamli...@gmail.com on 25 Jun 2012 at 8:37

Copied from original issue: damonkohler/android-scripting#636