question

AnandShende-7821 avatar image
0 Votes"
AnandShende-7821 asked AnandShende-7821 edited

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt

Hi,

I am intermittently getting the following error while running the recording bot (https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/AksSamples/teams-recording-bot).

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.Skype.Bots.Media.AudioFramePlayer.CopyMemory(IntPtr dest, IntPtr src, UInt32 count) at Microsoft.Skype.Bots.Media.AudioFramePlayer.<CopyAndSendData>d_46.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.Skype.Bots.Media.AudioFramePlayer.CopyAndSendData(AudioMediaBuffer sourceBuffer, MediaBuffer destinationBuffer) at Microsoft.Skype.Bots.Media.AudioFramePlayer.<DequeueAndProcessAsync>d47.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>cDisplayClass4_0.<OutputAsyncCausalityEvents>b0() at System.Runtime.CompilerServices.TaskAwaiter.<>cDisplayClass11_0.<OutputWaitEtwEvents>b_0() at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution) at System.Threading.ThreadPoolWorkQueue.Dispatch()


Can you help me resolve this?

office-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-sdk
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We are setting it up locally. We will let you know.

0 Votes 0 ·

Just to add bit more details - I have published a video from the recording bot and after every 30 seconds I publish some audio as well...
So this issue often (not everytime) occurs when audio is published and the AudioFramePlayer is running low on video frames.

0 Votes 0 ·

0 Answers