Skip to content
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

iSH crashes when "secret" menu opened. #1046

Closed
emkey1 opened this issue Nov 13, 2020 · 1 comment
Closed

iSH crashes when "secret" menu opened. #1046

emkey1 opened this issue Nov 13, 2020 · 1 comment
Assignees

Comments

@emkey1
Copy link
Contributor

emkey1 commented Nov 13, 2020

When you hold down the gear for five seconds the "secret" menu is supposed to open. Instead iSH crashes. I ran it on the debugger and here is what I see after the crash.

NAME PASS STOP NOTIFY
=========== ===== ===== ======
SIGUSR1 true false true
2020-11-13 10:04:43.657816-0500 iSH[61925:25281496] WF: === Starting WebFilter logging for process iSH
2020-11-13 10:04:43.657944-0500 iSH[61925:25281496] WF: _userSettingsForUser : (null)
2020-11-13 10:04:43.658032-0500 iSH[61925:25281496] WF: _WebFilterIsActive returning: NO
2020-11-13 10:04:43.658521-0500 iSH[61925:25281496] (
"/sbin/init"
)
2020-11-13 10:04:43.733573-0500 iSH[61925:25281724] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed
2020-11-13 10:04:43.767387-0500 iSH[61925:25281496] WF: _userSettingsForUser : (null)
2020-11-13 10:04:43.767496-0500 iSH[61925:25281496] WF: _WebFilterIsActive returning: NO
2020-11-13 10:04:43.881184-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 1311}, {1024, 55}}
2020-11-13 10:04:43.881914-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 1311}, {1024, 55}}
2020-11-13 10:04:43.919258-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 1311}, {1024, 55}}
2020-11-13 10:04:43.919584-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 1311}, {1024, 55}}
2020-11-13 10:04:48.984174-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 1366}, {1024, 397}}
2020-11-13 10:04:48.985063-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 1366}, {1024, 397}}
2020-11-13 10:04:49.412707-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 969}, {1366, 55}}
2020-11-13 10:04:49.413384-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 969}, {1366, 55}}
2020-11-13 10:04:55.684916-0500 iSH[61925:25281496] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x60000148a7b0 'accessoryView.bottom' _UIRemoteKeyboardPlaceholderView:0x7fb9caf2d930.bottom == _UIKBCompatInputView:0x7fb9caf49420.top (active)>",
"<NSLayoutConstraint:0x6000014a28f0 'assistantHeight' TUISystemInputAssistantView:0x7fb9cd026390.height == 55 (active)>",
"<NSLayoutConstraint:0x6000014e36b0 'assistantView.bottom' TUISystemInputAssistantView:0x7fb9cd026390.bottom == _UIKBCompatInputView:0x7fb9caf49420.top (active)>",
"<NSLayoutConstraint:0x60000148a670 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7fb9caf2d930]-(0)-[TUISystemInputAssistantView:0x7fb9cd026390] (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000148a670 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7fb9caf2d930]-(0)-[TUISystemInputAssistantView:0x7fb9cd026390] (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-11-13 10:04:55.723267-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 1024}, {1366, 55}}
2020-11-13 10:04:55.783220-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 1024}, {1366, 55}}
2020-11-13 10:04:55.788103-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 969}, {1366, 55}}
2020-11-13 10:04:56.311301-0500 iSH[61925:25281496] UIKeyboardDidChangeFrameNotification NSRect: {{0, 969}, {1366, 55}}
2020-11-13 10:05:01.974846-0500 iSH[61925:25281496] UIKeyboardWillChangeFrameNotification NSRect: {{0, 1024}, {1366, 55}}
2020-11-13 10:05:02.031022-0500 iSH[61925:25281496] [Warning] Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a table view cell's content view. We're considering the collapse unintentional and using standard height instead. Cell: <UITableViewCell: 0x7fb9bad3c560; frame = (0 187.5; 540 44); clipsToBounds = YES; autoresize = W; layer = <CALayer: 0x60000371e2a0>>
2020-11-13 10:05:02.500305-0500 iSH[61925:25281496] *** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <AboutNavigationController 0x7fb9cb82a800> for the key path "theme" from <UserPreferences 0x60000378eea0> because it is not registered as an observer.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2041daf2 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 Foundation 0x00007fff207b99f4 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 689
3 Foundation 0x00007fff207b9dee -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 74
4 iSH 0x00000001044fe84e -[AboutNavigationController dealloc] + 78
5 UIKitCore 0x00007fff247fabad -[UIStoryboardScene dealloc] + 22
6 libobjc.A.dylib 0x00007fff2018f834 _ZN11objc_object17sidetable_releaseEbb + 174
7 libobjc.A.dylib 0x00007fff2019101b _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 175
8 libobjc.A.dylib 0x00007fff20190f0a objc_autoreleasePoolPop + 185
9 UIKitCore 0x00007fff246aa377 -[UIResponder _preserveResponderOverridesWhilePerforming:] + 246
10 UIKitCore 0x00007fff24415d12 -[UIInputWindowController invalidateInputAccessoryView] + 106
11 UIKitCore 0x00007fff244165da -[UIInputWindowController changeToInputViewSet:] + 1135
12 UIKitCore 0x00007fff244174c1 __43-[UIInputWindowController setInputViewSet:]_block_invoke_3 + 38
13 UIKitCore 0x00007fff24411d03 __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke.899 + 919
14 UIKitCore 0x00007fff24bcb250 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 779
15 UIKitCore 0x00007fff24b9bb62 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 231
16 UIKitCore 0x00007fff24b9c101 -[UIViewAnimationState animationDidStop:finished:] + 259
17 QuartzCore 0x00007fff27a8a4f6 _ZN2CA5Layer23run_animation_callbacksEPv + 308
18 libdispatch.dylib 0x0000000104c779c8 _dispatch_client_callout + 8
19 libdispatch.dylib 0x0000000104c85e75 _dispatch_main_queue_callback_4CF + 1152
20 CoreFoundation 0x00007fff2038bdab CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
21 CoreFoundation 0x00007fff2038662e __CFRunLoopRun + 2685
22 CoreFoundation 0x00007fff203856c6 CFRunLoopRunSpecific + 567
23 GraphicsServices 0x00007fff2b76adb3 GSEventRunModal + 139
24 UIKitCore 0x00007fff24675187 -[UIApplication _run] + 912
25 UIKitCore 0x00007fff2467a038 UIApplicationMain + 101
26 iSH 0x000000010451d350 main + 112
27 libdyld.dylib 0x00007fff20256409 start + 1
28 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <AboutNavigationController 0x7fb9cb82a800> for the key path "theme" from <UserPreferences 0x60000378eea0> because it is not registered as an observer.'
CoreSimulator 732.18.0.2 - Device: iPad Pro (12.9-inch) (4th generation) (064DE660-7434-4B0A-8EA1-1F3E7A700331) - Runtime: iOS 14.2 (18B79) - DeviceType: iPad Pro (12.9-inch) (4th generation)
terminating with uncaught exception of type NSException
(lldb)

@saagarjha saagarjha self-assigned this Nov 13, 2020
@62f
Copy link

62f commented Nov 13, 2020

If necessary I will run a debugger for the similar issue Originally posted by @62f in #1049

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

No branches or pull requests

3 participants