Titanium: Embedding a website in a WebView producing "Maximum call stack size exceeded"

Building a Titanium application using sdk 5.1.0. Opening a WebView is producing a Maximum call stack size exceeded JavaScript error on the embeded website itself

However, opening the same website within the browser works fine. The error only occurs using Android (Both simulator and device).

Is there a way to increase the callstack size for the WebView component in android devices?


When the call stack exceeds, it is not because the call stack is too small, it usually always is because you have an infinite loop. So say you monitor the load event of the WebView, and you change url based on that, it will load again, url will change again, etc.

In this case, you say it is triggered because of only a webview added. That means your javascript on your site is doing something to loop it. Are you for example changing the layout of the site based on width through JavaScript?

Again, call stack exceeds is almost always due to infinite loop. Check your code properly!

Need Your Help

Get the most out of high performance MDB

performance transactions application-server message-driven-bean

Application server creates a new transaction before calling MDB's onMessage method. Also I am processing database update in onMessage method. Transactions create additional overhead and processing

How do I call a method when a form is submitted?

javascript jquery

My goal is to have the method onClickLogin called when I press the submit button in a form. But only the method initialize (for loginPageController) is called. This code works fine, when every meth...