Problems reading metadata for DSF files larger than 2,15GB
The issue described in #322 seems to have been reintroduced, at least for reading the metadata.
https://bitbucket.org/ijabz/jaudiotagger/issues/322/problems-writing-metadata-for-dsf-files
I discovered the issue in Serviio DLNA server, that uses JAudiotagger to extract metadata from ID3 tags. Then I created a small test program to run Tag tag = f.getTag(); against my problematic files, and indeed, on big files the code fails in the DsfFileReader.java on line 131:
This line in my test code
System.err.println("audiotag:"+ tag.toString());
prints the following:
WARNING: /Music/SACD/River.dsf No existing ID3 tag(2)
Exception in thread "main" java.lang.NullPointerException
Looking at the threshold, I can say, that in a file with size 2 089 645 555 bytes (2,09 GB on disk) the ID3 tag is still found, but in a file with size 2 175 522 503 bytes (2,18 GB on disk) not any more.
So this suggests, that the breaking point may still be the max value of Java signed Integer : 2 147 483 647
Some of those larger files have been correctly catalogued in Serviio, so therefore I assume, that this error has been reintroduced in the current 2.2.6, that is also included in the Serviio latest distribution.
Best regards
Priit
Comments (1)
-
reporter - Log in to comment
Just tested - this problem does not appear with 2.2.4 build.