GDCoreDataConcurrencyDebugging icon indicating copy to clipboard operation
GDCoreDataConcurrencyDebugging copied to clipboard

EXC_BAD_ACCESS in CreateCustomSubclass

Open nicklocking opened this issue 7 years ago • 4 comments

On running my app with this pod installed, I get an EXC_BAD_ACCESS in the CreateCustomSubclass method. A screenshot of the debug state at this point is attached. The variable 'class' comes in to the method fine, but something goes wrong and I'm not sure why. class_getName produces the same EXC_BAD_ACCESS if I try and add debug logging.

screen shot 2017-04-03 at 6 21 26 pm

nicklocking avatar Apr 04 '17 01:04 nicklocking

I see the same error as @nicklocking, even when running the example.

jerrytdev avatar May 10 '17 20:05 jerrytdev

@GrahamDennis bump

batkov avatar May 18 '17 10:05 batkov

Same crash while inserting object AppStatus* appStatus = [NSEntityDescription insertNewObjectForEntityForName:@"AppStatus" inManagedObjectContext:_coreDataManager.managedObjectContext];

batkov avatar May 18 '17 11:05 batkov

same same...

FWIW, I added

if (!subclass) return NSClassFromString(newName);

on line 333 in GDConcurrencyCheckingManagedObject.m

fvvliet avatar May 19 '17 13:05 fvvliet