[
https://issues.apache.org/jira/browse/CB-6055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13904470#comment-13904470
]
Ian Clelland commented on CB-6055:
----------------------------------
{{FileEntry}} objects contain {{FileSystem}}s, which contain {{FileEntry}}s
again :(
They are unfortunately not JSON-serializable at the moment. I suspect that the
Camera plugin is trying to log a FileEntry, throwing the error, which is then
being caught by the try/catch clause in the bridge code.
> Converting Circular Structure to JSON?
> ---------------------------------------
>
> Key: CB-6055
> URL: https://issues.apache.org/jira/browse/CB-6055
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin Camera
> Reporter: Joe Bowser
> Assignee: Andrew Grieve
> Priority: Minor
>
> This stack trace appeared when I tried testing your camera fix. Since I'm
> still figuring out exactly how you fixed this, I'm wondering if you can
> figure out what this means. Can you and Ian look at this?
> BTW: Good job on the fix, I think you guys killed five bugs at once with this
> one.
> D/CordovaLog(11549): file:///android_asset/www/cordova.js: Line 1036 :
> processMessage failed: Stack: TypeError: Converting circular structure to JSON
> D/CordovaLog(11549): at Object.stringify (native)
> D/CordovaLog(11549): at file:///android_asset/www/camera/index.html:149:86
> D/CordovaLog(11549): at file:///android_asset/www/camera/index.html:102:65
> D/CordovaLog(11549): at success
> (file:///android_asset/www/plugins/org.apache.cordova.file/www/resolveLocalFileSystemURI.js:55:17)
> D/CordovaLog(11549): at Object.cordova.callbackFromNative
> (file:///android_asset/www/cordova.js:292:54)
> D/CordovaLog(11549): at processMessage
> (file:///android_asset/www/cordova.js:1029:21)
> D/CordovaLog(11549): at Function.androidExec.processMessages
> (file:///android_asset/www/cordova.js:1063:13)
> D/CordovaLog(11549): at pollOnce
> (file:///android_asset/www/cordova.js:933:17)
> D/CordovaLog(11549): at pollOnceFromOnlineEvent
> (file:///android_asset/www/cordova.js:928:5)
> I/chromium(11549): [INFO:CONSOLE(1036)] "processMessage failed: Stack:
> TypeError: Converting circular structure to JSON
> I/chromium(11549): at Object.stringify (native)
> I/chromium(11549): at file:///android_asset/www/camera/index.html:149:86
> I/chromium(11549): at file:///android_asset/www/camera/index.html:102:65
> I/chromium(11549): at success
> (file:///android_asset/www/plugins/org.apache.cordova.file/www/resolveLocalFileSystemURI.js:55:17)
> I/chromium(11549): at Object.cordova.callbackFromNative
> (file:///android_asset/www/cordova.js:292:54)
> I/chromium(11549): at processMessage
> (file:///android_asset/www/cordova.js:1029:21)
> I/chromium(11549): at Function.androidExec.processMessages
> (file:///android_asset/www/cordova.js:1063:13)
> I/chromium(11549): at pollOnce
> (file:///android_asset/www/cordova.js:933:17)
> I/chromium(11549): at pollOnceFromOnlineEvent
> (file:///android_asset/www/cordova.js:928:5)", source:
> file:///android_asset/www/cordova.js (1036)
> W/dalvikvm( 2274): JNI: unpinPrimitiveArray(0x420426e0) failed to find entry
> (valid=1)
> W/dalvikvm( 2274): JNI: unpinPrimitiveArray(0x42021d08) failed to find entry
> (valid=1)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)