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

iOS: UI.View: intermittent deadlock warning

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: Release 2.1.0
    • Component/s: iOS
    • Environment:

      SDK: 2.1.0.v20120404140322
      Studio: 2.0.0.201203291340
      OS: Snow Leopard
      Devices Tested: iPhone4S 5.1, iPad Simulator 4.3

      Description

      When running the code below, a deadlock warning intermittently appears:

      Apr 4 14:59:27 unknown UIKitApplication:com.appcelerator.timob8193[0x13cc][3489] <Notice>: [WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)

      Attempted to reproduce in 2.0.0.GA, but could not.

      Steps to Reproduce:

      1. Run code.

      var win1 = Ti.UI.createWindow({  
          title:'Win 1',
          layout:'vertical',
          backgroundColor:'#fff'
      });
       
      var vw1 = Ti.UI.createView({
          layout:'horizontal',
          backgroundColor:'red',
          width:'100%',
          height:75
      });
      win1.add(vw1);
       
      //
      var TheOrange=Ti.UI.createView({height:75,
                                      width:'160dp',
                                      backgroundColor:'orange',
                                      top:0
                                     });
       
      var GreenView=Ti.UI.createView({
                height:Ti.UI.SIZE,
                width:Ti.UI.SIZE,
                focusable:false,
                touchEnabled:false,
                backgroundColor:'green'
      });
       
      GreenView.add(TheOrange);
      vw1.add(GreenView);
       
      var BlueView=Ti.UI.createView({
          backgroundColor:'blue',
          width:50,
          height:50
      });
      vw1.add(BlueView);
      //
       
      win1.open();
      

      Expected Result:

      Views should appear without deadlock warnings.

      Actual Result:

      Views appear with deadlock warning, intermittent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stephentramer Stephen Tramer
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-12840
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration