Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

FBMemoryProfiler crash with __NSCFCalendar,_screenPageMap. #15

Open
c-xiaoqiang opened this issue Apr 26, 2016 · 1 comment
Open

FBMemoryProfiler crash with __NSCFCalendar,_screenPageMap. #15

c-xiaoqiang opened this issue Apr 26, 2016 · 1 comment

Comments

@c-xiaoqiang
Copy link

c-xiaoqiang commented Apr 26, 2016

I have test the FBMemoryProfiler in my project and cause some crash:

  1. FBObjectiveCObject ->subobject->0xffffffffffffffff & namePath = @"_screenPageMap":

fbtest1

when I filter it the crash fixed.
if ([self.namePath[0] isEqualToString:@"_screenPageMap"]) { NSLog(@""); return retainedObjects; }

  1. FBAllocationTrackerManager:- (NSArray *)instancesForClass:(__unsafe_unretained Class)aCls inGeneration:(NSInteger)generation
    fbtest2
    fbtest3

in FBAllocationTrackerImpl std::vector<id> instancesOfClassForGeneration I filter it with code:
if ([NSStringFromClass(aCls) isEqualToString:@"__NSCFCalendar"]) { return std::vector<id> {}; }

then my project run complete with retain cycles button tap.

@Gricha
Copy link

Gricha commented Apr 29, 2016

Quite interesting. I will look more closely into that. While your workaround is fine, I'll try to find a root cause of that. If we're unable to avoid that, we can just filter it out.

Thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants