aryaxt / OCMapper

Objective-C library to easily map NSDictionary to model objects, works perfectly with Alamofire. ObjectMapper works similar to GSON
MIT License
347 stars 45 forks source link

Crash ObjectMapper.m EXC_BAD_ACCESS KERN_INVALID_ADDRESS #69

Closed lorenzoPrimi closed 5 years ago

lorenzoPrimi commented 5 years ago

This happened to many users, crash log provided: http://crashes.to/s/cfb72a098b8

Probably related: http://crashes.to/s/e8a3c5eb4e0 http://crashes.to/s/47278b1c1f1 http://crashes.to/s/3061ade5d60

Issue: https://github.com/ooni/probe-ios/issues/222

lorenzoPrimi commented 5 years ago

The problem is that I was calling multiple time (without thread control) this code

    InCodeMappingProvider *inCodeMappingProvider = [InCodeMappingProvider new];

    [[ObjectMapper sharedInstance] setMappingProvider:inCodeMappingProvider];