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

code: 'ERR_STRING_TOO_LONG' with big video files #107

Closed
MiljenkoLogozar opened this issue Nov 11, 2023 · 1 comment · Fixed by #110
Closed

code: 'ERR_STRING_TOO_LONG' with big video files #107

MiljenkoLogozar opened this issue Nov 11, 2023 · 1 comment · Fixed by #110
Assignees

Comments

@MiljenkoLogozar
Copy link

Using video files which is 600MB create error:
○ Compiling /(rootpage)/page ... Error: Cannot create a string longer than 0x1fffffe8 characters at Object.slice (node:buffer:646:37) at Buffer.toString (node:buffer:865:14) at utf8BufferToString (E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\loader-runner\LoaderRunner.js:1:2114) at convertArgs (E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\loader-runner\LoaderRunner.js:1:4496) at iterateNormalLoaders (E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\loader-runner\LoaderRunner.js:1:5761) at E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\loader-runner\LoaderRunner.js:1:5426 at E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\webpack\bundle5.js:28:399845 at eval (eval at create (E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\webpack\bundle5.js:13:28867), <anonymous>:14:1) at Array.<anonymous> (E:\dev-OMashram\omashram.com\node_modules\next\dist\build\webpack\plugins\profiling-plugin.js:168:29) at runCallbacks (E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\webpack\bundle5.js:1:168123) at E:\dev-OMashram\omashram.com\node_modules\next\dist\compiled\webpack\bundle5.js:1:170035 at E:\dev-OMashram\omashram.com\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' }

Everything works perfectly with small video files (25MB).

@luwes luwes added the bug label Nov 11, 2023
@luwes
Copy link
Collaborator

luwes commented Nov 11, 2023

Thanks for reporting! is it a local video file or a remote file via https:// ?

luwes added a commit to luwes/next-video that referenced this issue Nov 13, 2023
Error: Cannot create a string longer than 0x1fffffe8 characters
@luwes luwes self-assigned this Nov 13, 2023
luwes added a commit that referenced this issue Nov 13, 2023
Error: Cannot create a string longer than 0x1fffffe8 characters
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

Successfully merging a pull request may close this issue.

2 participants