ARVideoKit icon indicating copy to clipboard operation
ARVideoKit copied to clipboard

App can't run on iOS 12 when i add SCNParticleSystem to scnnode

Open miliPolo opened this issue 7 years ago β€’ 10 comments

validateFunctionArguments:3469: failed assertion `Vertex Function(uberparticle_vert): missing buffer binding at index 19 for vertexBuffer.1[0].'

miliPolo avatar Oct 28 '18 14:10 miliPolo

@miliPolo, can you please elaborate on when exactly the crash is occurring.

-Ahmed

AFathi avatar Oct 29 '18 12:10 AFathi

when I added the SCNParticleSystem to the SCNNode, The app was crashed. I added the below code in viewDidLoad():

    let sceneFilterNode = SCNNode()

    let particleSystem = SCNParticleSystem(named: filterName, inDirectory: nil)

    sceneFilterNode.addParticleSystem(particleSystem!)

    self.sceneView.scene.rootNode.addChildNode(sceneFilterNode)`

the err info:validateFunctionArguments:3469: failed assertion `Vertex Function(uberparticle_vert): missing buffer binding at index 19 for vertexBuffer.1[0].'

miliPolo avatar Oct 29 '18 12:10 miliPolo

@miliPolo, have you tried disabling ARVideoKit to check whether the framework is the source of the crash or not?

AFathi avatar Oct 29 '18 12:10 AFathi

Hi, i added this code in your demo project ARVideoKit-Example.

miliPolo avatar Oct 29 '18 12:10 miliPolo

The code seems to crash here: var buffer: CVPixelBuffer? pixelsQueue.sync { renderedFrame = renderEngine.snapshot(atTime: self.time, with: size, antialiasingMode: .none) }

miliPolo avatar Oct 29 '18 13:10 miliPolo

Hey ! It's happening the same to me :( I can't find a way to make it work.. Any ideas ?

franobarrio avatar Nov 02 '18 14:11 franobarrio

i have the same issue

bacc3 avatar Nov 21 '18 10:11 bacc3

I also have the same issue Anybody found any solution?

priyankagaikwad avatar Jan 16 '19 08:01 priyankagaikwad

I'm also having the exact same issue. I can capture video or photo of the AR scene just fine but when there is a particle system in the scene it crashes on both video or photo capture attempts.

The error code I get: validateFunctionArguments:3469: failed assertion `Vertex Function(uberparticle_vert): missing buffer binding at index 19 for vertexBuffer.1[0].'

@AFathi The crash stack is lower level language so I'm not sure it would be super helpful. I think trying to recreate it by adding a particle system to a node in the scene as @miliPolo suggested will be more useful.

Please let me know how I can help debug it!

evolvecode avatar Jan 24 '19 16:01 evolvecode

I have the same crash on iOS 12. Is there any solution?

blgn avatar Jan 28 '19 12:01 blgn