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

ASF GitHub Bot commented on CB-5059:
------------------------------------

Github user sean-hill commented on the pull request:

    
https://github.com/apache/cordova-plugin-file-transfer/pull/60#issuecomment-74533046
  
    Here are my logs when it crashes
    
        I/chromium(22591): [INFO:CONSOLE(33)] "FILE:", source: 
file:///android_asset/www/js/services/upload-service.js (33)
        E/EGL_genymotion(22591): eglQuerySurface 30be  EGL_BAD_ATTRIBUTE
        I/DEBUG   (  116): *** *** *** *** *** *** *** *** *** *** *** *** *** 
*** *** ***
        I/DEBUG   (  116): Build fingerprint: 
'generic/vbox86p/vbox86p:4.1.1/JRO03S/eng.buildbot.20141001.135900:userdebug/test-keys'
        I/DEBUG   (  116): pid: 22591, tid: 22651, name: pool-1-thread-1  >>> 
com.pingplot.unbill <<<
        I/DEBUG   (  116): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault 
addr deadd00d
        I/DEBUG   (  116):     eax 0000020c  ebx b67d8c98  ecx 00000001  edx 
00000000
        I/DEBUG   (  116):     esi 9149b5e0  edi 0000020c
        I/DEBUG   (  116):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 
00000000  xss 0000007b
        I/DEBUG   (  116):     eip b672e51a  ebp 9149b7f8  esp 9149b5d0  flags 
00010246
        I/DEBUG   (  116):
        I/DEBUG   (  116): backtrace:
        I/DEBUG   (  116):     #00  pc 0005451a  /system/lib/libdvm.so 
(dvmAbort+170)
        I/DEBUG   (  116):     #01  pc 0005c13e  /system/lib/libdvm.so 
(dvmDecodeIndirectRef(Thread*, _jobject*)+126)
        I/DEBUG   (  116):     #02  pc 00066094  /system/lib/libdvm.so 
(GetStringUTFChars(_JNIEnv*, _jstring*, unsigned char*)+100)
        I/DEBUG   (  116):     #03  pc 004aa598  /system/lib/libwebcore.so 
(android::jstringToStdString(_JNIEnv*, _jstring*)+72)
        I/DEBUG   (  116):     #04  pc 0048e11b  /system/lib/libwebcore.so 
(android::databaseDirectory()+363)
        I/DEBUG   (  116):     #05  pc 0048e365  /system/lib/libwebcore.so 
(android::WebCookieJar::get(bool)+309)
        I/DEBUG   (  116):     #06  pc 0049dea5  /system/lib/libwebcore.so 
(android::getCookie(_JNIEnv*, _jobject*, _jstring*, unsigned char)+149)
        I/DEBUG   (  116):     #07  pc 0001aea0  /system/lib/libdvm.so 
(dvmPlatformInvoke+80)
        I/DEBUG   (  116):     #08  pc 000608f9  /system/lib/libdvm.so 
(dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+489)
        I/DEBUG   (  116):     #09  pc 000c6008  /system/lib/libdvm.so
        I/DEBUG   (  116):     #10  pc 00029406  /system/lib/libdvm.so 
(dvmMterpStd(Thread*)+70)
        I/DEBUG   (  116):     #11  pc 000265d0  /system/lib/libdvm.so 
(dvmInterpret(Thread*, Method const*, JValue*)+160)
        I/DEBUG   (  116):     #12  pc 00091779  /system/lib/libdvm.so 
(dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, char*)+601)
        I/DEBUG   (  116):     #13  pc 00091886  /system/lib/libdvm.so 
(dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+54)
        I/DEBUG   (  116):     #14  pc 00077c33  /system/lib/libdvm.so 
(interpThreadStart(void*)+755)
        I/DEBUG   (  116):     #15  pc 00010870  /system/lib/libc.so 
(__thread_entry+240)
        I/DEBUG   (  116):     #16  pc 00019755  /system/lib/libc.so
        I/DEBUG   (  116):
        I/DEBUG   (  116): stack:
        I/DEBUG   (  116):          9149b590  00000000
        I/DEBUG   (  116):          9149b594  00000000
        I/DEBUG   (  116):          9149b598  00000000
        I/DEBUG   (  116):          9149b59c  00000000
        I/DEBUG   (  116):          9149b5a0  00000000
        I/DEBUG   (  116):          9149b5a4  00000000
        I/DEBUG   (  116):          9149b5a8  00000000
        I/DEBUG   (  116):          9149b5ac  00000000
        I/DEBUG   (  116):          9149b5b0  00000000
        I/DEBUG   (  116):          9149b5b4  00000000
        I/DEBUG   (  116):          9149b5b8  00000000
        I/DEBUG   (  116):          9149b5bc  00000000
        I/DEBUG   (  116):          9149b5c0  00000000
        I/DEBUG   (  116):          9149b5c4  00000000
        I/DEBUG   (  116):          9149b5c8  00000000
        I/DEBUG   (  116):          9149b5cc  00000000
        I/DEBUG   (  116):     #00  9149b5d0  00000000
        I/DEBUG   (  116):          9149b5d4  b67a0229  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b5d8  b67a4cb7  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b5dc  00000000
        I/DEBUG   (  116):          9149b5e0  6c756e28
        I/DEBUG   (  116):          9149b5e4  0000296c
        I/DEBUG   (  116):          9149b5e8  00000000
        I/DEBUG   (  116):          9149b5ec  00000000
        I/DEBUG   (  116):          9149b5f0  00000000
        I/DEBUG   (  116):          9149b5f4  00000000
        I/DEBUG   (  116):          9149b5f8  00000000
        I/DEBUG   (  116):          9149b5fc  00000000
        I/DEBUG   (  116):          9149b600  00000000
        I/DEBUG   (  116):          9149b604  00000000
        I/DEBUG   (  116):          9149b608  00000000
        I/DEBUG   (  116):          9149b60c  00000000
        I/DEBUG   (  116):          ........  ........
        I/DEBUG   (  116):     #01  9149b800  00000005
        I/DEBUG   (  116):          9149b804  b67a0229  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b808  b67a7474  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b80c  a72cd7b0  /dev/ashmem/dalvik-heap 
(deleted)
        I/DEBUG   (  116):          9149b810  b784b9c4  [heap]
        I/DEBUG   (  116):          9149b814  e633d3f6
        I/DEBUG   (  116):          9149b818  b670053b  /system/lib/libdvm.so 
(dvmInterpret(Thread*, Method const*, JValue*)+11)
        I/DEBUG   (  116):          9149b81c  b67d8c98  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b820  9e83e39d  
/data/dalvik-cache/system@framew...@framework.jar@classes.dex
        I/DEBUG   (  116):          9149b824  95a08e14
        I/DEBUG   (  116):          9149b828  9149b878  [stack:22651]
        I/DEBUG   (  116):          9149b82c  b67d8c98  /system/lib/libdvm.so
        I/DEBUG   (  116):          9149b830  b7c37728  [heap]
        I/DEBUG   (  116):          9149b834  00000000
        I/DEBUG   (  116):          9149b838  9149b878  [stack:22651]
        I/DEBUG   (  116):          9149b83c  b6740094  /system/lib/libdvm.so 
(GetStringUTFChars(_JNIEnv*, _jstring*, unsigned char*)+100)
        I/DEBUG   (  116):     #02  9149b840  b7c37728  [heap]
        I/DEBUG   (  116):          9149b844  a72cd7b0  /dev/ashmem/dalvik-heap 
(deleted)
        I/DEBUG   (  116):          9149b848  9b71c0e6  
/system/lib/libwebcore.so
        I/DEBUG   (  116):          9149b84c  b7c37728  [heap]
        I/DEBUG   (  116):          9149b850  9149b810  [stack:22651]
        I/DEBUG   (  116):          9149b854  b7c37728  [heap]
        I/DEBUG   (  116):          9149b858  01000000
        I/DEBUG   (  116):          9149b85c  9e83e39c  
/data/dalvik-cache/system@framew...@framework.jar@classes.dex
        I/DEBUG   (  116):          9149b860  9f4b0cf4  
/dev/ashmem/dalvik-LinearAlloc (deleted)
        I/DEBUG   (  116):          9149b864  00000000
        I/DEBUG   (  116):          9149b868  b676b52b  /system/lib/libdvm.so 
(dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, char*)+11)
        I/DEBUG   (  116):          9149b86c  9baad488  
/system/lib/libwebcore.so
        I/DEBUG   (  116):          9149b870  9149b928  [stack:22651]
        I/DEBUG   (  116):          9149b874  b7c77d90  [heap]
        I/DEBUG   (  116):          9149b878  9149b8e8  [stack:22651]
        I/DEBUG   (  116):          9149b87c  9aebd598  
/system/lib/libwebcore.so (android::jstringToStdString(_JNIEnv*, _jstring*)+72)
        I/DEBUG   (  116):
        I/DEBUG   (  116): memory map around fault addr deadd00d:
        I/DEBUG   (  116):     bfafc000-bfb1d000 [stack]
        I/DEBUG   (  116):     (no map for address)
        I/DEBUG   (  116):     (no map above)
        I/BootReceiver(  262): Copying /data/tombstones/tombstone_01 to DropBox 
(SYSTEM_TOMBSTONE)
        D/dalvikvm(  262): GC_FOR_ALLOC freed 873K, 15% free 17617K/20679K, 
paused 6ms, total 6ms
        W/InputDispatcher(  262): channel '5384cd6c 
com.pingplot.unbill/com.pingplot.unbill.MainActivity (server)' ~ Consumer 
closed input channel or an error occurred.  events=0x9
        E/InputDispatcher(  262): channel '5384cd6c 
com.pingplot.unbill/com.pingplot.unbill.MainActivity (server)' ~ Channel is 
unrecoverably broken and will be disposed!
        D/Zygote  (  164): Process 22591 terminated by signal (11)
        D/dalvikvm(  262): GC_FOR_ALLOC freed 221K, 14% free 17902K/20679K, 
paused 16ms, total 16ms
        W/InputDispatcher(  262): Attempted to unregister already unregistered 
input channel '5384cd6c com.pingplot.unbill/com.pingplot.unbill.MainActivity 
(server)'
        I/qtaguid (  262): Failed write_ctrl(s 0 10048) res=-1 errno=1
        W/NetworkManagementSocketTagger(  262): setKernelCountSet(10048, 0) 
failed with errno -1
        I/WindowManager(  262): WINDOW DIED Window{5384cd6c 
com.pingplot.unbill/com.pingplot.unbill.MainActivity paused=false}
        I/ActivityManager(  262): Process com.pingplot.unbill (pid 22591) has 
died.
        W/ActivityManager(  262): Force removing ActivityRecord{538bec2c 
com.pingplot.unbill/.MainActivity}: app died, no saved state
        I/WindowState(  262): WIN DEATH: Window{5384cd6c 
com.pingplot.unbill/com.pingplot.unbill.MainActivity paused=false}
        I/WindowState(  262): WIN DEATH: Window{538cfab8 SurfaceView 
paused=false}
        I/qtaguid (  262): Failed write_ctrl(s 1 10021) res=-1 errno=1
        W/NetworkManagementSocketTagger(  262): setKernelCountSet(10021, 1) 
failed with errno -1
        D/dalvikvm(  262): GC_FOR_ALLOC freed 1032K, 18% free 17076K/20679K, 
paused 6ms, total 7ms
        W/EGL_genymotion(  473): eglSurfaceAttrib not implemented
        I/qtaguid (  262): Failed write_ctrl(s 0 10014) res=-1 errno=1
        W/NetworkManagementSocketTagger(  262): setKernelCountSet(10014, 0) 
failed with errno -1
        D/dalvikvm(  262): GC_CONCURRENT freed 1676K, 19% free 16893K/20679K, 
paused 1ms+1ms, total 9ms


> The android implementation of file transfer plugin should not depend on the 
> concrete class android.webkit.CookieManager
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-5059
>                 URL: https://issues.apache.org/jira/browse/CB-5059
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin File Transfer
>    Affects Versions: Master
>         Environment: cordova-android, git branch 3.0.x
>            Reporter: Junmin
>             Fix For: Master
>
>
> The android implementation of file transfer plugin leverages the class 
> android.webkit.CookieManager, which depends on the concrete web 
> infrastructure android.webkit.WebView. This dependence ruins the portability 
> of the plugin. For example, it could not run on a substantial implementation 
> of CordovaWebView which based on a android third party component(such as 
> chromium for android).
> Following is the crash log when initializing the CookieManager without 
> android.webkit.WebView:
> I/dalvikvm(5006): java.lang.IllegalStateException: Call 
> CookieSyncManager::createInstance() or create a webview before using this 
> class
> I/dalvikvm(5006):   at 
> android.webkit.JniUtil.checkInitialized(JniUtil.java:44)
> I/dalvikvm(5006):   at 
> android.webkit.JniUtil.getDatabaseDirectory(JniUtil.java:65)
> I/dalvikvm(5006):   at 
> android.webkit.CookieManagerClassic.nativeGetCookie(Native Method)
> I/dalvikvm(5006):   at 
> android.webkit.CookieManagerClassic.getCookie(CookieManagerClassic.java:109)
> I/dalvikvm(5006):   at 
> android.webkit.CookieManagerClassic.getCookie(CookieManagerClassic.java:96)
> I/dalvikvm(5006):   at 
> org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:747)



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

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

Reply via email to