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

Windows: Setting button.image to a blob crashes the app

    Details

      Description

      Description

      When setting the image property of a button to a blob the app will crash

       var win = Ti.UI.createWindow({
      	 backgroundColor: 'blue'
       });
       var img = Ti.Filesystem.getFile('Logo.png').read();
       console.log(Ti.Filesystem.getFile('Logo.png').exists())
       var view = Ti.UI.createButton({ title: 'push button', image: img });
       win.add(view);
       win.open();
      

      Steps to reproduce
      1. Add the above code to an existing app.js
      2. Build for an existing target
      Actual

      App crashes

      Expected

      App should not crash

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Gary Mathews
              Tester:
              Ewan Harris
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code