lbthomsen / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMEPLOT: Infinite loop in _getBaseURL method while loading text data if deployed in adobe air environment #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
While trying to use timeplot in offline mode in adobe air environment it
throws RangeError: Maximum call stack size exceeded. "XmlHttp: Error
handling onReadyStateChange" while loading a text data file.

The problem occurs in Timeplot.DefaultEventSource.prototype.loadText method
when it tries to execute the following statement "var base =
this._getBaseURL(url);" which apparently is completely unnecessary as we
are not using the base variable inside this method.

In Adobe air environment if you load the file from application folder the
base URL looks like "app:/mainpage.html". The reason it goes in infinite
loop is because of the implementation of
Timeline.DefaultEventSource.prototype._getBaseURL method cannot handle the
above URL.

After removing the call to this._getBaseURL method it was able to draw the
graph.

[Submitted by Shailesh Hingole on simile.mit.edu]

Original issue reported on code.google.com by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 5:47

GoogleCodeExporter commented 8 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 6:42