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

Runtime Memory Error after Trunk Build (0.20.3) #855

Open
mainstreamstudios opened this issue Aug 20, 2024 · 1 comment
Open

Runtime Memory Error after Trunk Build (0.20.3) #855

mainstreamstudios opened this issue Aug 20, 2024 · 1 comment

Comments

@mainstreamstudios
Copy link

Hello! I encountered a runtime error when using Trunk 0.20.3, installed via cargo install trunk. The error only appeared when running after having built using a GitHub Actions workflow, not during local builds. When reverting to Trunk 0.20.2, the workflow worked fine.

Error Details:

"/rust/deps/dlmalloc-0.2.6/src/dlmalloc.rs:1198:13:
assertion failed: psize <= size + max_overhead

Stack:

Error
at imports.wbg.__wbg_new_abda76e883ba8a5f "

Workflow Configuration:

  - name: Install Trunk 0.20.3
    run: |
      cargo install trunk
      
 - name: Build project
    run: |
      cd $GITHUB_WORKSPACE
      RUSTFLAGS="-D unused-must_use" cargo build --target wasm32-unknown-unknown --release
      trunk build --release

The 0.20.2 binary worked without issues, while 0.20.3 caused this runtime problem. Appears to be something related to the integrity hashing or nonce.

Also noticed some release configurations added to Cargo.toml that I did not add that may have contributed but unsure of that.

Any insights on this discrepancy or potential fixes would be greatly appreciated. Thanks!

@ctron
Copy link
Collaborator

ctron commented Aug 26, 2024

Hm, interesting. Can you create a small reproducer?

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