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

Crash with Deployment on mobile device #3678

Open
Boya-Na opened this issue Aug 13, 2021 · 1 comment
Open

Crash with Deployment on mobile device #3678

Boya-Na opened this issue Aug 13, 2021 · 1 comment

Comments

@Boya-Na
Copy link

Boya-Na commented Aug 13, 2021

Hi,

  • Have I written custom code (as opposed to running examples on an unmodified clone of the repository): yes, but just add the wrapper to call streaming related API
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): arm64 ios 11+ & android sdk 26+
  • TensorFlow installed from (our builds, or upstream TensorFlow): DeepSpeech official build
  • Bazel version (if compiling from source): 3.1.0

I use the official library for android and build the iOS framework followed by #3436

when call streaming-related functions (feedAudioContent, intermediateDetecode & finishStream) in different threads, it would crash sometimes. For example, in Android, when call feedAudioContent & intermediateDetecode in thread 1 then call
finishStream in thread 2, the app would crash. The situation in iOS is similar, when API is called in different threads, it may crash

Is deep speech library thread-safe on mobile devices? How could it be fixed? Thanks so much!

@JanX2
Copy link
Contributor

JanX2 commented Aug 14, 2021

@Boya-Na
Could you please check, if your crashes go away after merging #3527?

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

2 participants