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

Lib crashes randomly with signal SIGABRT #22

Open
srenrd opened this issue Oct 25, 2023 · 4 comments
Open

Lib crashes randomly with signal SIGABRT #22

srenrd opened this issue Oct 25, 2023 · 4 comments
Assignees

Comments

@srenrd
Copy link

srenrd commented Oct 25, 2023

The lib crashes randomly on Line 335: return try context.fetch(request) in public func result() throws -> [Entity]

It seemed like it started after upgrading to xCode 15.

PS. I'm using it for SwiftUI.

@ftchirou ftchirou self-assigned this Oct 30, 2023
@ftchirou
Copy link
Owner

Hey @srenrd! Thank you for reporting this. Please could you provide a small sample project reproducing the issue? Thank you.

@srenrd
Copy link
Author

srenrd commented Nov 3, 2023

Hi, I've tried to recreate this bug in a new project, but without success. It is far to random. During a day of development i get this crash 0-2 times.
However it does seem like large data sets and SwiftUI navigationLink plays a part in the crash.

I'll keep investigating and report back with further details.

@srenrd
Copy link
Author

srenrd commented Jun 7, 2024

Hi again. I've managed to catch a bit of info on this. As described before, it seems totally random when this happens. But it is always the same line of code that crashes.

It happens when the .result() is called.

App(14673,0x305b87000) malloc: Non-aligned pointer 0x6000006f6b20 being freed (2)
App(14673,0x305b87000) malloc: *** set a breakpoint in malloc_error_break to debug

Screenshot 2024-06-07 at 10 24 30

@ftchirou
Copy link
Owner

I wonder if this is concurrency related. Do you get any errors/warnings when you pass the CoreData concurrency debug arguments on launch to your app?

-com.apple.CoreData.ConcurrencyDebug 1

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

2 participants