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

Nextcloud error message #26709

Closed
Schmidtjanroman opened this issue Jan 28, 2021 · 1 comment · Fixed by #27459
Closed

Nextcloud error message #26709

Schmidtjanroman opened this issue Jan 28, 2021 · 1 comment · Fixed by #27459
Assignees
Labels
3. to review Waiting for reviews
Milestone

Comments

@Schmidtjanroman
Copy link

Hi there,

my Nextcloud log gives me follwing error message, is this directly related to the id3parser?

Trying to access array offset on value of type bool at /var/www/nextcloud/3rdparty/christophwurst/id3parser/src/getID3/Tags/getid3_id3v2.php#1385

{"reqId":"ifBZ2fn4qj2pZ7vET5mR","level":3,"time":"2021-01-28T05:08:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"Trying to access array offset on value of type bool at /var/www/nextcloud/3rdparty/christophwurst/id3parser/src/getID3/Tags/getid3_id3v2.php#1385","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/christophwurst/id3parser/src/getID3/Tags/getid3_id3v2.php","line":1385,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/3rdparty/christophwurst/id3parser/src/getID3/Tags/getid3_id3v2.php","line":338,"function":"ParseID3v2Frame","class":"ID3Parser\\getID3\\Tags\\getid3_id3v2","type":"->"},{"file":"/var/www/nextcloud/3rdparty/christophwurst/id3parser/src/getID3/getid3.php","line":164,"function":"Analyze","class":"ID3Parser\\getID3\\Tags\\getid3_id3v2","type":"->"},{"file":"/var/www/nextcloud/3rdparty/christophwurst/id3parser/src/ID3Parser.php","line":20,"function":"analyze","class":"ID3Parser\\getID3\\getid3","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/MP3.php","line":52,"function":"analyze","class":"ID3Parser\\ID3Parser","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/GeneratorHelper.php","line":63,"function":"getThumbnail","class":"OC\\Preview\\MP3","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":244,"function":"getThumbnail","class":"OC\\Preview\\GeneratorHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":140,"function":"getMaxPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":109,"function":"generatePreviews","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":190,"function":"getPreview","class":"OC\\Preview\\Generator","type":"->"},{"file":"/var/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php","line":197,"function":"getPreview","class":"OC\\PreviewManager","type":"->"},{"file":"/var/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php","line":185,"function":"processFile","class":"OCA\\PreviewGenerator\\Command\\PreGenerate","type":"->"},{"file":"/var/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php","line":152,"function":"processRow","class":"OCA\\PreviewGenerator\\Command\\PreGenerate","type":"->"},{"file":"/var/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php","line":125,"function":"startProcessing","class":"OCA\\PreviewGenerator\\Command\\PreGenerate","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OCA\\PreviewGenerator\\Command\\PreGenerate","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1000,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":271,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":147,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":215,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"--","version":"20.0.4.0","id":"6012ef1fecfb7"}

faust64 referenced this issue in Worteks/3rdparty Feb 8, 2021
Signed-off-by: Samuel <faust64@gmail.com>
@faust64
Copy link
Contributor

faust64 commented Feb 8, 2021

Sounds like getimagesizefromstring returned with something wrong., a boolean, while it should be an array with some images metadata (width/height/type/... https://www.php.net/manual/en/function.getimagesize.php).

Any idea which file caused that issue? Might be some invalid ID3 metadata?
Nevertheless, it shouldn't crash like this... You should be able to try out Worteks/3rdparty@0a12b73, let us know if that helps.

faust64 referenced this issue in Worteks/ID3Parser Feb 9, 2021
Signed-off-by: Samuel <faust64@gmail.com>
ChristophWurst referenced this issue in ChristophWurst/ID3Parser Feb 9, 2021
fix(id3parser): nextcloud/3rdparty#607
@MorrisJobke MorrisJobke transferred this issue from nextcloud/3rdparty Apr 22, 2021
@szaimen szaimen added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label May 20, 2021
@ChristophWurst ChristophWurst added this to the Nextcloud 22 milestone Jun 10, 2021
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jun 10, 2021
@ChristophWurst ChristophWurst self-assigned this Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants