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

Type issue in scanner #528

Closed
llaumgui opened this issue Mar 8, 2021 · 3 comments
Closed

Type issue in scanner #528

llaumgui opened this issue Mar 8, 2021 · 3 comments
Assignees
Milestone

Comments

@llaumgui
Copy link

llaumgui commented Mar 8, 2021

Describe the bug
Error on occ audioplayer:scan --all call.

To Reproduce
Steps to reproduce the behavior:

  1. Open console
  2. Type occ audioplayer:scan --all

Expected behavior
No error.

Versions:

  • Nextcloud: 21
  • PHP: 8.0.3
  • Audioplayer 3.1

Nextcloud log

occ audioplayer:scan --all
Start scan for [...]
Start scan for XXX
Start processing of audio files
An unhandled exception has been thrown:
TypeError: fseek(): Argument #1 ($stream) must be of type resource, bool given in /var/www/nextcloud/apps/audioplayer/lib/Controller/ScannerController.php:617
Stack trace:
#0 /var/www/nextcloud/apps/audioplayer/lib/Controller/ScannerController.php(617): fseek(false, -24, 2)
#1 /var/www/nextcloud/apps/audioplayer/lib/Controller/ScannerController.php(269): OCA\audioplayer\Controller\ScannerController->analyze(Object(OC\Files\Node\File), Object(getID3), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/nextcloud/apps/audioplayer/lib/Controller/ScannerController.php(176): OCA\audioplayer\Controller\ScannerController->scanAudio(Object(OC\Files\Node\File), Object(getID3), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/nextcloud/apps/audioplayer/lib/Command/Scan.php(75): OCA\audioplayer\Controller\ScannerController->scanForAudios('llaumgui', Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Command/Command.php(255): OCA\audioplayer\Command\Scan->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(OCA\audioplayer\Command\Scan), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#10 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#11 {main}%
@Rello
Copy link
Owner

Rello commented Jul 10, 2021

Hello,
sorry for the delay.
is the error still exiting? it dounds strange because the fseek is part of the Nextcloud file backend

@Rello Rello self-assigned this Jul 10, 2021
@Rello Rello added the needs info feedback from requester required label Jul 10, 2021
@Rello Rello closed this as completed Aug 19, 2021
@llaumgui
Copy link
Author

Same issu for me. With flac files and all last version.

@Rello Rello reopened this Aug 23, 2021
@Rello Rello changed the title [BUG] Argument #1 ($stream) must be of type resource, bool given in /var/www/nextcloud/apps/audioplayer/lib/Controller/ScannerController.php:617 Type issue in scanner Sep 8, 2021
Rello added a commit that referenced this issue Sep 8, 2021
@Rello
Copy link
Owner

Rello commented Sep 8, 2021

Hello,
I think I found the problem and put in an error handling
=> next release

@Rello Rello added this to the 3.3.0 milestone Sep 8, 2021
@Rello Rello added bug pending release scanner and removed needs info feedback from requester required labels Sep 8, 2021
@Rello Rello modified the milestones: 3.3.0, 3.2.2 Sep 21, 2021
@Rello Rello closed this as completed Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants