Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行报错 #2

Open
GeneralJing opened this issue Apr 19, 2019 · 6 comments
Open

运行报错 #2

GeneralJing opened this issue Apr 19, 2019 · 6 comments

Comments

@GeneralJing
Copy link

GeneralJing commented Apr 19, 2019

    let positions = unsafeBitCast(positionsIn!.contents(), to: UnsafeMutablePointer<Float>.self)
    let _velocities = unsafeBitCast(velocities!.contents(), to: UnsafeMutablePointer<Float>.self)

这个是报错的位置,提示的错误信息如下:
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
不太熟悉swift、metal,能告诉这个是什么问题吗?

@roberthein
Copy link
Owner

Really @GeneralJing ? Chinese?
I'll have a look 😉

@GeneralJing
Copy link
Author

reply so quickly,thank you

@GeneralJing
Copy link
Author

Do you know what caused this reason?I'm not familiar with swift and metal. Do you have some demos using oc and opengles?

@dfmarulanda
Copy link

Did you fixed it?

@dfmarulanda
Copy link

Seems to be a problem with the simulator

@roberthein
Copy link
Owner

I'm sorry but can't find the time to investigate/fix this right now. But will look at PR's if you can find the time to look at it.

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

No branches or pull requests

3 participants