-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Crashes iOS Safari and iOS Chrome #14
Comments
Can confirm this bug. I've written a small rapier.rs/webgl app, a dice-throwing simulator for a webrtc video chat. Anytime someone threw dice, a certain person got disconnected. Turns out they were using safari, and something crashed and reloaded the page. They've since switched to firefox where it works fine. I wrote the WebGL renderer from scratch, which means that I'm probably triggering different render paths than the rapier 3d demo, and other webgl apps work fine for them. Maybe a WASM bug in safari? I didn't debug further as I don't own any apple devices.
|
I started investigating the bug. The iOS crash appears to originate from a segfault on WebKit. I'm actually not sure why we have |
It looks like we needed |
Interestingly, our WASM demos continue to crash on iOS when they are packaged by For the time being, I simply published our demos built using |
Cross-posting my comment from Discord here:
Also, reflecting a bit, I'm a bit uncertain as to why Update: the |
I updated to 0.5.3, using rapier3d-compat (thus there's no bundler touching the WASM), but my Safari using friend still gets kicked out the moment dice start rolling - but now they can see the dice for a split second before the tab crashes. Improvements I guess? Sorry I cannot debug further. |
So in our case, an additional cause of trouble was our use of TerserPlugin to minify our javascript. It looks like Terser does something to the rapier3d glue code between our app and wasm--still uncertain what, exactly, it is doing to cause problems. But this narrows the problem sufficiently that we can at least get a production build working by excluding the
|
I can confirm. I use Rollup, instead of Webpack, though. |
@LeXXik Are you able to share your working Rollup configuration for wasm, specifically? I filed an issue that has since been closed as "stale" regarding my inability to get rapier3d working with rollup. Very curious to know how you got it working. |
@canadaduane I will reach you over Discord, to keep the issue on topic. |
I notice that the rapier.rs 3d demo crashes iOS Safari (14.0.1) and iOS Chrome (87).
Unfortunately, it crashes the browser (no console logs, no crash traces), so it's difficult to say what's causing the problem.
The error message in Safari is "A problem repeatedly occurred on [url]". In Chrome the error message is "Can't open this page" with an "aww snap" crash icon ().
The text was updated successfully, but these errors were encountered: