[TIMOB-25014] Windows: Setting button.image to a blob crashes the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-09-06T12:58:56.000+0000 |
Affected Version/s | Release 6.1.0, Release 7.0.0, Release 6.2.0 |
Fix Version/s | Release 6.2.0 |
Components | Windows |
Labels | regression |
Reporter | Ewan Harris |
Assignee | Kota Iguchi |
Created | 2017-07-24T11:11:39.000+0000 |
Updated | 2017-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();
https://github.com/appcelerator/titanium_mobile_windows/pull/1078
6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1093
Verified in 6.2.0.GA and 7.0.0.v20170912234515