Comments (6)
@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.
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.
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.
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.
@Zazama sure. I sent you an email with that mp3 file.
from node-id3.
@Zazama Thank you. It works wonderfully with that one
from node-id3.
Related Issues (20)
- length/TLEN HOT 2
- Not working with typescript HOT 2
- (Existing) tag for 'year' not returned HOT 5
- ImageBuffer returns undefined after editing other tags HOT 2
- Explain in docs that `write` doesn't create new file =) HOT 4
- "releaseTime" tag not read from AIFF file HOT 6
- Duration not supported HOT 1
- Add constants for obscure tag values HOT 7
- update function does not take v4 tags into account
- Changes and fixes for new API release
- Updating tags in AIFF files makes tags/audio unreadable by other applications HOT 5
- Incorrect timestamps on Syncronized lyrics HOT 16
- Setting synchronisedLyrics to undefined throws an error HOT 4
- [BuG] MP3 File is corrupted HOT 8
- Not reading id3v1 HOT 1
- Support for audio formats other than mp3 HOT 4
- Support large files HOT 2
- Issues with metadata being read by certain players HOT 2
- Basic adding tags not working HOT 5
- iTunes/Apple Music GRP1 grouping tag is not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-id3.