# MP3 decoder crashes on this file

**URL:** <https://forum.juce.com/t/mp3-decoder-crashes-on-this-file/12563>\
**Category:** General JUCE discussion\
**Created:** [March 17, 2014, 6:11am UTC](https://forum.juce.com/t/mp3-decoder-crashes-on-this-file/12563 "2014-03-17T06:11:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snaiil](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@snaiil](https://forum.juce.com/u/snaiil)\
**Post date:** [March 17, 2014, 6:11am UTC](https://forum.juce.com/t/mp3-decoder-crashes-on-this-file/12563/1 "2014-03-17T06:11:00Z")

</div>

Hi,

I encountered an mp3 file that crashes the built-in decoder. Please have a look.&nbsp;

The file is here&nbsp;https://www.dropbox.com/s/3fz2viqzvhlo377/Sleep%20Away.mp3

It is from Win 7's sample music folder.

&nbsp;

maxBytesToRead in this case is less than 0.

**Call Stack**  
&nbsp; &nbsp; &nbsp;play.exe!juce::BufferedInputStream::read(void \* destBuffer, int maxBytesToRead) Line 134&nbsp;&nbsp; &nbsp;C++  
&nbsp;&nbsp;&nbsp; &nbsp;play.exe!juce::MP3Decoder::MP3Stream::decodeNextBlock(float \* const out0, float \* const out1, int & done) Line 1488&nbsp;&nbsp; &nbsp;C++  
&nbsp;&nbsp;&nbsp; &nbsp;play.exe!juce::MP3Decoder::MP3Reader::readNextBlock() Line 3044&nbsp;&nbsp; &nbsp;C++  
&nbsp;&nbsp;&nbsp; &nbsp;play.exe!juce::MP3Decoder::MP3Reader::readSamples(int \* \* destSamples, int numDestChannels, int startOffsetInDestBuffer, \_\_int64 startSampleInFile, int numSamples) Line 2999&nbsp;&nbsp; &nbsp;C++  
&nbsp;&nbsp;&nbsp; &nbsp;play.exe!juce::AudioFormatReader::read(int \* const \* destSamples, int numDestChannels, \_\_int64 startSampleInSource, int numSamplesToRead, bool fillLeftoverChannelsWithCopies) Line 69&nbsp;&nbsp; &nbsp;C++  
&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 17, 2014, 9:51am UTC](https://forum.juce.com/t/mp3-decoder-crashes-on-this-file/12563/2 "2014-03-17T09:51:13Z")

</div>

Thanks, I'll take a look at that!
