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

Large wav file causes negative array size and resulting exception #5

Open
daw3rd opened this issue Aug 17, 2022 · 0 comments
Open

Large wav file causes negative array size and resulting exception #5

daw3rd opened this issue Aug 17, 2022 · 0 comments
Assignees

Comments

@daw3rd
Copy link
Collaborator

daw3rd commented Aug 17, 2022

Run evaluate -label state -model gmm -sounds metadata.csv -verbose file that references a wav file with about an hour worth of data and this results in the following exception:

ERROR: null
java.lang.NegativeArraySizeException
at org.eng.aisp.util.PCMUtil.pcm2Double(PCMUtil.java:103)
at org.eng.aisp.SoundClip.(SoundClip.java:324)
at org.eng.aisp.SoundClip.(SoundClip.java:185)
at org.eng.aisp.util.PCMUtil.WAVtoSoundClip(PCMUtil.java:616)
at org.eng.aisp.util.PCMUtil.WAVtoSoundClip(PCMUtil.java:574)
at org.eng.aisp.util.PCMUtil.WAVtoPCM(PCMUtil.java:530)
at org.eng.aisp.util.PCMUtil.WAVtoPCM(PCMUtil.java:464)
at org.eng.aisp.util.PCMUtil.ReadPCM(PCMUtil.java:425)
at org.eng.aisp.util.PCMUtil.ReadPCM(PCMUtil.java:386)
at org.eng.aisp.SoundClip.readClip(SoundClip.java:76)
at org.eng.aisp.dataset.MetaData$RecordingDereferencer.loadReference(MetaData.java:968)
at org.eng.aisp.dataset.MetaData$RecordingDereferencer.loadReference(MetaData.java:940)
at org.eng.aisp.dataset.ReferencedSoundSpecDereferencer.loadReference(ReferencedSoundSpecDereferencer.java:75)
at org.eng.aisp.dataset.ReferencedSoundSpecDereferencer.loadReference(ReferencedSoundSpecDereferencer.java:37)
at org.eng.util.DelegatingShuffleIterable.dereference(DelegatingShuffleIterable.java:82)
at org.eng.util.ItemReferenceIterator.dereference(ItemReferenceIterator.java:85)
at org.eng.util.ItemReferenceIterator.hasNext(ItemReferenceIterator.java:106)
at org.eng.aisp.classifier.TrainingSetInfo.getInfo(TrainingSetInfo.java:316)
at org.eng.aisp.tools.Evaluate.trainAndEvaluateClassifier(Evaluate.java:282)
at org.eng.aisp.tools.Evaluate.doMain(Evaluate.java:149)
at org.eng.aisp.tools.Evaluate.main(Evaluate.java:127)

@daw3rd daw3rd self-assigned this Aug 17, 2022
daw3rd added a commit that referenced this issue Aug 19, 2022
Fix integer overflow on large wav files and issue #5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant