Skip to content

memory issues #1

@Fil

Description

@Fil

Hello, thanks a lot for this wrapper 👏

I'm loading it in @observablehq with https://bundle.run/matrix-eig, see https://beta.observablehq.com/@fil/hello-matrix-eig

I noticed that if you request too much memory once (with a large matrix, N=500 in my example), then there is no way to scale back, the page is as good as dead and one must reload to clear the error.

abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 16777216, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ") at Error
    at jsStackTrace (https://bundle.run/matrix-eig@1.0.0:117:17947)

(Given the error message I'm not sure there is a way around this.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions