You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Gomobile uses this issue tracker, you just need to set the x/mobile tag.
Regarding the framework, apologies if I was unclear, I was refering to my own code written in Go, which was then exported to an iOS framework with gomobile build, just like it says in docs.
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.
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: