peilinok / screen-recorder

This repo has been archived, please visit https://github.com/peilinok/traa to get the new project!
GNU General Public License v3.0
152 stars 63 forks source link

Crashed sometimes at av_packet_unref #2

Closed peilinok closed 4 years ago

peilinok commented 4 years ago

the app will crash at av_packet_unref sometimes

peilinok commented 4 years ago

still have heap corruption issue

peilinok commented 4 years ago

run c:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe /p /enable Test.exe /full to enable heap check

peilinok commented 4 years ago

GFlags GFlags and PageHeap

peilinok commented 4 years ago

=========================================================== VERIFIER STOP 00000007: pid 0x56958: block already freed

09E51000 : Heap handle
34E406B4 : Heap block
00000093 : Block size
00000000 : 

=========================================================== This verifier stop is not continuable. Process will be terminated when you use the `go' debugger command.

peilinok commented 4 years ago

still crash....................................... any one can help?

peilinok commented 4 years ago

fixed by add lock in write_video&wite_audio,coz av_interleaved_write_frame will push packet into a packet queue,and lt is not thread safe