sjy234sjy234 / KinectFusion-ios

demo KinectFusion that running on ios
MIT License
46 stars 10 forks source link

Issue with IOS 14 #6

Closed AS903 closed 3 years ago

AS903 commented 4 years ago

Hello! I am new to developing and I have just been playing around with the code for fun. I have been trying your implementation, which has been working great until I updated my iphone to IOS 14. I have suddenly been receiving the output of:

CAMetalLayer ignoring invalid setDrawableSize width=0.000000 height=0.000000 first frame, fusion reset Lost frame Fusion Failed

I was wondering if you have any idea why this is happening and how I could fix it?

Thank you so much! And thank you for your amazing work!

sjy234sjy234 commented 4 years ago

This is mainly caused by ios's stricter shader language update. You can try to locate some "nan“ or "float compare" related code in shaders and add some safer "if" logic before it to avoid "nan" or "float compare" problems. It would be very appreciated if you push the fixed version code after you solve the problem.

AS903 commented 3 years ago

Hello! Sorry it took me so long to respond to your message! Unfortunately, my computer died and it took a while for me to have access to a replacement. I am going to close the issue and will start working on it once I have time again.

Thank you so much for your help!