EXC_BAD_ACCESS on didCaptureVideoSampleBuffer delegate method #254
Comments
I'm also getting this error. Have you found a solution? |
I temporarily changed the bufferToWrite variable to nil since I'm not using sampleBuffer variable in the delegate method. |
Same issue here - note I'm using the library in a Swift project |
An other way is to remove the delegate response by deleting these lines from your ViewController:
or
|
still have this bug using PBJVision in Swift. |
Having the same problem in Swift. Not really sure how to fix this if you need CMSampleBufferRef in your delegate, but in other cases this can be solved either by passing nil to sampleBuffer variable or by creating new delegate method that is not sending sampleBuffer variable at all. |
Problem in the metod captureOutput: didOutputSampleBuffer: fromConnection:
_enqueueBlockOnMainQueue - is asynchronous and bufferToWrite release before didCaptureVideoSampleBuffer func of delegate.
or |
@vixentael @crazyjooe if you're using swift, check out github.com/nextlevel/NextLevel @eserikov7 thanks for the comments, |
When I implement the delegate method
vision: didCaptureVideoSampleBuffer:
to get progress, I'm getting crash in PBJVision.m file where calls this delegate method.If I temporarily change
bufferToWrite
to nil, I'm not getting crash. What's your thought?The text was updated successfully, but these errors were encountered: