Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malloc: *** error for object: pointer being freed was not allocated #40

Closed
menesh2 opened this issue Oct 21, 2018 · 8 comments
Closed

Comments

@menesh2
Copy link

menesh2 commented Oct 21, 2018

Hi,
i keep getting this exception : "malloc: *** error for object: pointer being freed was not allocated"
when i am making this call: swiftHandleLog(file, function, line, message, color)
I'm getting this exception almost every time but if i mark this line (and just prints the same text) everything goes well an the app works just fine.
can you tell what may cause this problem?
am i doing something wrong?

edit:
the crash happens on LogHelper.swift at line 35: LogStoreManager.shared.addLog(newLog)

@menesh2
Copy link
Author

menesh2 commented Oct 22, 2018 via email

@CocoaDebug CocoaDebug reopened this Oct 23, 2018
@CocoaDebug
Copy link
Owner

I will fix soon. My macbook has broken now. Sorry

@CocoaDebug CocoaDebug added the bug Something isn't working label Oct 26, 2018
@CocoaDebug
Copy link
Owner

CocoaDebug commented Oct 26, 2018

Released new version, you can set disableLogMonitoring value to be true to disable Xcode logs monitoring.

More see here: https://github.com/CocoaDebug/CocoaDebug#parameters

Thanks

@menesh2
Copy link
Author

menesh2 commented Oct 26, 2018 via email

@CocoaDebug
Copy link
Owner

CocoaDebug commented Nov 4, 2018

Try this in Xcode if this crash has happened again, thanks~

snip20181030_2

@menesh2
Copy link
Author

menesh2 commented Nov 5, 2018 via email

@CocoaDebug
Copy link
Owner

CocoaDebug commented Dec 15, 2018

Please update CocoaDebug to last version. Thanks!

@haoht
Copy link

haoht commented Dec 18, 2018

Good

@CocoaDebug CocoaDebug removed the bug Something isn't working label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants