yassinia / musicg

Automatically exported from code.google.com/p/musicg
0 stars 0 forks source link

Out of memory exception at getFingreprintSimilarity #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Making two Wave() object
2. Comparing the above two object using wave1.getFingreprintSimilarity(wave2)
3. It crashes giving an out of memory exception

What is the expected output? What do you see instead?
It works on very small audio files only

What version of the product are you using? 
on HTC Desire HD and Samsung galaxy S3
On what operating system?
Android OS 2.3 and 4.2

Please provide any additional information below.
Below is the stack trace:

05-08 17:28:46.791: E/AndroidRuntime(18113): java.lang.OutOfMemoryError: (Heap 
Size=32775KB, Allocated=29163KB, Bitmap Size=0KB)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
java.lang.reflect.Array.createMultiArray(Native Method)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
java.lang.reflect.Array.newInstance(Array.java:420)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.wave.extension.Spectrogram.buildSpectrogram(Spectrogram.java:138)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.wave.extension.Spectrogram.<init>(Spectrogram.java:76)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.wave.Wave.getSpectrogram(Wave.java:237)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.fingerprint.FingerprintManager.extractFingerprint(FingerprintManager.
java:83)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.wave.Wave.getFingerprint(Wave.java:329)
05-08 17:28:46.791: E/AndroidRuntime(18113):    at 
com.musicg.wave.Wave.getFingerprintSimilarity(Wave.java:335)

Original issue reported on code.google.com by twish...@gmail.com on 8 May 2013 at 1:32