question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"

See original GitHub issue
buffer.js:269
    throw err;
    ^

RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"
    at Function.alloc (buffer.js:278:3)
    at new Buffer (buffer.js:180:19)
    at NodeID3.getTagsFromBuffer (C:\test\nodejs\node_modules\node-id3\index.js:328:31)
    at NodeID3.read (C:\test\nodejs\node_modules\node-id3\index.js:226:25)
    at NodeID3.update (C:\test\nodejs\node_modules\node-id3\index.js:269:32)

Test code:

var nodeID3 = require('node-id3');
    
let path = 'giuseppe-tomasi-di-lampedusa-der-leopard-1-4.mp3';
let tags = {
    title: 'Giuseppe Tomasi di Lampedusa: Der Leopard (1/4)',
    album: 'BR 2 | radioTexte'							
};

let success = nodeID3.update(tags, path);

giuseppe-tomasi-di-lampedusa-der-leopard-1-4.mp3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Zazamacommented, Nov 4, 2019

@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.

0reactions
SharkAttack86commented, Nov 4, 2019

@Zazama Thank you. It works wonderfully with that one

Read more comments on GitHub >

github_iconTop Results From Across the Web

The value "4191390185" is invalid for option "size"
RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"
Read more >
TypeError [ERR_INVALID_OPT_VALUE]: is invalid for option ...
The first parameter of dns.lookupService() is address , not host . According to Node.js document: dns.lookupService(address, port, callback).
Read more >
Error: Unknown RangeError (#773) · Issues - Antora - GitLab
Error: Unknown RangeError [ERR_INVALID_OPT_VALUE]: See cause (url: ... The value "2247965231" is invalid for option "size" at Function.
Read more >
The value "NaN" is invalid for option size - General Discussion
We are using the Sales Order object as a web service, and it occasionally returns "The value "NaN" is invalid for option "size""....
Read more >
Range error - The value "NaN" is invalid - Node-RED Forum
Errr, you are starting Node-Red from the command prompt. There is a problem with what the PLC is sending to Node-Red . There...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found