gorastudio-git / SCNRecorder

The best way to record your AR experience!
MIT License
201 stars 51 forks source link

Bad access when producing a pixel buffer #4

Closed Timstarockz closed 4 years ago

Timstarockz commented 5 years ago

Hi! So I've run into an interesting issue that I found in InternalRecorder.swift. I managed to get it to crash at this line:

https://github.com/gorastudio/SCNRecorder/blob/6ea497e347cab67460a1fcc4a4a739d5d6a79a70/Source/InternalRecorder/InternalRecorder.swift#L278

I can never capture the frame with the actual error but I was able to see it output some sort of EXC_BAD_ACCESS error. This seems to only be happening to me when recording an SCNView.

v-grigoriev commented 5 years ago

Hi! Yea, it looks interesting. Do you use Metal or OpenGL based rendering?

Timstarockz commented 5 years ago

I currently use Metal based rendering. Mostly just out of the box SceneKit right now.

v-grigoriev commented 5 years ago

OK, thank you! I will investigate for a week and get back to you.

v-grigoriev commented 4 years ago

Should be fixed in the new version. I can't reproduce it and there are no memory leaks.