Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Malloc pointer being freed was not allocated -- Ionic1 + cordova-plugin-wkwebview-engine

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

like image 783
user3182431 Avatar asked Sep 29 '16 16:09

user3182431


2 Answers

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.

like image 130
cycDroid Avatar answered Oct 21 '22 20:10

cycDroid


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

like image 3
LF00 Avatar answered Oct 21 '22 21:10

LF00