web-synth icon indicating copy to clipboard operation
web-synth copied to clipboard

Demo fails silently on iPad

Open pannous opened this issue 2 years ago • 2 comments

Just a black screen

pannous avatar Dec 15 '21 12:12 pannous

https://synth.ameo.dev/fm.html loads but plays no sound

pannous avatar Dec 15 '21 12:12 pannous

Hi, thanks for the report. Were you by chance using the Safari browser? I checked and found that I was emitting some WebAssembly SIMD opcodes that Safari couldn't handle; I've since fixed that. The FM synth demo now works when I test it in Safari on Mac OS.

However, loading different compositions such as https://synth.ameo.dev/composition/50 seems to be causing a huge memory leak that only happens in Safari. On Chrome, the webpage uses ~330MB of RAM, but on Safari I saw it grow to over 12GB. I will have to investigate this further; I'm not sure if it's an issue with Safari, a bug in my code that only manifests on Safari, or perhaps it's the M1 memory leaks that people were talking about a month or so ago.

Anyway, thanks again for letting me know about that; I'll keep an eye out and look further into this.

Ameobea avatar Dec 15 '21 21:12 Ameobea

I just was looking through these issues and happen to have an iPad available now. I tested in Safari and the demo works now :)

Ameobea avatar Jan 04 '24 05:01 Ameobea