Giter Club home page Giter Club logo

Comments (6)

Zazama avatar Zazama commented on August 22, 2024 1

@SharkAttack86 Thank you, the problem with your file was due to the usage of an older version (ID3v2.2.0) that was not supported by node-id3. I've added basic read support (text frames + picture) and published a new version.

@RoyceTheBiker @freakysmurf There's a possibility that your issue is a different one with the same outcome (alloc overflowing), would you mind sending me your failing mp3? In the meantime, I've added a workaround so that alloc is not called if it would overflow. If there's a different issue with your mp3, the tags after the failing one would just not get read.

from node-id3.

RoyceTheBiker avatar RoyceTheBiker commented on August 22, 2024

I am getting the same error when attempting to read the file. It crashes on the NodeID3.read.

NodeID3.read(file, function(err, tags) {
	console.log('got a tag');
 });
buffer.js:269
    throw err;
    ^

RangeError [ERR_INVALID_OPT_VALUE]: The value "3116570010" is invalid for option "size"
    at Function.alloc (buffer.js:278:3)
    at NodeID3.getTagsFromBuffer (/mnt/hgfs/Development/GitLab.BigHouse/SiliconTao-open-source/JukeBox/backend/node_modules/node-id3/index.js:367:38)
    at NodeID3.<anonymous> (/mnt/hgfs/Development/GitLab.BigHouse/SiliconTao-open-source/JukeBox/backend/node_modules/node-id3/index.js:241:37)
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
[nodemon] app crashed - waiting for file changes before starting...

from node-id3.

danielepani avatar danielepani commented on August 22, 2024

Same error here. It seems related to some specific files. In my case, i got it in 1 file of like 50.000

buffer.js:324
    throw new ERR_INVALID_OPT_VALUE.RangeError('size', size);
    ^

RangeError [ERR_INVALID_OPT_VALUE]: The value "3083731024" is invalid for option "size"
    at Function.alloc (buffer.js:333:3)


    at NodeID3.getTagsFromBuffer (/home/daniele/node_modules/node-id3/index.js:367:38)
    at NodeID3.<anonymous> (/home/daniele/node_modules/node-id3/index.js:241:37)
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)

from node-id3.

Zazama avatar Zazama commented on August 22, 2024

Can you upload an affected mp3 or send it per mail to [email protected]?
The link in the first post is offline, sadly.

from node-id3.

danielepani avatar danielepani commented on August 22, 2024

@Zazama sure. I sent you an email with that mp3 file.

from node-id3.

danielepani avatar danielepani commented on August 22, 2024

@Zazama Thank you. It works wonderfully with that one

from node-id3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.