Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in command 'compile': Class too large: MyClass #41

Open
MihaelIsaev opened this issue Jul 6, 2021 · 1 comment
Open

Error in command 'compile': Class too large: MyClass #41

MihaelIsaev opened this issue Jul 6, 2021 · 1 comment

Comments

@MihaelIsaev
Copy link

Hello, I'm trying to compile wasm file which contains Swift app inside and getting Class too large error.

org.objectweb.asm.ClassTooLargeException: Class too large: MyClass
	at org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:550)
	at asmble.compile.jvm.AsmToBinary.fromClassNode(AsmToBinary.kt:30)
	at asmble.compile.jvm.AsmToBinary.fromClassNode$default(AsmToBinary.kt:21)
	at asmble.cli.Compile.run(Compile.kt:72)
	at asmble.cli.Compile.run(Compile.kt:10)
	at asmble.cli.Command.runWithArgs(Command.kt:17)
	at asmble.cli.MainKt.main(Main.kt:31)

The wasm file is in attach.

Is there any chance to pass this limitation?
aaa.wasm.zip

@cretz
Copy link
Owner

cretz commented Jul 6, 2021

Looks like just too many constants. I'd have to dig into seeing what constants asmble is generating, but short of changing how asmble works, I don't think there's an easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants