Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
java.lang.ArithmeticException: / by zero on specific file
02-05-2020, 09:23
Post: #1
java.lang.ArithmeticException: / by zero on specific file
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


Attached File(s)
.zip  Example.ogg.zip (Size: 3.11 KB / Downloads: 1)
Find all posts by this user
Quote this message in a reply
02-05-2020, 12:23
Post: #2
RE: java.lang.ArithmeticException: / by zero on specific file
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)