PHP-ID3 icon indicating copy to clipboard operation
PHP-ID3 copied to clipboard

Memory allocation error on initial load...

Open bmcminn opened this issue 10 years ago • 1 comments

( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Allowed memory size of 134217728 bytes [128 megabytes] exhausted (tried to allocate 2147483648 bytes [2048 megabytes]) in C:\www\application\vendor\shubhamjain\php-id3\PhpId3\BinaryFileReader.php on line 118
Call Stack
# Time  Memory  Function  Location
1 0.0003  281416  {main}( ) ..\index.php:0
2 0.0166  700728  dispatch( ) ..\index.php:149
3 0.0166  705544  on( ) ..\dispatch.php:901
4 0.0167  706344  call_user_func_array ( )  ..\dispatch.php:833
5 0.0167  706376  {closure:C:\www\application\index.php:126-142}( )  ..\dispatch.php:833
6 0.0167  707608  generate_feed( )  ..\index.php:140
7 0.0189  948696  PhpId3\Id3TagsReader->readAllTags( )  ..\functions.php:218
8 0.0192  979512  PhpId3\BinaryFileReader->read( )  ..\Id3TagsReader.php:45
9 0.0192  979688  PhpId3\BinaryFileReader->fillTag( ) ..\BinaryFileReader.php:78
10  0.0192  980104  fread ( ) ..\BinaryFileReader.php:118

I seem to be having an issue when reading an MP3 file that is 67.9MB... the MP3 file is a podcast episode spanning ~30 minutes in length. I'm trying to leverage this library to create an RSS feed generator that automatically grabs data from each episode I publish.

Shy of bumping my local install of PHP to reserve more memory, I'm not certain this is sustainable for a production host, especially since my server is a shared host.

bmcminn avatar May 27 '14 07:05 bmcminn

Can you please link the Mp3 file with which you are having the problem? I am unable to reproduce it as of now.

shubhamjain avatar May 31 '14 14:05 shubhamjain