cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Blotsky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8749) FileTransfer test failure often crashes Android test app
Date Tue, 07 Apr 2015 02:34:12 GMT

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

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

Latest output here:

{noformat}
--------- beginning of crash
E/AndroidRuntime( 1422): FATAL EXCEPTION: pool-1-thread-1
E/AndroidRuntime( 1422): Process: org.apache.mobilespec, PID: 1422
E/AndroidRuntime( 1422): java.lang.NullPointerException: Attempt to read from field 'int com.android.okio.Segment.limit'
 on a null object reference
E/AndroidRuntime( 1422):        at com.android.okio.OkBuffer.write(OkBuffer.java:574)
E/AndroidRuntime( 1422):        at com.android.okio.OkBuffer.read(OkBuffer.java:610)
E/AndroidRuntime( 1422):        at com.android.okio.RealBufferedSource.read(RealBufferedSource.java:53)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection
.java:442)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.Util.skipAll(Util.java:227)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:212)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnectio
n.java:464)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.Util.closeQuietly(Util.java:97)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.http.HttpEngine.close(HttpEngine.java:433)
E/AndroidRuntime( 1422):        at com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect(HttpURLConnectionIm
pl.java:113)
E/AndroidRuntime( 1422):        at org.apache.cordova.filetransfer.FileTransfer$5.run(FileTransfer.java:980)
E/AndroidRuntime( 1422):        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/AndroidRuntime( 1422):        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/AndroidRuntime( 1422):        at java.lang.Thread.run(Thread.java:818)
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/FileTransfer( 1422): {"code":3,"source":"http:\/\/cordova.apache.org\/downloads\/logos_2.zip","target":"file:\/\/\/dat
a\/data\/org.apache.mobilespec\/files\/files\/testFile.txt","http_status":200,"exception":"Attempt
to read from field 'i
nt com.android.okio.Segment.limit' on a null object reference"}
E/FileTransfer( 1422): java.lang.NullPointerException: Attempt to read from field 'int com.android.okio.Segment.limit'
o
n a null object reference
E/FileTransfer( 1422):  at com.android.okio.OkBuffer.write(OkBuffer.java:574)
E/FileTransfer( 1422):  at com.android.okio.OkBuffer.read(OkBuffer.java:610)
E/FileTransfer( 1422):  at com.android.okio.RealBufferedSource.read(RealBufferedSource.java:53)
E/FileTransfer( 1422):  at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:44
2)
E/FileTransfer( 1422):  at com.android.okhttp.internal.Util.skipAll(Util.java:227)
E/FileTransfer( 1422):  at com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:212)
E/FileTransfer( 1422):  at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:4
64)
E/FileTransfer( 1422):  at com.android.okio.RealBufferedSource.close(RealBufferedSource.java:198)
E/FileTransfer( 1422):  at com.android.okio.RealBufferedSource$1.close(RealBufferedSource.java:181)
E/FileTransfer( 1422):  at java.io.FilterInputStream.close(FilterInputStream.java:64)
E/FileTransfer( 1422):  at org.apache.cordova.filetransfer.FileTransfer.safeClose(FileTransfer.java:545)
E/FileTransfer( 1422):  at org.apache.cordova.filetransfer.FileTransfer.access$400(FileTransfer.java:69)
E/FileTransfer( 1422):  at org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:873)
E/FileTransfer( 1422):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/FileTransfer( 1422):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/FileTransfer( 1422):  at java.lang.Thread.run(Thread.java:818)
W/ActivityManager(  352):   Force finishing activity org.apache.mobilespec/.MainActivity
E/gralloc_goldfish(   54): gralloc_alloc: Mismatched usage flags: 288 x 288, usage 333
W/GraphicBufferAllocator(   54): alloc(288, 288, 1, 00000333, ...) failed -22 (Invalid argument)
E/        (   54): GraphicBufferAlloc::createGraphicBuffer(w=288, h=288) failed (Invalid argument),
handle=0x0
E/BufferQueueProducer(  352): [ScreenshotClient] dequeueBuffer: createGraphicBuffer failed
W/WindowManager(  352): Screenshot failure taking screenshot for (480x800) to layer 21010
E/ActivityManager(  352): Invalid thumbnail dimensions: 288x288
D/CordovaActivity( 1422): Paused the activity.
D/CordovaWebViewImpl( 1422): Handle the pause
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
I/Choreographer(  637): Skipped 59 frames!  The application may be doing too much work on
its main thread.
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
D/SystemWebChromeClient( 1422): file:///android_asset/www/plugins/cordova-plugin-test-framework/www/main.js:
Line 115 :
no 'testFile.txt' to delete; skipping deletion
I/chromium( 1422): [INFO:CONSOLE(115)] "no 'testFile.txt' to delete; skipping deletion", source:
file:///android_asset/w
ww/plugins/cordova-plugin-test-framework/www/main.js (115)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
I/art     ( 1422): Background sticky concurrent mark sweep GC freed 2672(185KB) AllocSpace
objects, 0(0B) LOS objects, 7
% free, 3MB/4MB, paused 85.691ms total 337.856ms
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
I/Choreographer(  637): Skipped 87 frames!  The application may be doing too much work on
its main thread.
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
I/Choreographer(  352): Skipped 55 frames!  The application may be doing too much work on
its main thread.
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
W/EGL_emulation(  637): eglSurfaceAttrib not implemented
W/OpenGLRenderer(  637): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa76aeee0, error=EGL_SUCCESS
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
D/FileTransfer( 1422): download http://cordova.apache.org/downloads/BlueZedEx.mp3 to file:///data/data/org.apache.mobile
spec/files/files/testFile.txt
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
D/FileTransfer( 1422): Download file:http://cordova.apache.org/downloads/BlueZedEx.mp3
W/PluginManager( 1422): THREAD WARNING: exec() call to FileTransfer.download blocked the main
thread for 214ms. Plugin s
hould use CordovaInterface.getThreadPool().
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
I/Choreographer(  352): Skipped 88 frames!  The application may be doing too much work on
its main thread.
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
D/        (  352): HostConnection::get() New Host Connection established 0xa0d071d0, tid 370
I/ActivityManager(  352): Killing 859:com.android.music/u0a33 (adj 15): empty #17
I/Choreographer(  352): Skipped 33 frames!  The application may be doing too much work on
its main thread.
D/CordovaActivity( 1422): CordovaActivity.onDestroy()
D/CordovaWebViewImpl( 1422): >>> loadUrl(about:blank)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000b44
E/eglCodecCommon( 1422): glUtilsParamSize: unknow param 0x00000bd0
E/eglCodecCommon( 1422): **** ERROR unknown type 0x0 (glSizeof,72)
W/ScreenOrientationListener( 1422): Removing an inexistent observer!
W/OpenGLRenderer(  637): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer,
destroying layer...
W/OpenGLRenderer(  637): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer,
destroying layer...
W/OpenGLRenderer(  637): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer,
destroying layer...
{noformat}

Debugging revealed that this is related to [https://issues.apache.org/jira/browse/CB-8431]

> 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:
> {noformat}
> 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)
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message