Giter Site home page Giter Site logo

Invalid buffer data about musicmetadata HOT 15 CLOSED

leetreveil avatar leetreveil commented on July 21, 2024
Invalid buffer data

from musicmetadata.

Comments (15)

leetreveil avatar leetreveil commented on July 21, 2024

Both files worked ok for me:

jap

from musicmetadata.

enbrent avatar enbrent commented on July 21, 2024

I'm sorry for the very late response. Can I see your code? Also do you know if force saving a png buffer to a jpg would have any effects on the final image file?

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

@Kirasagi did you solve this problem?

from musicmetadata.

mavericken avatar mavericken commented on July 21, 2024

I think I may have seen this same bug or maybe a bit different one that is likely related. For me it only happens when musicmetadata is handling two requests simultaneously. It is causing the first few and last few characters in the picture buffer to be corrupt. I was able to work around it by scheduling one file at a time to the parser.
buffercompare

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

@mavericken that's interesting, do you have some code that I could run to try and reproduce?

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

@mavericken I just pushed version 0.4.0 out, can you try that?

from musicmetadata.

mavericken avatar mavericken commented on July 21, 2024

Thanks for your efforts. It didn't solve it. I have tried to make some simple reproduction code, but so far I can't reproduce with the simple code. It could be a problem with my code, but it still looks very much like its coming from musicmetadata. If/when I find what the problem is or reproduce with simple code, I will let you know.

from musicmetadata.

rmoak avatar rmoak commented on July 21, 2024

I'm late to the party on this one but I think I've been able to reproduce this. I've been testing with ~8 files with embedded data (including Song 1 above), I notice that the image parsing randomly fails when I pass a {duration: true} argument to the mm function. If I don't calculate duration then I can get the image data correctly consistently.

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

I would LOVE if we could somehow get a reproducible test case.

from musicmetadata.

the-eater avatar the-eater commented on July 21, 2024

Okay I have build an reproducible test case, run index.js and at least one (or even 2 :O) of the six images are corrupt. you can download it here (be aware it contains speedcore and other obnoxious music)

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

Thanks @Eaterofcode, I can reproduce this. Let me see if I can figure out what is going on.

from musicmetadata.

the-eater avatar the-eater commented on July 21, 2024

I hope you can because it has been a PITA. I wish you success music metadata lord

from musicmetadata.

the-eater avatar the-eater commented on July 21, 2024

Your statement

it will theoretically effect other container types.

is incorrect because all data turns into immutable objects except images

from musicmetadata.

leetreveil avatar leetreveil commented on July 21, 2024

I meant picture data within other container types (flac, ogg) etc. Good point though.

from musicmetadata.

the-eater avatar the-eater commented on July 21, 2024

Ah I see, sorry for the misunderstanding

from musicmetadata.

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.