Skip to content

the application works in debug mode but crashes in non-debugging mode #20

@TheBestWorldProgrammer

Description

@TheBestWorldProgrammer

Application: ssss.exe
CoreCLR Version: 7.0.923.32018
.NET Version: 7.0.9
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
at SDL2.SDL.SDL_CloseAudioDevice(UInt32)
at SDL2.SDL.SDL_CloseAudioDevice(UInt32)
at SIPSorceryMedia.SDL2.SDL2Helper.CloseAudioDevice(UInt32)
at SIPSorceryMedia.SDL2.SDL2Helper.CloseAudioPlaybackDevice(UInt32)
at SIPSorceryMedia.SDL2.SDL2AudioEndPoint.CloseAudioSink()
at SIPSorceryMedia.SDL2.SDL2AudioEndPoint.InitPlaybackDevice()
at SIPSorceryMedia.SDL2.SDL2AudioEndPoint.SetAudioSinkFormat(SIPSorceryMedia.Abstractions.AudioFormat)
at SIPSorcery.Media.VoIPMediaSession.AudioFormatsNegotiated(System.Collections.Generic.List1<SIPSorceryMedia.Abstractions.AudioFormat>) at SIPSorcery.Net.RTPSession.RaisedOnAudioFormatsNegotiated(Int32, System.Collections.Generic.List1<SIPSorceryMedia.Abstractions.AudioFormat>)
at SIPSorcery.net.RTP.AudioStream.CheckAudioFormatsNegotiation()
at SIPSorcery.Net.RTPSession.SetRemoteDescription(SIPSorcery.SIP.App.SdpType, SIPSorcery.Net.SDP)
at SIPSorcery.SIP.App.SIPUserAgent+d__135.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[SIPSorcery.SIP.App.SIPUserAgent+d__135, SIPSorcery, Version=6.0.12.0, Culture=neutral, PublicKeyToken=null]](d__135 ByRef)
at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[SIPSorcery.SIP.App.SIPUserAgent+d__135, SIPSorcery, Version=6.0.12.0, Culture=neutral, PublicKeyToken=null]](d__135 ByRef)
at SIPSorcery.SIP.App.SIPUserAgent.ClientCallAnsweredHandler(SIPSorcery.SIP.App.ISIPClientUserAgent, SIPSorcery.SIP.SIPResponse)
at SIPSorcery.SIP.App.SIPClientUserAgent.ServerFinalResponseReceived(SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPTransaction, SIPSorcery.SIP.SIPResponse)
at SIPSorcery.SIP.UACInviteTransaction+<UACInviteTransaction_TransactionFinalResponseReceived>d__19.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[SIPSorcery.SIP.UACInviteTransaction+<UACInviteTransaction_TransactionFinalResponseReceived>d__19, SIPSorcery, Version=6.0.12.0, Culture=neutral, PublicKeyToken=null]](<UACInviteTransaction_TransactionFinalResponseReceived>d__19 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Net.Sockets.SocketError, System.Net.Primitives, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].Start[[SIPSorcery.SIP.UACInviteTransaction+<UACInviteTransaction_TransactionFinalResponseReceived>d__19, SIPSorcery, Version=6.0.12.0, Culture=neutral, PublicKeyToken=null]](<UACInviteTransaction_TransactionFinalResponseReceived>d__19 ByRef)
at SIPSorcery.SIP.UACInviteTransaction.UACInviteTransaction_TransactionFinalResponseReceived(SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPTransaction, SIPSorcery.SIP.SIPResponse)
at SIPSorcery.SIP.SIPTransaction.GotResponse(SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPResponse)
at SIPSorcery.SIP.SIPTransport.SIPMessageReceived(SIPSorcery.SIP.SIPChannel, SIPSorcery.SIP.SIPEndPoint, SIPSorcery.SIP.SIPEndPoint, Byte[])
at SIPSorcery.SIP.SIPTransport.ProcessReceiveQueue()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions