Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Fails even after increasing MEMORY_LIMIT #176

Open
yashaskm11 opened this issue Mar 12, 2023 · 0 comments
Open

Sync Fails even after increasing MEMORY_LIMIT #176

yashaskm11 opened this issue Mar 12, 2023 · 0 comments

Comments

@yashaskm11
Copy link


   INFO  Scanning /Flac.  

  972/3482 [=======>--------------------]  27%
   ValueError 

  fread(): Argument #2 ($length) must be greater than 0

  at vendor/james-heinrich/getid3/getid3/getid3.php:2215
    2211▕                       //if (($this->getid3->memory_limit > 0) && ($bytes > $this->getid3->memory_limit)) {
    2212▕                       if (($this->getid3->memory_limit > 0) && (($bytes / $this->getid3->memory_limit) > 0.99)) { // enable a more-fuzzy match to prevent close misses generating errors like "PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33554464 bytes)"
    2213▕                               throw new getid3_exception('cannot fread('.$bytes.' from '.$this->ftell().') that is more than available PHP memory ('.$this->getid3->memory_limit.')', 10);
    2214▕                       }
  ➜ 2215▕                       $part = fread($this->getid3->fp, $bytes);
    2216▕                       $partLength  = strlen($part);
    2217▕                       $bytes      -= $partLength;
    2218▕                       $contents   .= $part;
    2219▕               } while (($bytes > 0) && ($partLength > 0));

      +5 vendor frames 
  6   app/Services/FileSynchronizer.php:52
      getID3::analyze()

  7   app/Services/FileSynchronizer.php:79
      App\Services\FileSynchronizer::getFileScanInformation()

No results after trying all these
- MEMORY_LIMIT=2048
- MEMORY_LIMIT=2048M
- MEMORY_LIMIT="2048"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant