Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28518

iOS: VideoPlayer fails to use correct parent controller

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Release 10.0.0
    • Fix Version/s: Release 10.1.0
    • Component/s: iOS
    • Environment:

      Description

      Hello. Good afternoon.

      Basically the combination of the module:
      dk.napp.drawer module plus the <VideoPlayer/> component it is causing a crash in the app with Ti SDK 10, this is a big blocker to continue using the Ti SDK 10 in our app. Please try to escalate this issue as soon as possible. This is a critical issue.

      When I try to set the url property on the controller of the video component, the app is crashing.

      With 9.3.2.GA it is working pretty good, but with TiSDK 10.0.0.GA it is still crashing.

      I tried several ways to implement a workaround without success. Even it was suggested to use the 10.0.1 from the https://builds.appcelerator.com/#10_0_X, but without success also.

      Since the following tickets could be related:

      Download Reproducible Project Code:

      Specs:

      Node.js
        Node.js Version             = 14.17.3
        npm Version                 = 6.14.13
       
      Titanium CLI
        CLI Version                 = 5.3.0
        node-appc Version           = 1.1.2
       
      Appcelerator Command-Line Interface, version 9.0.1
       
      Alloy version : 1.16.2
      Xcode : 12.5.1
      TiSDK : 10.0.0.GA
      dk.napp.drawer : 2.1.1
      

      Log:

      [DEBUG] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<AVPlayerViewController: 0x7fd6ae0aa000> should have parent view controller:<TiViewController: 0x7fd6adc5c6c0> but actual parent is:<TiRootViewController: 0x7fd6ae81d000>'
       
      [DEBUG] *** First throw call stack:
       
      [DEBUG] ( 
       
      [DEBUG]         0   CoreFoundation                      0x00007fff20422fba __exceptionPreprocess + 242
       
      [DEBUG]         1   libobjc.A.dylib                     0x00007fff20193ff5 objc_exception_throw + 48
       
      [DEBUG]         2   CoreFoundation                      0x00007fff20422e98 -[NSException initWithCoder:] + 0
       
      [DEBUG]         3   UIKitCore                           0x00007fff24c01690 -[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:] + 225
       
      [DEBUG]         4   UIKitCore                           0x00007fff24c01dfc -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 334
       
      [DEBUG]         5   UIKitCore                           0x00007fff24c02c97 _makeSubTreePerformSelector + 631
       
      [DEBUG]         6   UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         7   UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         8   UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         9   UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         10  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         11  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         12  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         13  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         14  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         15  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         16  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         17  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         18  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         19  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         20  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         21  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         22  UIKitCore                           0x00007fff24c02cb4 _makeSubTreePerformSelector + 660
       
      [DEBUG]         23  UIKitCore                           0x00007fff24c11fb5 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 484
       
      [DEBUG]         24  demo                                0x0000000102177247 -[DkNappDrawerDrawer controller] + 3338
       
      [DEBUG]         25  demo                                0x00000001021777de -[DkNappDrawerDrawer frameSizeChanged:bounds:] + 35
       
      [DEBUG]         26  TitaniumKit                         0x00000001026bfe43 -[TiUIView checkBounds] + 517
       
      [DEBUG]         27  TitaniumKit                         0x00000001026c00be -[TiUIView setBounds:] + 83
       
      [DEBUG]         28  TitaniumKit                         0x00000001026d4e5b -[TiViewProxy relayout] + 842
       
      [DEBUG]         29  TitaniumKit                         0x00000001026d435a -[TiViewProxy refreshView:] + 405
       
      [DEBUG]         30  TitaniumKit                         0x00000001026d50a0 -[TiViewProxy layoutChildrenIfNeeded] + 141
       
      [DEBUG]         31  TitaniumKit                         0x00000001026f4b5c performLayoutRefresh + 272
       
      [DEBUG]         32  CoreFoundation                      0x00007fff2039178a __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
       
      [DEBUG]         33  CoreFoundation                      0x00007fff2039127c __CFRunLoopDoTimer + 924
       
      [DEBUG]         34  CoreFoundation                      0x00007fff2039081a __CFRunLoopDoTimers + 265
       
      [DEBUG]         35  CoreFoundation                      0x00007fff2038ae69 __CFRunLoopRun + 2013
       
      [DEBUG]         36  CoreFoundation                      0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
       
      [DEBUG]         37  GraphicsServices                    0x00007fff2b874d85 GSEventRunModal + 139
       
      [DEBUG]         38  UIKitCore                           0x00007fff246c14df -[UIApplication _run] + 912
       
      [DEBUG]         39  UIKitCore                           0x00007fff246c639c UIApplicationMain + 101
       
      [DEBUG]         40  demo                                0x0000000101cc2ba2 main + 1170
       
      [DEBUG]         41  libdyld.dylib                       0x00007fff2025abbd start + 1
       
      [DEBUG]         42  ???                                 0x0000000000000001 0x0 + 1
       
      [DEBUG] ) 
       
      [DEBUG] libc++abi: terminating with uncaught exception of type NSException
      
      

      Please let me know whether there is a doubt or question.

      Thanks, and best,
      Antonio Duran.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              antonioduran Francisco Antonio Duran Ramirez
              Reviewer:
              Joshua Quick
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration