iOS Safari crashes loading some audio files

Bugs will be moved here once resolved.

Post » Fri Jul 22, 2016 6:44 pm

Problem Description
This is a Safari bug, not a Construct 2 bug. I'm reporting it here because Scirra asked me to on Twitter.

Safari on iOS 9.3 crashes while loading certain M4A files. This bug seems similar to one that was discussed here a while ago (importing-certain-wav-files-crashes-on-safari_t120520, safari-error-loading-up-game_t120751). Scirra's test case at causes a crash as well. I only recently started testing my project on iOS, so I don't know if this is a new bug or they just never fixed the old one.

Attach a Capx ... t=download

Description of Capx
It's a blank project with two things added: an Audio object, and a sound file that triggers the bug. There are no events.

Steps to Reproduce Bug
  • Enable Preview on LAN, if you haven't already.
  • Preview the project.
  • Browse to the preview URL on iOS Safari.

Observed Result
The tab crashes and auto-reloads a few times with the message "A problem occurred with this webpage so it was reloaded.", then gives up.

Expected Result
A blank white playfield and no crash.

Affected Browsers
This appears to be specific to Safari on iOS. Safari on Mac OS X is unaffected.

I don't have an iOS device, so most of my testing has been in the iOS Simulator app included in Xcode. I've reproduced it a couple of times on a briefly borrowed iPhone.

Operating System and Service Pack
iOS 9.3

Construct 2 Version ID
Release 227 (64-bit)
Posts: 4
Reputation: 283

Post » Fri Jul 22, 2016 7:52 pm

I've just found where Xcode lets you download older iOS versions for the simulator. So far I've reproduced the bug in iOS 9.2 and 9.1. I'm going to keep going back through older versions to see if there's one where the crash doesn't happen, but each one is well over a gigabyte to download, so it's going to take me a bit to get them all.
Posts: 4
Reputation: 283

Post » Fri Jul 22, 2016 8:50 pm

Browsing to crashes Safari in every version of iOS available for the simulator. It goes at least as far back as iOS 8.1, which is the version the original bug was reported against. I guess they never fixed it.
Posts: 4
Reputation: 283

Post » Mon Aug 01, 2016 3:07 pm

Closing as this is a webkit bug which will be fixed from here:
Scirra Founder
Posts: 25,198
Reputation: 200,327

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests