-
Notifications
You must be signed in to change notification settings - Fork 920
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
IOS touch event crashed #2058
Comments
I can confirm this bug on version 0.24 and 0.26. It also makes the app crash on my iPad. Right now I'm not handling touch events. |
I have a potential idea why this is happening based on this post: https://developer.apple.com/forums/thread/61432?answerId=204270022#204270022 Let's assume we initialize winit like this: let mut event_loop = EventLoop::new();
let window = Window::new(&event_loop).unwrap();
event_loop.run(move |event, _, control_flow| {
...
});
Based on the post from the apple forum, the initialization of the view is happening maybe too early. In fact it is happening before the UIApplication is created. |
I suppose it could be a Xcode configuration error. I have no idea how to fix it.
I have a simple Metal View setup and running showing a simple texture. After I touch the screen it crashed.
Here is the event handling code. It works on my Mac, but crashes on my iPad.
Here is the error showing in console.
The text was updated successfully, but these errors were encountered: