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

1GB+ source file throwing an error on page load #27

Closed
heff opened this issue Aug 22, 2023 · 1 comment
Closed

1GB+ source file throwing an error on page load #27

heff opened this issue Aug 22, 2023 · 1 comment
Assignees

Comments

@heff
Copy link
Contributor

heff commented Aug 22, 2023

To recreate:

  1. Add a very big video source file to /video/files
  2. Import it into a page
  3. Load the page

Error

error uncaughtException: Error: Cannot create a string longer than 0x1fffffe8 characters
    at Object.slice (node:buffer:593:37)
    at Buffer.toString (node:buffer:811:14)
    at utf8BufferToString (.../loader-runner/LoaderRunner.js:1:2114)
...
.../node_modules/next/dist/compiled/webpack/bundle5.js:1:267649
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
  code: 'ERR_STRING_TOO_LONG'
@luwes luwes self-assigned this Dec 20, 2023
@luwes luwes added the bug label Dec 20, 2023
@luwes
Copy link
Collaborator

luwes commented Dec 20, 2023

was fixed in #110

@luwes luwes closed this as completed Dec 20, 2023
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