After running strictMode on an app i am developing i got the error:
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'close' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at java.io.FileInputStream.<init>(FileInputStream.java:80)
at edu.cmu.pocketsphinx.Assets.getExternalItems(Assets.java:149)
at edu.cmu.pocketsphinx.Assets.syncAssets(Assets.java:253)
at myAppPath.Threads.PocketRecognizerSetupThread.doInBackground(PocketRecognizerSetupThread.java:95)
at myAppPath..Threads.PocketRecognizerSetupThread.doInBackground(PocketRecognizerSetupThread.java:27)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:841)
it happens on the line:assetDir = assets.syncAssets();
i guess it is becuase in the method edu.cmu.pocketsphinx.Assets.getExternalItems
The FileInputSteam object never runs the .close() method.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After running strictMode on an app i am developing i got the error:
it happens on the line:assetDir = assets.syncAssets();
i guess it is becuase in the method edu.cmu.pocketsphinx.Assets.getExternalItems
The FileInputSteam object never runs the .close() method.