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

Transcode failure on iOS 17 #358

Open
slimbuck opened this issue Sep 20, 2023 · 3 comments
Open

Transcode failure on iOS 17 #358

slimbuck opened this issue Sep 20, 2023 · 3 comments

Comments

@slimbuck
Copy link

I am raising this for visibility and in hopes others have found a solution.

Our users are reporting random failures of basis transcode on iOS 17.0.

It looks likely a regression in safari, I have reported the issue here:

https://bugs.webkit.org/show_bug.cgi?id=260252

Since iOS 17 is now released we may be forced to find a workaround.

@slimbuck
Copy link
Author

Having test a little more, it's the call to file.transcodeImage on the final/smallest mipmap level which fails:

  • only in basis format (ktx2 seems fine)
  • compressed with ETC
  • with no alpha channel
  • larger images seem to fail more often (128x128 don't fail, 256x256 fail 1 in 10, 512x512 1 in 2, etc)

To reiterate, these failures are likely to be an issue with Safari 17 WASM engine, but we are trying to find a possible mitigation from our end.

@Ben-Mack
Copy link

Seem like you have found workaround for this problem: https://forum.playcanvas.com/t/important-basis-on-safari-17-0/33145

We found that recompiling the basis module with the latest emscripten toolchain seems to mitigate the issue

@richgel999 Can you update a version compiled with latest emscripten toolchain?

@richgel999
Copy link
Contributor

@richgel999 Can you update a version compiled with latest emscripten toolchain?

Yes - no problem.

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

No branches or pull requests

3 participants