Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Large JSON objects cannot be validated #68

Open
marcusturewicz opened this issue Sep 30, 2019 · 0 comments
Open

Large JSON objects cannot be validated #68

marcusturewicz opened this issue Sep 30, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@marcusturewicz
Copy link
Owner

Describe the bug
Large JSON objects cannot be validated, the following error is shown in the console when you try to do so:

wasm-0070e642-2639:10 Uncaught (in promise) RuntimeError: memory access out of bounds

To Reproduce
Steps to reproduce the behavior:

  1. Copy the contents of this file to the clipboard https://gist.github.com/marcusturewicz/63985290c03386903ce2bdcad8b0bcbe
  2. Go to www.jsonvalidate.net, or run locally with PS > ./watch-run.ps1 and go to localhost:5000
  3. Paste the contents into the JSON editor
  4. Click Validate button
  5. Open the console, see the error

Expected behavior
JSON should be validated and the message JSON Valid! should be shown.

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS Mojave 10.14.6
  • Browser: Chrome 76
  • Version

Smartphone (please complete the following information):

Additional context
I believe this is due to mono memory limits. Once dotnet/aspnetcore#5617 is fixed, then we can set a higher default memory limit in order to handle X amount of JSON in memory at a time (X TBD).

@marcusturewicz marcusturewicz added the bug Something isn't working label Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant