You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Stefan Kendall (JIRA)" <ji...@apache.org> on 2012/07/18 04:29:33 UTC
[jira] [Created] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Stefan Kendall created CB-1084:
----------------------------------
Summary: ICS TouchWiz - Reading/Writing files causes signal 11
Key: CB-1084
URL: https://issues.apache.org/jira/browse/CB-1084
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 1.9.0
Reporter: Stefan Kendall
Assignee: Joe Bowser
Priority: Critical
Attachments: project.tar.gz
I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-1084.
----------------------------
Resolution: Cannot Reproduce
This passes mobile-spec and your example isn't tied to any event. Yu have to have the page load first before you can do anything.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: Archive.zip, project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Stefan Kendall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419340#comment-13419340 ]
Stefan Kendall commented on CB-1084:
------------------------------------
window.requestFileSystem is undefined, in fact, and window.webkitRequestFileSystem *is* defined. Calling *this* method causes the crash.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: Archive.zip, project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-1084:
---------------------------
Priority: Minor (was: Critical)
Environment: This is on TouchWiz only on ICS, not on all of Android.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420816#comment-13420816 ]
Filip Maj commented on CB-1084:
-------------------------------
There are two issues with your example Stefan.
1. As Joe mentioned, your test is not tied to the Cordova {{deviceready}} event. This event is imperative to all Cordova applications. Cordova requires a bit of time to initialize itself, specifically it needs time to set up the webview-to-native bridge, as well as create all of the JavaScript objects that make up the Cordova API and hook them into various spots on the {{window}} object for users like you to be able to use it. Please take a read through the documentation about the [deviceready|http://docs.phonegap.com/en/2.0.0/cordova_events_events.md.html#deviceready] event.
2. {{window.requestFileSystem}} is one method that the Cordova API provides, but like I mentioned above, until the {{deviceready}} event fires, it will be undefined on certain platforms (like Android). {{window.webkitRequestFileSystem}} is probably a stub that made its way into the Android WebView but I would not rely on it working. It does not surprise me it is causing your application to crash.
I highly recommend you take a look at the [PhoneGap documentation for requestFileSystem|http://docs.phonegap.com/en/2.0.0/cordova_file_file.md.html#LocalFileSystem], specifically the Full Example. In that example you can see that before {{requestFileSystem}} is called, we attach to the {{deviceready}} _first and foremost_, and then only after that event fires do we start using the File API.
Hope that is helpful.
Cheers,
Fil
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: Archive.zip, project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Stefan Kendall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Kendall updated CB-1084:
-------------------------------
Attachment: project.tar.gz
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Critical
> Attachments: project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Stefan Kendall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419339#comment-13419339 ]
Stefan Kendall commented on CB-1084:
------------------------------------
In fact, it looks like window.requestFileSystem never calls the success *or* error callback functions. That's where the crash happens.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: Archive.zip, project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Stefan Kendall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Kendall updated CB-1084:
-------------------------------
Attachment: Archive.zip
This example attempts to write and read a file, and nothing else. Crashing is observed on ICS TouchWiz and not on CyanogenMod or non-touchwiz ics.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: Archive.zip, project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1084) ICS TouchWiz - Reading/Writing files
causes signal 11
Posted by "Stefan Kendall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419268#comment-13419268 ]
Stefan Kendall commented on CB-1084:
------------------------------------
I've created a much smaller minimal failing example, which I will attach. I've removed all UI/Sencha touch code, and I simply try to write, and then read, a file.
> ICS TouchWiz - Reading/Writing files causes signal 11
> -----------------------------------------------------
>
> Key: CB-1084
> URL: https://issues.apache.org/jira/browse/CB-1084
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.9.0
> Environment: This is on TouchWiz only on ICS, not on all of Android.
> Reporter: Stefan Kendall
> Assignee: Joe Bowser
> Priority: Minor
> Attachments: project.tar.gz
>
>
> I've narrowed down this signal 11 crashing bug to the reading and writing of data from files.
> With a Samsung Galaxy S2 on 2.3.6, the app boots and shows 'hello'. On CM7 and CM9, the app also boots. On ICS with TouchWiz, the app crasshes with 'signal 11' before anything renders.
> I've attached a project where the issue is reproduced.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira