Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Crash With DOM Debugger #27

Closed
mikelikespie opened this Issue · 2 comments

3 participants

@mikelikespie

@ryanolsonk I just integrated it in our app, but i am having a random crash. It has happened a few times.

I think I am hitting an assertion. Here's the log output.

Oct 26 10:28:05 unknown Square[187] <Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<PDDOMDomainController: 0xf17d570>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled.
    Key path: frame
    Observed object: <UIImageView: 0xf277b30; frame = (0 0; 540 576); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0xf277b70>>
    Change: {
        kind = 1;
        new = "NSRect: {{0, 0}, {540, 576}}";
    }
    Context: 0x0'
    *** First throw call stack:
    (0x33a4f88f 0x32541259 0x33a4f789 0x33a4f7ab 0x329b0d63 0x79e33 0x3295813f 0x32957da5 0x3292e997 0x3573ddd3 0x35695b69 0x35695609 0x35695409 0x35694c57 0x356948ff 0x3566f109 0x3566f109 0x3566f109 0x3566f109 0x3566eeed 0x3582d1f7 0x3566ded1 0x7c09f 0x35706a1b 0x35681c53 0x3568757d 0x3236ec2f 0x3209eee7 0x33a222ad 0x339a54a5 0x339a536d 0x32f23439 0x3569ae7d 0x3d7bb 0x3d778)

And the stack trace:

Last Exception Backtrace:
0   CoreFoundation                  0x33a4f88f __exceptionPreprocess + 163
1   libobjc.A.dylib                 0x32541259 objc_exception_throw + 33
2   CoreFoundation                  0x33a4f789 +[NSException raise:format:] + 1
3   CoreFoundation                  0x33a4f7ab +[NSException raise:format:] + 35
4   Foundation                      0x329b0d63 -[NSObject(NSKeyValueObserving) observeValueForKeyPath:ofObject:change:context:] + 83
5   Square                          0x00079e33 -[PDDOMDomainController observeValueForKeyPath:ofObject:change:context:] (PDDOMDomainController.m:453)
6   Foundation                      0x3295813f NSKeyValueNotifyObserver + 259
7   Foundation                      0x32957da5 NSKeyValueDidChange + 325
8   Foundation                      0x3292e997 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 95
9   UIKit                           0x3573ddd3 -[UITableView(_UITableViewPrivate) _updateBackgroundViewFrame] + 87
10  UIKit                           0x35695b69 -[UITableView(_UITableViewPrivate) _updateBackgroundView] + 45
11  UIKit                           0x35695609 -[UITableView setContentOffset:] + 365
12  UIKit                           0x35695409 -[UIScrollView(Static) _adjustContentOffsetIfNecessary] + 1897
13  UIKit                           0x35694c57 -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:dealloc:pin:] + 191
14  UIKit                           0x356948ff -[UIScrollView _didMoveFromWindow:toWindow:] + 83
15  UIKit                           0x3566f109 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 425
16  UIKit                           0x3566f109 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 425
17  UIKit                           0x3566f109 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 425
18  UIKit                           0x3566f109 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 425
19  UIKit                           0x3566eeed -[UIView(Hierarchy) _postMovedFromSuperview:] + 141
20  UIKit                           0x3582d1f7 __UIViewWasRemovedFromSuperview + 107
21  UIKit                           0x3566ded1 -[UIView(Hierarchy) removeFromSuperview] + 165
22  Square                          0x0007c09f -[UIView(Hackery) pd_swizzled_removeFromSuperview] (PDDOMDomainController.m:693)
23  UIKit                           0x35706a1b -[UITransitionView _didCompleteTransition:] + 423
24  UIKit                           0x35681c53 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 471
25  UIKit                           0x3568757d -[UIViewAnimationState animationDidStop:finished:] + 53
26  QuartzCore                      0x3236ec2f CA::Layer::run_animation_callbacks(void*) + 203
27  libdispatch.dylib               0x3209eee7 _dispatch_main_queue_callback_4CF$VARIANT$mp + 195
28  CoreFoundation                  0x33a222ad __CFRunLoopRun + 1269
29  CoreFoundation                  0x339a54a5 CFRunLoopRunSpecific + 301
30  CoreFoundation                  0x339a536d CFRunLoopRunInMode + 105
31  GraphicsServices                0x32f23439 GSEventRunModal + 137
32  UIKit                           0x3569ae7d UIApplicationMain + 1081
33  Square                          0x0003d7bb main (main.m:28)
34  Square                          0x0003d778 start + 40
@ryanolsonk

@mikelikespie Sorry about the crashes! I've got a fix for this. I should never be making calling [super observeValueForKeyPath:...] because no classes above PDDOMDomainController implement the method. I will submit a PR tonight.

@ryanolsonk

I believe #29 should resolve this.

@wlue wlue closed this
@davidapgar davidapgar referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.