x/mobile: runtime: out of memory on iOS 7 #21288
Open
Labels
Milestone
Comments
Gomobile uses this issue tracker, you just need to set the x/mobile tag. |
If you're feeling adventurous, the current Go tip (to become 1.11) has improved its memory allocation strategy using sparse heap mappings. It would be interested to know if your problem persists. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?go1.8.3 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Run my app with linked go framework on iOS 7 and it crashed.
What did you expect to see?
I expected app not to crash, since it works fine on iOS 8, iOS 9 and iOS 10.
What did you see instead?
I get this crash on the first run only, but on each subsequent run after that, app runs for a liitle bit, then crashes randomly with error:
malloc: *** mach_vm_map(size=8388608) failed (error code=3) *** error: can't allocate region securely
.Interestingly enough, this happens even if the framework is not imported nor used anywhere in the code, it's just linked in the app. On newer versions of iOS it works well.
The text was updated successfully, but these errors were encountered: