GWT compiler hangs when "Compiling permutation 0"

608 views
Skip to first unread message

tunichtviel

unread,
Dec 9, 2011, 9:49:56 PM12/9/11
to Google Web Toolkit
Compiling my application hangs GWT when it does compile "Permutation
0". The GWT compiler then uses 100% CPU but never finishes compiling.

I spent quite some time tyring to narrow down the problem. Not
successful yet. I am really stuck with that problem.

Here is the situation:
1. I use the GWT compiler via ant. No Eclipse.
2. When I put comments before some lines of code, then the application
will compile (but not work of course, because of the missing code).
But this cannot be narrowed down to certain lines of code. Seems more
that just several lines of code need to be put in comments in order to
avoid the compiler hang.
For example:
- putting comments before line A and B will compile
- putting comments before line C and D will compile
Confusing for me, I did not yet understand what is going on there.
3. My application did compile fine some time before, in an older
version. But I have not been able to reconstruct a working version by
now.
4. The hang occurs with GWT version 2.3.0 and 2.4.0
5. The hang also occurs with a second environment which I did set up
from scratch
6. Of course I tried to increase the memory size for the Java VM
7. Additional logging in GWT produces tons of output; but it ends with
the message "Compiling permutation 0...". So the additional logging
did not help me.


Do you have an idea what I could do to narrow down the problem ?

Or if a GWT developer could look at the problem ?
Here is the source: http://www.kugihan.de/dict/download/development/GWT/Java_for_GWT.zip
And here is the GWT output from "-logLevel ALL":
http://www.kugihan.de/dict/download/development/GWT/GWT_output.txt


Thanks a lot for your help !

Regards,
Gert

tunichtviel

unread,
Dec 15, 2011, 1:53:50 PM12/15/11
to Google Web Toolkit
I finally found the problem by attaching a Java debugger to the GWT
compiler. The Javascript source code included the following line:

if (true) {

Seems there is a bug in the GWT compiler that does not correctly
handle that line of code.

Jens

unread,
Dec 15, 2011, 2:14:28 PM12/15/11
to google-we...@googlegroups.com
I think you should file a bug for this and/or maybe post this issue in the Google Web Toolkit Contributors group.

Would be great if you can narrow your issue down to a very simple GWT app.

-- J.

tunichtviel

unread,
Dec 21, 2011, 2:01:04 PM12/21/11
to Google Web Toolkit
Ok, I will try to create a mini-app which reproduces the problem and
then post a bug report.

Greetings,
Gert

Mateusz Matela

unread,
Apr 22, 2015, 1:40:10 PM4/22/15
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages