12

Everything was running fine then suddenly this, oh yeah upgraded to Sierra before this bug and now using xCode 8.0.

Malloc: * error for object 0x1740b6e00: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug

enter image description here

Luka Kerr
  • 4,161
  • 7
  • 39
  • 50
user3182431
  • 123
  • 6
  • Can you give more details please ? Does it happens every time ? On which device have you tested (iOS version, emulator or device) ? – e666 Sep 29 '16 at 17:00
  • I'm getting this as well, but from a Swift app running on iOS. It happens after I execute any Javascript from the swift code. – Chris Brandsma Oct 10 '16 at 16:56
  • http://stackoverflow.com/a/43885754/6521116 – LF00 May 10 '17 at 07:15

2 Answers2

33

I struggled with this crash for hours before i finally figured out that Safari was responsible. It was due to the option Develop>Device>Automatically show web inspector for JSContext. If it doesn't work try quit Safari completely.

cycDroid
  • 915
  • 10
  • 16
3

One pic is enough, for more refer to this post,

Disable auto safari or safari preview inspect, below is safari preview.

enter image description here

Community
  • 1
  • 1
LF00
  • 27,015
  • 29
  • 156
  • 295