Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Crashing when creating image through GMVUtility.sampleBufferTo32RGBA(sampleBuffer) #7

Open
ChanchalW opened this issue Aug 31, 2017 · 1 comment

Comments

@ChanchalW
Copy link

ChanchalW commented Aug 31, 2017

screen shot 2017-09-01 at 11 06 56 am
Hi, I downloaded the demo and its running fine.
I am creating a custom camera with filters. When I add the following line it crashes without showing any exception.

guard let image = GMVUtility.sampleBufferTo32RGBA(sampleBuffer) else {
print("No Image 😂")
return
}

I just grabbed the necessary code and created another file to check whether it's crashing on this or anything else crashing. But its crashing on image creation. I uploaded swift file to Dropbox and link is ## https://www.dropbox.com/s/y1ewd1sh18h3ezj/CameraView.swift.zip?dl=0

Please reply soon, I am totally stuck on it.

@rafalaurine
Copy link

Remove this:

if connection.videoOrientation != .portrait {
    connection.videoOrientation = .portrait
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants