[AC-1948] iOS: intermittent crashes on Ti.App.fireEvent to a WebView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-03T22:28:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Andrey Chirikba |
Assignee | Shak Hossain |
Created | 2013-03-13T17:03:06.000+0000 |
Updated | 2016-03-08T07:40:52.000+0000 |
Description
I have a WebView with a graph in it (Flot charts). Upon fetching graph data from internet, I do a Ti.App.fireEvent to the event listener inside the WebView context. I am still testing it (due to some irregular behaviour) and now got a full app crash. Attached are crash reports. The relevant piece of code is below:
Ti.App.fireEvent("renderChart", {
chartData: chartData,
options: options
});
chartData is an array of [Date, Number] elements. Options is a hash of Flot options. It includes other hashes, scalar variables and one function (which I know will be serialized away). I can provide an example of these values if needed.
Normally this works correctly, but this time I was quickly switching between multiple screens and it crashed.
Attachments
File | Date | Size |
---|---|---|
IRAPP Crash 3-13-13 5-18 PM.crash | 2013-03-14T09:02:28.000+0000 | 35269 |
IRAPP crash log | 2013-03-13T17:03:06.000+0000 | 9784 |
Managed to crash it the second time with exact same crash report at the same point.
Hello, If you can provide a full example, that would be great. I don't have any experience of crashes normally, so that would definitely help to isolate the issue. Thank you
Hi, Davide, In what form would you like to have an example? I can provide a packaged app and relevant code snippets, if needed, but I don't think I'd be able to provide full app source code (app is being launched for a first customer). Andrey.
Hello, If you can create a sample code (2-3 files) that reproduces the issue, that would be perfect.
Hi, At this moment I cannot provide a reproducible testcase. However, here are the steps to reproduce it on your iPad: 1. Go to http://tinyurl.com/btzjoku (redirects to iTunes, as I don't want direct links with customer name in bug report). 2. Download the first (and currently the only) app. 3. Reproduce the error within a minute by doing the following: a) open the menu (top-right button); b) choose any menu item; c) open the menu; d) choose the item "Share price"; e) tap quickly on the graph that appears on the page; f) repeat. I managed to reproduce it within half a minute. Let me know if you need more info.
Needs a small reproducible test case.
Closing since we can't reproduce the issue and Andrey has not provided us runnable test code.