Skip to content

Blazor failed to load large fils #15777

@kant2002

Description

@kant2002

It is likely not Blazor issue per se, but I would be good if it fail more gracefully, if some inherent limitations from the Browser.

Basically I have following error in Chrome:

mono.js:1 Uncaught (in promise) RuntimeError: memory access out of bounds
    at wasm-function[290]:104
    at wasm-function[2458]:125
    at wasm-function[563]:16
    at wasm-function[246]:115
    at wasm-function[2428]:33
    at wasm-function[2429]:41
    at wasm-function[4877]:10
    at Module._mono_wasm_string_from_js (http://localhost:58134/_framework/wasm/mono.js:1:173587)
    at ccall (http://localhost:58134/_framework/wasm/mono.js:1:5651)
    at http://localhost:58134/_framework/wasm/mono.js:1:6032

My scenario following. I have form with input file.
User select text file.
Then application load file, split by lines and process file.
When I load file with only 914KB it works. When I load larger file 7876KB it fails to load with aforementioned error. Not sure who is to blame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions