PDA

View Full Version : Setting JS Resource url with "./" can cause closure compiler to exceed GC limit



Joe Kuan
20 Sep 2017, 8:24 AM
SA version: 4.2.2.282 (Modern Framework)

In fact, this is quite a horrible bug on SA, took me whole day figuring why everything suddenly gone wrong.

The default setting for classpath in app.json is



"classpath": [
"app"
],


If I add a JS Resource with a url property "./md5.js" which is a valid path and SA shows the js content, the classpath is changed to



"classpath": "${app.dir}/app,${app.dir}/./"


When I click Build, SA just hangs for a long time and build fails:


[INF] Processing data with ClosureCompressor
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: GC overhead limit exceeded
[ERR] at com.google.javascript.jscomp.parsing.IR
[ERR] Factory$TransformDispatcher.processBlock(IRFactory.java:1100)
[ERR]
[ERR] Total time: 2 minutes 50 seconds


Revert the app.json change, set the url as "md5.js", everything works fine.

Zeusss82
1 Oct 2017, 11:52 PM
I have the same problem, after upgrade



[LOG] Fashion build completed in 9.787 sec.
[INF] Appending content to /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/bootstrap.js
[INF] Writing content to /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/bootstrap.json
[INF] Loading Build Environment
[LOG] Fashion waiting for changes...
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: GC overhead limit exceeded
[ERR]
[ERR] Total time: 2 minutes 32 seconds
Exception in thread "Thread-53" com.sencha.exceptions.BasicException: com.sencha.exceptions.ExAnt: /Users/MjBosss/bin/Sencha/Architect/Cmd/6.5.1.240/ant/build/app/build-impl.xml:292: The following error occurred while executing this line:
/Users/MjBosss/bin/Sencha/Architect/Cmd/6.5.1.240/ant/build/app/init-impl.xml:436: com.sencha.exceptions.BasicException: GC overhead limit exceeded

Zeusss82
2 Oct 2017, 3:48 AM
I have the same problem, after upgrade, but during built is

[INF] Loading app json manifest...
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\.' is equivalent to just '.') -- /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/ext/packages/core/src/data/validator/IPAddress.js:29:507
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\.' is equivalent to just '.') -- /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/ext/packages/core/src/data/validator/IPAddress.js:29:622
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\.' is equivalent to just '.') -- /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/ext/packages/core/src/data/validator/IPAddress.js:29:507
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\.' is equivalent to just '.') -- /Users/MjBosss/Lavori/QMap V3/QMap_Prod/Client/CS/ext/packages/core/src/data/validator/IPAddress.js:29:622
[INF] Processing data with CmdJavascriptCompressor
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException
[ERR] at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTas
[ERR] k.java:52)
[ERR]
[ERR] Total time: 4 minutes 17 seconds
Exception in thread "Thread-48"

aravindballa
29 Nov 2017, 7:03 AM
Hi,


We are currently working on backlogged forum entries. I am currently working on this and will post an update.


Regards,
Aravind

aravindballa
5 Dec 2017, 4:37 AM
This is a bug from the CMD. The parser in CMD is configured for filenames and not the actual path. I have opened a bug in our tracker. Thanks for the report.