sipsorcery-org / SIPSorceryMedia.Windows

BSD 3-Clause "New" or "Revised" License
10 stars 22 forks source link

Program crash problem #19

Open Hu-Said opened 10 months ago

Hu-Said commented 10 months ago

During the process of sending the video, decoding failed and the program crashed. The following is the error stack information:

System.ApplicationException: VP8 encode attempt failed, Unspecified internal error. at SIPSorceryMedia.Encoders.Codecs.Vp8Codec.Encode(Byte[] frame, VpxImgFmt inputPixelFormat, Boolean forceKeyFrame) at SIPSorceryMedia.Encoders.VpxVideoEncoder.EncodeVideo(Int32 width, Int32 height, Byte[] sample, VideoPixelFormatsEnum pixelFormat, VideoCodecsEnum codec) at SIPSorceryMedia.Windows.WindowsVideoEndPoint.FrameArrivedHandler(MediaFrameReader sender, MediaFrameArrivedEventArgs e) at System.Threading.Tasks.Task.<>c.b__128_1(Object state) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback()

Hu-Said commented 9 months ago

image Adding exception handling to this method can solve the problem