"Maximum call stack size exceeded" on chrome and "too much recursion" on FF (gwt 2.2 web mode)

852 views
Skip to first unread message

tekbe

unread,
Mar 7, 2011, 7:07:12 AM3/7/11
to Google Web Toolkit
Hi,

when running our GWT 2.2 application in web mode, we get these
javascript errors:

Chrome 10.0.648.127 beta:
Uncaught RangeError: Maximum call stack size exceeded

(same error on Safari)

Firefox 3.6.13:
too much recursion
function Tnb(b,c,d){return a=new Yob,a.l=b,a.m=c,a.h=d,a}

No error on ie8.

We use plain GWT 2.2 without any thirdparty libs. The size of the
compiled JavaScript is about 1MB (obfuscated). When running in dev
mode everything works fine.

We already tried the suggested solutions -draftCompile and code
splitting, but it didn't solve the problem.

The error occurs after the JavaScript equivalent of loading the entry
point class but before the JavaScript equivalent of instantiating the
entry point class (as we can tell by the log messages).

Another odd thing: when we try to debug the JavaScript code with
Venkman in FF, the problem disappears!

We really need help on this. Any help, any hint on how to dig deeper
into the problem would be highly appreciated.


regards,
tekbe

tekbe

unread,
Mar 8, 2011, 7:13:03 AM3/8/11
to Google Web Toolkit
After some JavaScript debugging, we found the error.

We are using a custom formatter for GWT 2.2 logging which extends the
abstract java.util.logging.Formatter. This works as long we don't call
the method formatMessage(LogRecord record) of the base class. The call
of formatMessage causes the error.

I think this might be a GWT bug. Should I create a bug report?

Juan Pablo Gardella

unread,
Mar 8, 2011, 12:58:13 PM3/8/11
to google-we...@googlegroups.com
I think this is a bug.

2011/3/8 tekbe <tim_e...@gmx.de>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


tekbe

unread,
Mar 10, 2011, 6:45:19 AM3/10/11
to Google Web Toolkit
I added a bug report:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6123

On 8 Mrz., 18:58, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages