question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS, Question] Random "malloc: * error for object 0xXXXXX: pointer being freed was not allocated"

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
thipharielcommented, Dec 2, 2017

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.

0reactions
wf9a5m75commented, Dec 2, 2017

Thank you for nice arguing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross-Platform Release Notes for Cisco IOS Release 15.3S
Symptom: Traceback is observed with error message “standby cannot allocate VLAN for Tunnel Rsvd Vlan”. Conditions: The issue seen while ...
Read more >
Chapter 6. Avoid Buffer Overflow - Serg Iakovlev
If the code were changed so that ``buf'' was a pointer to some allocated ... An obvious question is whether or not the...
Read more >
Secure Programming for Linux and Unix HOWTO - Ibiblio
This book is distributed in the hope that it will be useful, but ... The pointer value that means ``does not point anywhere''...
Read more >
C++ Plugin Debug Log with Unity - GameDev.net Articles
Now, due to modifications of some code parts, it is no longer needed and there are just int values being saved. At the...
Read more >
Secure Programming for Linux and Unix HOWTO
This book is distributed in the hope that it will be useful, but ... examples) of some common errors when programming secure programs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found