RblSb / SyncTube

Synchronized video viewing with chat and other features (one-channel web service)
MIT License
247 stars 52 forks source link

32 bit limit crash #29

Closed chia-gesundheit closed 2 years ago

chia-gesundheit commented 2 years ago

Any .mp4 thats played from local storage with a size bigger than ~2.15 billion Bytes crashes the server. Looks like a 32 bit Problem. Used Ubuntu OS is 64 bit with nodejs. Personally i use ffmpeg to split the .mp4 into parts smaller than 2.15 GB and then split the subs with "Subtitle Edit" at the correct time to get around this problem at the moment but especially with subs its some work. Error: "uncaughtException, { message : The value of "end" is out of range. It must be >= 0 && <= 9007199254740991. Received -2095218688, stack : RangeError [ERR_OUT_OF_RANGE]: The value of "end" is out of range. It must be >= 0 && <= 9007199254740991. Received -2095218688 at new ReadStream (internal/fs/streams.js:107:5) at Object.createReadStream (fs.js:1919:10) at Function.server_HttpServer.serveMedia (/home/me/SyncTube/build/server.js:3661:13) at Function.server_HttpServer.serveFiles (/home/me/SyncTube/build/server.js:3614:24) at Server. (/home/me/SyncTube/build/server.js:3888:22) at Server.emit (events.js:314:20) at parserOnIncoming (_http_server.js:779:12) at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17) }"