[ 
https://issues.apache.org/jira/browse/CB-8749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388527#comment-14388527
 ] 

Dmitry Blotsky commented on CB-8749:
------------------------------------

This also crashes on OSX, with the following output from {{adb logcat}}:
{noformat}
I/chromium( 1013): [INFO:CONSOLE(115)] "no 'testFile.txt' to delete; skipping 
deletion", source: 
file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js 
(115)
W/PluginManager( 1013): THREAD WARNING: exec() call to File.requestFileSystem 
blocked the main thread for 18ms. Plugin should use 
CordovaInterface.getThreadPool().
D/FileTransfer( 1013): download http://cordova-filetransfer.jitsu.com to 
c:\54321
D/FileTransfer( 1013): Download file:http://cordova-filetransfer.jitsu.com
E/FileTransfer( 1013): 
{"code":1,"source":"http:\/\/cordova-filetransfer.jitsu.com","target":"c:\\54321","http_status":200,"exception":"URI
 not supported by CordovaResourceApi: c:\\54321"}
E/FileTransfer( 1013): java.io.FileNotFoundException: URI not supported by 
CordovaResourceApi: c:\54321
E/FileTransfer( 1013):  at 
org.apache.cordova.CordovaResourceApi.openOutputStream(CordovaResourceApi.java:331)
E/FileTransfer( 1013):  at 
org.apache.cordova.CordovaResourceApi.openOutputStream(CordovaResourceApi.java:304)
E/FileTransfer( 1013):  at 
org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:860)
E/FileTransfer( 1013):  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/FileTransfer( 1013):  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/FileTransfer( 1013):  at java.lang.Thread.run(Thread.java:818)
W/System.err( 1013): java.io.FileNotFoundException: path does not exist
W/System.err( 1013):    at 
org.apache.cordova.file.LocalFilesystem.getFileForLocalURL(LocalFilesystem.java:194)
W/System.err( 1013):    at 
org.apache.cordova.file.FileUtils.getFile(FileUtils.java:779)
W/System.err( 1013):    at 
org.apache.cordova.file.FileUtils.access$700(FileUtils.java:52)
W/System.err( 1013):    at 
org.apache.cordova.file.FileUtils$18.run(FileUtils.java:427)
W/System.err( 1013):    at 
org.apache.cordova.file.FileUtils$25.run(FileUtils.java:555)
W/System.err( 1013):    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 1013):    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 1013):    at java.lang.Thread.run(Thread.java:818)
D/SystemWebChromeClient( 1013): 
file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js:
 Line 115 : no 'testFile.txt' to delete; skipping deletion
I/chromium( 1013): [INFO:CONSOLE(115)] "no 'testFile.txt' to delete; skipping 
deletion", source: 
file:///android_asset/www/plugins/org.apache.cordova.test-framework/www/main.js 
(115)
W/PluginManager( 1013): THREAD WARNING: exec() call to File.requestFileSystem 
blocked the main thread for 30ms. Plugin should use 
CordovaInterface.getThreadPool().
I/art     (  772): Background partial concurrent mark sweep GC freed 822(39KB) 
AllocSpace objects, 1(31KB) LOS objects, 22% free, 6MB/8MB, paused 1.481ms 
total 135.679ms
D/FileTransfer( 1013): download http://www.apache.org/ to 
file:///data/data/org.apache.mobilespec/files/files/testFile.txt
D/FileTransfer( 1013): Download file:http://www.apache.org/
I/ActivityManager(  352): Killing 882:com.android.externalstorage/u0a6 (adj 
15): empty #17
D/CordovaActivity( 1013): CordovaActivity.onDestroy()
D/CordovaWebViewImpl( 1013): >>> loadUrl(about:blank)
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1013): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1013): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1013): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1013): **** ERROR unknown type 0x0 (glSizeof,72)
W/ScreenOrientationListener( 1013): Removing an inexistent observer!
W/OpenGLRenderer(  772): Incorrectly called buildLayer on View: 
ShortcutAndWidgetContainer, destroying layer...
W/OpenGLRenderer(  772): Incorrectly called buildLayer on View: 
ShortcutAndWidgetContainer, destroying layer...
D/FileTransfer( 1013): Saved file: 
file:///data/data/org.apache.mobilespec/files/files/testFile.txt
W/ResourceType(  772): No package identifier when getting value for resource 
number 0x00000000
W/ResourceType(  772): No package identifier when getting value for resource 
number 0x00000000
W/PackageManager(  772): Failure retrieving resources for 
com.android.speechrecorder: Resource ID #0x0
W/ResourceType(  772): No package identifier when getting value for resource 
number 0x00000000
W/PackageManager(  772): Failure retrieving resources for 
com.android.speechrecorder: Resource ID #0x0
{noformat}

> FileTransfer test failure often crashes Android test app
> --------------------------------------------------------
>
>                 Key: CB-8749
>                 URL: https://issues.apache.org/jira/browse/CB-8749
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: Master
>         Environment: Android 21 on Nexus S emulator on Windows
>            Reporter: Dmitry Blotsky
>            Priority: Critical
>              Labels: cordova-medic, crash, file-transfer, medic, mobilespec
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Steps to reproduce:
> 1. Create mobilespec app with {{--android}} for platform
> 2. Run {{cordova-medic/bin/updateconfig.js --android}} from a directory above 
> the created mobilespec app
> 3. Run the app with {{cordova run android -- --ant --debug}}
> 4. Wait for the app to open, and then click the buttons to start the Auto 
> tests
> 5. Run `adb logcat` to capture the output
> App runs and often (but not always) crashes with the following exception in 
> the {{logcat}} output:
> D/FileTransfer( 2225): download http://cordova-filetransfer.jitsu.com/404 to 
> file:///data/data/org.apache.mobilespec/files/files/testFile.txt
> D/FileTransfer( 2225): Download file:http://cordova-filetransfer.jitsu.com/404
> E/FileTransfer( 2225): 
> {"code":1,"source":"http:\/\/cordova-filetransfer.jitsu.com\/404","target":"file:\/\/\/data\/data\/org.apache.mobilespec\/files\/files\/testFile.txt","body":"You
>  requested a 
> 404","http_status":404,"exception":"http:\/\/cordova-filetransfer.jitsu.com\/404"}
> E/FileTransfer( 2225): java.io.FileNotFoundException: 
> http://cordova-filetransfer.jitsu.com/404
> E/FileTransfer( 2225):  at 
> com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:197)
> E/FileTransfer( 2225):  at 
> org.apache.cordova.filetransfer.FileTransfer.getInputStream(FileTransfer.java:556)
> E/FileTransfer( 2225):  at 
> org.apache.cordova.filetransfer.FileTransfer.access$500(FileTransfer.java:69)
> E/FileTransfer( 2225):  at 
> org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:844)
> E/FileTransfer( 2225):  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
> E/FileTransfer( 2225):  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
> E/FileTransfer( 2225):  at java.lang.Thread.run(Thread.java:818)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to