mozilla/DeepSpeech

Memory Leak using Java Native Client

Open

#3,271 建立於 2020年8月24日

在 GitHub 查看
 (35 留言) (0 反應) (0 負責人)C++ (26,755 star) (4,093 fork)batch import
help wantedwaiting-on-reporter

描述

For support and discussions, please use our Discourse forums.

If you've found a bug, or have a feature request, then please create an issue with the following information:

  • Have I written custom code (as opposed to running examples on an unmodified clone of the repository):
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Android R (API 30)
  • Exact command to reproduce:

I modified the STT-example in Kotlin for use in a Mozilla-STT React Native module I'm building. However, running streaming transcription uses more and more memory until the app crashes. See a fully working example by cloning this repo, running yarn bootstrap, then yarn example android. Attach to it using the Android Studio profiler to watch the memory usage creep upwards.

Implementation: https://github.com/zaptrem/react-native-transcription/blob/master/android/src/main/java/com/reactnativetranscription/TranscriptionModule.kt

Please describe the problem clearly. Be sure to convey here why it's a bug or a feature request.

Include any logs or source code that would be helpful to diagnose the problem. For larger logs, link to a Gist, not a screenshot. If including tracebacks, please include the full traceback. Try to provide a reproducible test case.

貢獻者指南