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

Crash when the ConcurrencyDebug flag is passed #104

Closed
OscarGorog opened this issue Aug 22, 2022 · 2 comments
Closed

Crash when the ConcurrencyDebug flag is passed #104

OscarGorog opened this issue Aug 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@OscarGorog
Copy link

I just began using Pulse and accidentally ran into what seems to be a concurrency bug with Core Data when using the ConcurrencyDebug flag.

The crash happens on line 167 in the LoggerStore.swift file (backgroundContext.userInfo[WeakLoggerStore.loggerStoreKey] = WeakLoggerStore(store: self)) and says this: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x185874d3c)

Not really sure how to go about fixing it as I'm not entirely sure what caused it. Just thought I'd report it as it seems like an issue. 😀

@kean
Copy link
Owner

kean commented Aug 22, 2022

Thanks for the report. I haven't tested with this flag. I think it just means that the access should be confined to the context's queue. But no harm done in this case because parallel access is impossible in the initializer. But it of course needs to be fixed.

@kean kean added the bug Something isn't working label Aug 22, 2022
@kean kean closed this as completed in 9a2d8e4 Aug 22, 2022
@OscarGorog
Copy link
Author

Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants