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

Windows: Adding a hyperloop created UI element to a View crashes the app

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.0, Release 7.2.0
    • Fix Version/s: Release 7.1.0
    • Component/s: Hyperloop, Windows
    • Labels:
    • Environment:

      SDK: 7.2.0.v20180221081245, 7.1.0.v20180221064031
      Windows 10 1709
      Windows 10 Mobile Emulator 10.0.14393.0

    • Story Points:
      5
    • Sprint:
      2018 Sprint 04 SDK

      Description

      Description

      This is a regression from 7.0.2.GA

      When adding a UI element that is created using hyperloop to a Ti.UI.View the app will crash with no logs

      var win = Ti.UI.createWindow();
      var Canvas = require('Windows.UI.Xaml.Controls.Canvas');
      var SolidColorBrush = require('Windows.UI.Xaml.Media.SolidColorBrush');
      var Colors = require('Windows.UI.Colors');
      var view = Ti.UI.createView({
      	backgroundColor: 'fuchsia'
      });
      var box = new Canvas();
      box.Background = new SolidColorBrush(Colors.Red);
      box.Width = 50;
      box.Height = 50;
      win.addEventListener('click', function() {
      	view.add(box); 
      });
      win.add(view);
      win.open();
      

      Steps to reproduce

      1. Add the above code to an existing classic project with hyperloop setup
      2. Build for any Windows target
      3. Click the view when the app launches

      Actual

      App crashes

      Expected

      App should not crash

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Ewan Harris
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code