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

compiler hangs when generated code is too large #2894

Closed
charles-cooper opened this issue Jun 5, 2022 · 1 comment
Closed

compiler hangs when generated code is too large #2894

charles-cooper opened this issue Jun 5, 2022 · 1 comment
Labels
bug - codegen bug - type 0 compiler halts or panics instead of generating code bug - UX a bug related to UX

Comments

@charles-cooper
Copy link
Member

Version Information

  • vyper Version (output of vyper --version): v0.3.3

What's your issue about?

the following code would generate impractically large bytecode. the compiler hangs instead of raising an error.

struct StructNull:
  val: uint256

struct StructOne:
  structs: StructNull[MAX_UINT256]

map:public(HashMap[uint256,StructOne])

How can it be fixed?

@charles-cooper charles-cooper added bug - codegen bug - type 0 compiler halts or panics instead of generating code bug - UX a bug related to UX labels Jun 5, 2022
@charles-cooper
Copy link
Member Author

fixed - as of #3639 this raises a MemoryAllocationException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - codegen bug - type 0 compiler halts or panics instead of generating code bug - UX a bug related to UX
Projects
None yet
Development

No branches or pull requests

1 participant