添加水印濾鏡時遇到的問題

為什么濾鏡鏈的第一個不能為GPUImageToonFilter?

現(xiàn)象:

濾鏡鏈第一個為GPUImageToonFilter,保存圖片或者視頻時報錯

2021-01-04 22:27:47.662438+0800 為圖片添加濾鏡水印[8508:2576046] Metal API Validation Enabled 2021-01-04 22:27:51.252910+0800 為圖片添加濾鏡水印[8508:2576279] *** Assertion failure in -[GPUImageFramebuffer unlock], GPUImageFramebuffer.m:269 2021-01-04 22:27:51.253871+0800 為圖片添加濾鏡水印[8508:2576279] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?' *** First throw call stack: (0x19eab186c 0x1b3a20c50 0x19e9b7000 0x19fd4b91c 0x10290fe64 0x102945bc4 0x10290ae94 0x102946374 0x1029091e4 0x10290aec0 0x1029091e4 0x10290aec0 0x10294c87c 0x10294d0ec 0x10294db78 0x102a5fbcc 0x102a616c0 0x102a69354 0x102a6a0c0 0x102a76644 0x1ea283804 0x1ea28a75c) libc++abi.dylib: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Tried to overrelease a framebuffer, did you forget to call -useNextFrameForImageCapture before using -imageFromCurrentFramebuffer?' terminating with uncaught exception of type NSException

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容