-
Notifications
You must be signed in to change notification settings - Fork 592
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
FBRetainCycleDetector has a crash #64
Comments
FBRecycleTest`FB::RetainCycleDetector::Parser::Type::Type: |
(lldb) bt
FBRecycleTest was compiled with optimization - stepping may behave oddly; variables may not be available.
frame #0: 0x00000001047cc527 libc++.1.dylib`std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) + 27
FB::RetainCycleDetector::Parser::Type::Type(this=0x000060c000127b38, name=<unavailable>, typeEncoding="{?=\"mutations\"Q}") at Type.h:25 [opt] frame #2: 0x000000010448fbc8 FBRecycleTest
FB::RetainCycleDetector::Parser::Struct::Struct(this=0x000060c000127b38, name=, typeEncoding=, structTypeName="?", typesContainedInStruct=size=1) at Struct.h:27 [opt]frame NSGetSizeAndAlignment(): unsupported type encoding spec #3: 0x000000010448f372 FBRecycleTest
std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct> std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct>::make_shared<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&&&) [inlined] FB::RetainCycleDetector::Parser::Struct::Struct(this=<unavailable>, name="", typeEncoding="{?=\"mutations\"Q}", structTypeName="?", typesContainedInStruct=size=1) at Struct.h:29 [opt] frame #4: 0x000000010448f35c FBRecycleTest
std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct::make_shared<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&&&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&&&) [inlined] std::__1::__libcpp_compressed_pair_imp<std::__1::allocatorFB::RetainCycleDetector::Parser::Struct, FB::RetainCycleDetector::Parser::Struct, 1u>::__libcpp_compressed_pair_imp<std::__1::allocatorFB::RetainCycleDetector::Parser::Struct&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&, 0ul, 0ul, 1ul, 2ul, 3ul>(__second_args=tuple<std::__1::basic_string &, std::__1::basic_string &&, const std::__1::basic_string &, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > > &> @ 0x00007fdbae9c5840) at memory:2194 [opt]frame [Podspec] Set platform to 7.0 #5: 0x000000010448f355 FBRecycleTest
std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct> std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct>::make_shared<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&&&) [inlined] std::__1::__compressed_pair<std::__1::allocator<FB::RetainCycleDetector::Parser::Struct>, FB::RetainCycleDetector::Parser::Struct>::__compressed_pair<std::__1::allocator<FB::RetainCycleDetector::Parser::Struct>&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(__second_args=tuple<std::__1::basic_string<char> &, std::__1::basic_string<char> &&, const std::__1::basic_string<char> &, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > > &> @ 0x00007fdbae9c5810) at memory:2457 [opt] frame #6: 0x000000010448f355 FBRecycleTest
std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct::make_shared<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&&&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&&&) [inlined] std::__1::__compressed_pair<std::__1::allocatorFB::RetainCycleDetector::Parser::Struct, FB::RetainCycleDetector::Parser::Struct>::__compressed_pair<std::__1::allocatorFB::RetainCycleDetector::Parser::Struct&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(__second_args=tuple<std::__1::basic_string &, std::__1::basic_string &&, const std::__1::basic_string &, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > > &> @ 0x00007fdbae9c5810) at memory:2460 [opt]frame EXC_BAD_ACCESS while looking for retain cycles #7: 0x000000010448f355 FBRecycleTest
std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct> std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct>::make_shared<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&&&) [inlined] std::__1::__shared_ptr_emplace<FB::RetainCycleDetector::Parser::Struct, std::__1::allocator<FB::RetainCycleDetector::Parser::Struct> >::__shared_ptr_emplace<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(__args="", __args="{?=\"mutations\"Q}", __args="?", __args=size=1) at memory:3800 [opt] frame #8: 0x000000010448f337 FBRecycleTest
std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct::make_shared<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&&&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&&&) [inlined] std::__1::__shared_ptr_emplace<FB::RetainCycleDetector::Parser::Struct, std::__1::allocatorFB::RetainCycleDetector::Parser::Struct >::__shared_ptr_emplace<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(__args="", __args="{?="mutations"Q}", __args="?", __args=size=1) at memory:3801 [opt]frame Convert struct parsing to C++ #9: 0x000000010448f337 FBRecycleTest
std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct> std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Struct>::make_shared<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type>, std::__1::allocator<std::__1::shared_ptr<FB::RetainCycleDetector::Parser::Type> > >&>(__args=<unavailable>, __args=<unavailable>, __args=<unavailable>, __args=<unavailable>) at memory:4411 [opt] frame #10: 0x000000010448e803 FBRecycleTest
FB::RetainCycleDetector::Parser::_ParseStructEncodingWithScanner((anonymous namespace)::_StringScanner&) [inlined] std::__1::enable_if<!(is_arrayFB::RetainCycleDetector::Parser::Struct::value), std::__1::shared_ptrFB::RetainCycleDetector::Parser::Struct >::type std::__1::make_shared<FB::RetainCycleDetector::Parser::Struct, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::vector<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type, std::__1::allocator<std::__1::shared_ptrFB::RetainCycleDetector::Parser::Type > >&>(__args="", __args="{?="mutations"Q}", __args=) at memory:4775 [opt]frame array has incomplete element type 'struct rcd_rebinding' #11: 0x000000010448e7fe FBRecycleTest
FB::RetainCycleDetector::Parser::_ParseStructEncodingWithScanner(scanner=<unavailable>)::_StringScanner&) at FBStructEncodingParser.mm:110 [opt] frame #12: 0x000000010448e240 FBRecycleTest
FB::RetainCycleDetector::Parser::parseStructEncodingWithName(structEncodingString="{?="buffer"^@"state"(?=""{?="mutations"Q}""{?="muts"I"used"b25"kvo"b1"szidx"b6})}", structName="storage") at FBStructEncodingParser.mm:152 [opt]frame Make filtering cheaper - do not create wrapper object when we are not… #13: 0x000000010448d2a5 FBRecycleTest
::FBGetClassReferences(Class) [inlined] FBGetReferencesForObjectsInStructEncoding(ivar=0x000060c000246960, encoding=<unavailable>) at FBClassStrongLayout.mm:33 [opt] frame #14: 0x000000010448d1f6 FBRecycleTest
::FBGetClassReferences(aCls=) at FBClassStrongLayout.mm:109 [opt]frame Questions about get block strong layout #15: 0x000000010448d9e1 FBRecycleTest
::FBGetObjectStrongReferences(id, NSMutableDictionary *) [inlined] FBGetStrongReferencesForClass(objc_class*) at FBClassStrongLayout.mm:159 [opt] frame #16: 0x000000010448d9d6 FBRecycleTest
::FBGetObjectStrongReferences(obj=, layoutCache=) at FBClassStrongLayout.mm:200 [opt]frame pod validation error #17: 0x0000000104490ed1 FBRecycleTest
-[FBObjectiveCObject allRetainedObjects](self=<unavailable>, _cmd=<unavailable>) at FBObjectiveCObject.m:28 [opt] frame #18: 0x000000010448cd93 FBRecycleTest
::-[FBNodeEnumerator nextObject](self=0x000060c000224ee0, _cmd=) at FBNodeEnumerator.mm:34 [opt]frame Add debug logs to assertion to understand what type of structs are fa… #19: 0x000000010448b1be FBRecycleTest
::-[FBRetainCycleDetector _findRetainCyclesInObject:stackDepth:](self=0x000060c0002247c0, _cmd=<unavailable>, graphElement=<unavailable>, stackDepth=10) at FBRetainCycleDetector.mm:102 [opt] frame #20: 0x000000010448af05 FBRecycleTest
::-[FBRetainCycleDetector findRetainCyclesWithMaxCycleLength:](self=0x000060c0002247c0, _cmd=, length=10) at FBRetainCycleDetector.mm:63 [opt]frame Struct parsing is flaky if unions are part of struct #21: 0x000000010448855e FBRecycleTest
-[ViewController viewWillAppear:](self=0x00007fe80dd0cd40, _cmd="viewWillAppear:", animated=YES) at ViewController.m:60 frame #22: 0x000000010573e150 UIKit
-[UIViewController _setViewAppearState:isAnimating:] + 444frame Remove incorrect type cast #23: 0x000000010573e9e5 UIKit
-[UIViewController __viewWillAppear:] + 147 frame #24: 0x000000010576aa3b UIKit
-[UINavigationController _startCustomTransition:] + 1195frame Misjudged on retained cycle #25: 0x00000001057813b4 UIKit
-[UINavigationController _startDeferredTransitionIfNeeded:] + 686 frame #26: 0x00000001057826d3 UIKit
-[UINavigationController __viewWillLayoutSubviews] + 150frame What you think why is Set theme jekyll-theme-merlot #27: 0x00000001059dd4e2 UIKit
-[UILayoutContainerView layoutSubviews] + 231 frame #28: 0x0000000105661a6d UIKit
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1439frame Fix travis config to use Xcode 8 #29: 0x000000010c69e61c QuartzCore
-[CALayer layoutSublayers] + 159 frame #30: 0x000000010c6a27ad QuartzCore
CA::Layer::layout_if_needed(CA::Transaction*) + 401frame How can I run it on Swift , unless can't bridge #31: 0x000000010c62986c QuartzCore
CA::Context::commit_transaction(CA::Transaction*) + 364 frame #32: 0x000000010c656946 QuartzCore
CA::Transaction::commit() + 500frame __block variables have been capture by the block,but 'dispose_helper' error #33: 0x000000010c657694 QuartzCore
CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 76 frame #34: 0x0000000108043c07 CoreFoundation
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23frame "Segmentation fault: 11" during a compilation or "The LLDB RPC server has crashed" during a runtime #35: 0x0000000108043b5e CoreFoundation
__CFRunLoopDoObservers + 430 frame #36: 0x0000000108028124 CoreFoundation
__CFRunLoopRun + 1572frame Fair & Lovely #37: 0x0000000108027889 CoreFoundation
CFRunLoopRunSpecific + 409 frame #38: 0x000000010bf599c6 GraphicsServices
GSEventRunModal + 62frame Panache Ava #39: 0x00000001055905d6 UIKit
UIApplicationMain + 159 frame #40: 0x0000000104488e7f FBRecycleTest
main(argc=1, argv=0x00007ffeeb7780d0) at main.m:14frame Freya #41: 0x0000000108691d81 libdyld.dylib`start + 1
(FB::RetainCycleDetector::Parser::Type *) this = 0x000060c000127b38
this->name:
(std::__1::string) name = ""
Printing description of this->name._r:
(std::__1::__compressed_pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__rep, std::__1::allocator >) _r = {
std::__1::__libcpp_compressed_pair_imp<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__rep, std::__1::allocator, 2> = {
_first = {
= {
__l = (_cap = 0, _size = 0, _data = 0x0000000000000000)
__s = {
= (_size = '\0', __lx = '\0')
_data = {
[0] = '\0'
[1] = '\0'
[2] = '\0'
[3] = '\0'
[4] = '\0'
[5] = '\0'
[6] = '\0'
[7] = '\0'
[8] = '\0'
[9] = '\0'
[10] = '\0'
[11] = '\0'
[12] = '\0'
[13] = '\0'
[14] = '\0'
[15] = '\0'
[16] = '\0'
[17] = '\0'
[18] = '\0'
[19] = '\0'
[20] = '\0'
[21] = '\0'
[22] = '\0'
}
}
__r = {
__words = ([0] = 0, [1] = 0, [2] = 0)
}
}
}
}
}
Printing description of this->typeEncoding:
(std::__1::string) typeEncoding = "`I\x04\x01\0"
Printing description of this->typePath:
(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) typePath = size=0 {}
The text was updated successfully, but these errors were encountered: