pombreda / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

Build errors on Windows Vista #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install SVN and Maven
2. Get source code
3. Do the build

What is the expected output? What do you see instead?

It came out build errors as they are shown in the additional info section.

What version of the product are you using? On what operating system?

Windows Vista 32bit, Java 1.5.22-b3

Please provide any additional information below.

[INFO] [antlr3:antlr {execution: smaliLexer}]
[INFO] ANTLR: Processing source directory C:\android-sdk_r04
\smali\src\smali\src\m
ain\antlr3
ANTLR Parser Generator  Version 3.1.3 Mar 17, 2009 19:23:44
org\jf\smali\smaliLexer.g
error(10):  internal error: Can't get property javaCompressedTransition 
using method get/isJavaCompr
essedTransition from org.antlr.analysis.DFA instance : 
java.lang.OutOfMemoryError: Java heap space
java.util.ArrayList.<init>(ArrayList.java:113)
org.antlr.analysis.DFA.getRunLengthEncoding(DFA.java:357)
org.antlr.analysis.DFA.getJavaCompressedTransition(DFA.java:333)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:592)
org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:563)
org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty
(ASTExpr.java:514)
org.antlr.stringtemplate.language.ASTExpr.getObjectProperty
(ASTExpr.java:416)
org.antlr.stringtemplate.language.ActionEvaluator.attribute
(ActionEvaluator.java:351)
org.antlr.stringtemplate.language.ActionEvaluator.expr
(ActionEvaluator.java:136)
org.antlr.stringtemplate.language.ActionEvaluator.templateApplication
(ActionEvaluator.java:216)
org.antlr.stringtemplate.language.ActionEvaluator.expr
(ActionEvaluator.java:126)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:84)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:742)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1278)
org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:463)
org.antlr.Tool.generateRecognizer(Tool.java:607)
error(10):  internal error: Can't get property javaCompressedTransition 
using method get/isJavaCompr
essedTransition from org.antlr.analysis.DFA instance : 
java.lang.OutOfMemoryError: Java heap space
java.util.ArrayList.<init>(ArrayList.java:113)
org.antlr.analysis.DFA.getRunLengthEncoding(DFA.java:357)
org.antlr.analysis.DFA.getJavaCompressedTransition(DFA.java:333)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:592)
org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:563)
org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty
(ASTExpr.java:514)
org.antlr.stringtemplate.language.ASTExpr.getObjectProperty
(ASTExpr.java:416)
org.antlr.stringtemplate.language.ActionEvaluator.attribute
(ActionEvaluator.java:351)
org.antlr.stringtemplate.language.ActionEvaluator.expr
(ActionEvaluator.java:136)
org.antlr.stringtemplate.language.ActionEvaluator.templateApplication
(ActionEvaluator.java:216)
org.antlr.stringtemplate.language.ActionEvaluator.expr
(ActionEvaluator.java:126)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:84)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:742)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:722)
org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:659)
org.antlr.stringtemplate.language.ActionEvaluator.action
(ActionEvaluator.java:86)
org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:148)
org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:700)
org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1278)
org.antlr.codegen.Target.genRecognizerFile(Target.java:94)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:463)
org.antlr.Tool.generateRecognizer(Tool.java:607)
[INFO] --------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO] --------------------------------------------------------------------
----
[INFO] ANTLR caught 2 build errors.
[INFO] --------------------------------------------------------------------
----
[INFO] For more information, run Maven with the -e switch
[INFO] --------------------------------------------------------------------
----
[INFO] Total time: 34 seconds
[INFO] Finished at: Thu Dec 31 01:06:00 PST 2009
[INFO] Final Memory: 63M/63M
[INFO] --------------------------------------------------------------------
----

Original issue reported on code.google.com by me95...@gmail.com on 31 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
These params does not help:
"C:\Java\jre1.5.0_22\bin\javaw.exe" -Xss1024k -Xmn256M -Xms512M -Xmx1024M -
XX:MaxPermSize=1024M -jar "%1" %*

Original comment by me95...@gmail.com on 31 Dec 2009 at 10:01

GoogleCodeExporter commented 9 years ago
I'm not sure what you mean with those params. How are you specifying them?

I believe this can be resolved by giving maven more memory. You can use the
MAVEN_OPTS env var to specify additional java parameters it should use. i.e.

MAVEN_OPTS=”-Xmx1024m”

Original comment by JesusFre...@gmail.com on 31 Dec 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Thank you JF!

This works -> set MAVEN_OPTS=-Xmx1024m

Original comment by me95...@gmail.com on 31 Dec 2009 at 8:24

GoogleCodeExporter commented 9 years ago
Great :)

Original comment by JesusFre...@gmail.com on 31 Dec 2009 at 10:10