-
Notifications
You must be signed in to change notification settings - Fork 18k
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
image/png: different decoding result on iOS Safari (Wasm) #32635
Comments
CC @neelance |
This seems like a bad WebAssembly implementation on iOS Safari. Which version of Safari is it? |
The iOS version is 12.3.1, which is the latest. Safari version should follow the iOS version. |
I can not reproduce it, because I do not own an iPhone. It would be really helpful if someone could get more details about what is going on. |
IIUC |
I would like to understand if the issue is with println or with the values themselves. Is it possible to store the values to some variables and then use unsafe to get the memory addressees and jump to JS and print the wasm memory buffer at that pointer and check the values ? |
I found this issue with WebGL (gl.texSubImage2d) by showing this image, so I believe this problem is with the value themselves. |
I can reproduce the issue in iOS 12.4.1 at https://dmitri.shuralyov.com/temp/issue32635/. The issue does not seem to reproduce in iOS 13. Perhaps they've fixed it in iOS 13? Edit: It looks that way, see hajimehoshi/ebiten#631 (comment). |
Now I got an iOS 13 device (iPod touch), and I found there is still something wrong... e.g. https://ebiten.org/examples/animation.html I have not created a minimum case yet. EDIT: Sorry mine was iOS 12, not iOS 13. I'll retry this with iOS 13. |
Yes, I have confirmed that this was fixed on iOS 13.1.3. Thank you! |
Not related to this issue, but I found that Go/Wasm application (e.g. https://ebiten.org/examples/flappy.html) takes too much memory like 1.9GB and the tab is automatically reloaded soon on my iPod (7th generation, iOS 13.1.3). |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compile this program as Wasm and run it on iOS Safari
https://play.golang.org/p/4ez7BztzRZf
What did you expect to see?
On console:
What did you see instead?
or
Note
This works correctly on any other browsers than iOS Safari, including desktop Safari.
The text was updated successfully, but these errors were encountered: