Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25014] Windows: Setting button.image to a blob crashes the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-09-06T12:58:56.000+0000
Affected Version/sRelease 6.1.0, Release 7.0.0, Release 6.2.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsregression
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-07-24T11:11:39.000+0000
Updated2017-10-04T14:35:14.000+0000

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

Add the above code to an existing app.js

Build for an existing target

Actual

App crashes

Expected

App should not crash

Comments

  1. Kota Iguchi 2017-08-17

    https://github.com/appcelerator/titanium_mobile_windows/pull/1078
  2. Kota Iguchi 2017-09-05

    6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1093
  3. Ewan Harris 2017-09-14

    Verified in 6.2.0.GA and 7.0.0.v20170912234515

JSON Source