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

Random crashes #1827

Open
dhoerl-lp opened this issue Dec 31, 2024 · 1 comment
Open

Random crashes #1827

dhoerl-lp opened this issue Dec 31, 2024 · 1 comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@dhoerl-lp
Copy link

dhoerl-lp commented Dec 31, 2024

New Issue Checklist

Issue Description

Random crashes always in the same place:

- (void)runContinuations {
    @synchronized(self.lock) {
        [self.condition lock];
        [self.condition broadcast]; <- CRASHES
        [self.condition unlock];
        for (void (^callback)(void) in self.callbacks) {
            callback();
        }
        [self.callbacks removeAllObjects];
    }

Steps to reproduce

Unfortunately no reproducible way. I have a script I developed to retrieve a slew of data from each office of a client. It would run 10 minutes and continually PFQuery for data. It will reliable crash at some random point, usually 5 min in.

Actual Outcome

Random crashes. It's always in the same spot as shown above. I thought it was due to the high load of my download script, but I got it the yesterday when there was very light Parse usage.

I believe I have seen this same crash in the past, but it was very infrequent. It's getting more frequent.

If there is some logging I can enable, or you have some suggestions on how to better understand the conditions, I could possible swizzle that method to log something.

Expected Outcome

No crashes.

Environment

iOS 18.2 (latest), Xcode Simulator 16.2

Client

  • Parse ObjC SDK version: 4.2.0 Package

Server

  • Parse Server version: N/A
  • Operating system: macOS 15.1.1 Apple M3 Silicon
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): AWS

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: Unknown
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): AWS

Logs

Will update next crash.

Copy link

parse-github-assistant bot commented Dec 31, 2024

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants