iOS13崩溃-[UIWindowScene _enumerateWindowsInincludeInternalWindows:onlyVisibleWindows:asCopy:stopped:withBlock:]?

时间:2019-09-23 13:58:51

标签: ios uikit ios13

自从iOS 13.0发布以来,我已经在我们的应用程序中多次看到此崩溃的情况:

Fatal Exception: NSRangeException
0  CoreFoundation                 0x1846cf278 __exceptionPreprocess
1  libobjc.A.dylib                0x1843f80a4 objc_exception_throw
2  Foundation                     0x184998480 -[NSConcretePointerArray dealloc]
3  UIKitCore                      0x1888da3b8 -[UIWindowScene _enumerateWindowsIncludingInternalWindows:onlyVisibleWindows:asCopy:stopped:withBlock:]
4  UIKitCore                      0x1888d9f74 -[UIWindowScene _topVisibleWindowPassingTest:]
5  UIKitCore                      0x1886fc4c4 +[UIWindow _hitTestToPoint:forEvent:windowServerHitTestWindow:]
6  UIKitCore                      0x1886fc854 -[UIWindow _targetWindowForPathIndex:atPoint:forEvent:windowServerHitTestWindow:]
7  UIKitCore                      0x18873c080 ____updateTouchesWithDigitizerEventAndDetermineIfShouldSend_block_invoke.52
8  UIKitCore                      0x18874b738 _UIEventHIDEnumerateChildren
9  UIKitCore                      0x18873f8d0 __dispatchPreprocessedEventFromEventQueue
10 UIKitCore                      0x188742dc4 __handleEventQueueInternal
11 UIKitCore                      0x18873bc38 __handleHIDEventFetcherDrain
12 CoreFoundation                 0x18464d090 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
13 CoreFoundation                 0x18464cfe8 __CFRunLoopDoSource0
14 CoreFoundation                 0x18464c780 __CFRunLoopDoSources0
15 CoreFoundation                 0x1846478cc __CFRunLoopRun
16 CoreFoundation                 0x18464716c CFRunLoopRunSpecific
17 GraphicsServices               0x18e47f328 GSEventRunModal
18 UIKitCore                      0x1886b1d0c UIApplicationMain
19 MyApp                           0x100d3ba64 main + 18 (main.swift:18)
20 libdyld.dylib                  0x1844d2424 start

仅在iOS 13.0.0(17A577)

中发生

我们对于导致此问题的步骤没有太多了解,目前我们所拥有的只是堆栈跟踪。

有人有类似经历吗?

关于可能是什么原因的任何想法?

1 个答案:

答案 0 :(得分:0)

  1. 拥有makeKeyAndVisible对您创建的UIWindow的引用
  2. 使用window.hidden = false代替设置RUN venv/bin/pip install gunicorn pymysql