[iOS, Question] Random "malloc: * error for object 0xXXXXX: pointer being freed was not allocated"
See original GitHub issueI’m submitting a … (check one with “x”) [x] question [ ] any problem or bug report [ ] feature request
If you choose ‘problem or bug report’, please select OS: (check one with “x”) [ ] Android [x] iOS
I’m currently using the latest multiple_maps
branch
My question : Why do you run this code in a background thread ? https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/src/ios/GoogleMaps/PluginPolyline.m#L105 Is it wanted for something ?
I’m asking that because, sometimes, it makes my app crash because the self.mapCtrl.objects
dictionary is mutated in both thread here and here
If I remove the code execution from the background thread, the app isn’t crashing anymore randomly and it not seems to affect the speed of the Polyline drawing.
Here is some information about it : https://stackoverflow.com/questions/16974368/nsmutabledictionary-with-two-keys-pointing-to-same-object-causing-double-free#comment24521155_16974368
Again, it’s just a question about your way of doing things, maybe you did this way for a good reason that I don’t see because I did not build this plugin.
Thanks 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
Same as I am. I noticed this issue in my project and if I have something relevant to this I will reopen and give you some related code to reproduce if needed.
Thanks for arguing with me.
Thank you for nice arguing.