MinimServer Forum

Full Version: java.lang.ArithmeticException: / by zero on specific file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

We have a huge repository of various files, containing also "corner cases" and maybe some invalid files.
We need to run them to test our streaming services (they should be able to handle invalid files as well).

During our tests, I found a file which causes MinimServer ("0.8.5.3 update 134" on Synology NAS) to crash with:
Quote:Error: exception reading file [...]/Example.ogg (length 4855)
java.lang.ArithmeticException: / by zero

I attached the file to this post.
VLC cannot open this file as well - but if possible, MinimServer should not crash on it Wink
Thanks for reporting this. The crash happens because the file has a duration of 0.

I will fix the problem in the next update to MinimServer 2. It is unlikely that minor fixes such as this will be applied to MinimServer 0.8 from now on.
Reference URL's