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

Crashing in xcode 12.3 + versions #814

Open
nuwanga88 opened this issue Mar 4, 2021 · 1 comment
Open

Crashing in xcode 12.3 + versions #814

nuwanga88 opened this issue Mar 4, 2021 · 1 comment

Comments

@nuwanga88
Copy link

nuwanga88 commented Mar 4, 2021

App always getting crash in 12.3+ ipa.
This is working on debug mode. But when I create a ipa or run as Release (ipa) version app always getting crash in below bold code line.

- (void)closeOpenResultSets {
    
    //Copy the set so we don't get mutation errors
    NSSet *openSetCopy = FMDBReturnAutoreleased([_openResultSets copy]);
    for (NSValue *rsInWrappedInATastyValueMeal in openSetCopy) {
        **FMResultSet *rs = (FMResultSet *)[rsInWrappedInATastyValueMeal pointerValue];**
        
        [rs setParentDB:nil];
        [rs close];
        
        [_openResultSets removeObject:rsInWrappedInATastyValueMeal];
    }

This is the result and I noticed openSetCopy has only NSObject only, but the element object is missing. (elements coming when run in debug mode)
image

Anyone has faced this issue?

@ccgus
Copy link
Owner

ccgus commented Mar 4, 2021

Do you have a stack trace of where the crash happens, with all threads visible?

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