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

Error System.AccessViolationException on inference from .NET #3684

Closed
Henderz opened this issue Aug 27, 2021 · 1 comment
Closed

Error System.AccessViolationException on inference from .NET #3684

Henderz opened this issue Aug 27, 2021 · 1 comment

Comments

@Henderz
Copy link

Henderz commented Aug 27, 2021

Error on Inference (not training)

  • Have I written custom code (as opposed to running examples on an unmodified clone of the repository):Yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows 10
  • TensorFlow installed from (our builds, or upstream TensorFlow):NA
  • TensorFlow version (use command below):NA
  • Python version: NA
  • Bazel version (if compiling from source):NA
  • GCC/Compiler version (if compiling from source):NA
  • CUDA/cuDNN version:NA
  • GPU model and memory:NA
  • Exact command to reproduce: objDeepSpeech.IntermediateDecodeWithMetadata(objStream, 1);

Bug?

I am using DeepSpeech for inference from microphone stream captured via CSCore audio module. I have custom code for VAD and get Intermediate decoding done to get sentence wise live transcription.

Models: 9.0.3 Pre-Trained English Audio Model and custom Scorers with the same hyper-parameters as the Pre-Trained Scorer.

This works but at random times I get

StackOverflowException
from objDeepSpeech.FeedAudioContent(objStream, buffers, Convert.ToUInt32(buffers.Length));
or
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
from objDeepSpeech.IntermediateDecodeWithMetadata(objStream, 1);

The errors originate from within libdeepspeech.so so I am not able to debug any further. Any help is much appreciated. Thanks.

@ftyers
Copy link
Collaborator

ftyers commented Sep 29, 2022

See #3693

@ftyers ftyers closed this as completed Sep 29, 2022
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