-
Notifications
You must be signed in to change notification settings - Fork 198
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
Crash when scanning #921
Comments
Thanks for the report. Something unexpected now happens within the getID3 library when analyzing one of your files. To find out which file this is, you should run After finding the culprit file, could you check if there is anything special with that file? Maybe the file is broken or has weird access rights. Also, one interesting piece of information is whether this file resides on some external storage or in the internal storage of Nextcloud. |
Also, if you can share the culprit file with me, then I can take a look. With a sample file, I can then report this onward for the getID3 library if necessary. You can find my email address from my github profile. |
Thanks, Now I know which file is the culprit. It is a standard mp3 file, access rights are OK
On local storage, like the other music files. eye3D gives a warning on this file :
|
Thanks, I got the file. In my test environment using PHP 7.x, I don't see a crash but a warning about "Division by zero" is logged. You are probably using PHP 8 where many of the previously non-fatal errors are being treated more strictly. But clearly, the getID3 library is not making enough sanity checks here on the input file as it tries to divide by zero. I have reported the issue for the library. James maintaining the library is usually very quick to fix clear bugs like this when a sample file has been provided. |
Thanks, I run nextcloud on php 8.0 that's true. I'll wait for another version, meanwhile I'll keep a copy of the file (for testing), and edit ID3 tags to try to make them more correct.. |
James was as fast as always, and already created a patch for this issue at JamesHeinrich/getID3#352. The updated library will be included in the next Music app release. I try to make it next weekend but no promises. |
The update getID3 library is now released as part of Music v1.5.0 and this problem should be fixed. |
After installed I made the app scan my music, it stopped mid way.
Using the CLI scan command I got:
And only half of my music is scanned.
The text was updated successfully, but these errors were encountered: