Error Method code too large when call cfc with a lot function inside

Description

When I upgrade my lucee to 5.3.5.92 I get strange error Method code too large! when call the cfc with a lot function. But this error is sometimes, if I restart the lucee then error is gone, but after some minutes used, the error will come again. Total line in the cfc around 4000 line. But this problem only at 5.3.5.93
if I downgrade to 5.3.4.80 the calling to this function is fine.
FYi, I run this lucee under docker-commandbox 5.0.0

 

lucee.runtime.exp.NativeException: Method code too large!
at org.objectweb.asm.MethodWriter.a(Unknown Source)
at org.objectweb.asm.ClassWriter.toByteArray(Unknown Source)…

Attached is complete stacktrace error

 

Environment

None

Attachments

1

Activity

Show:

Harry Klein 19 October 2020 at 15:38

Maybe related to LDEV-3093

Michael Offner 11 May 2020 at 12:54

will close this ticket as duplicate

Michael Offner 11 May 2020 at 12:52

duplicate of

Michael Offner 11 May 2020 at 12:50

it happens after the code was compiled, when Lucee tries to rename the created class because it is an update.

Michael Offner 11 May 2020 at 12:46

when Lucee encounter this issue, i splits automatically the code as good it can, we normally only see this issue when Lucee cannot split the code.

Could be that updating the Lucee version changed the amount of bytecode created in your case.

To solve this we really would need the file in question

Duplicate

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 5 May 2020 at 12:36
Updated 19 October 2020 at 15:38
Resolved 11 May 2020 at 12:54