Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1948] iOS: intermittent crashes on Ti.App.fireEvent to a WebView

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-03T22:28:46.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndrey Chirikba
AssigneeShak Hossain
Created2013-03-13T17:03:06.000+0000
Updated2016-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

FileDateSize
IRAPP Crash 3-13-13 5-18 PM.crash2013-03-14T09:02:28.000+000035269
IRAPP crash log2013-03-13T17:03:06.000+00009784

Comments

  1. Andrey Chirikba 2013-03-13

    Managed to crash it the second time with exact same crash report at the same point.
  2. Davide Cassenti 2013-03-13

    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
  3. Andrey Chirikba 2013-03-14

    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.
  4. Davide Cassenti 2013-03-14

    Hello, If you can create a sample code (2-3 files) that reproduces the issue, that would be perfect.
  5. Andrey Chirikba 2013-03-28

    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.
  6. Jamie Buckley 2013-04-03

    Needs a small reproducible test case.
  7. Shak Hossain 2014-01-16

    Closing since we can't reproduce the issue and Andrey has not provided us runnable test code.

JSON Source