Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24985] Windows: Setting image on an ImageView crashes the app

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-08-24T11:03:15.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsregression
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-07-20T10:31:20.000+0000
Updated2017-08-24T11:03:19.000+0000

Description

Description

*This is a regression from 6_1_X* Setting an image on an imageview crashes the app, there are no error logs generated. It occurs when using a blob, file or string, and setting on creation, directly setting the property calling the setter
var window = Ti.UI.createWindow({ backgroundColor: 'black' });
var fromFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'Logo.png');
var imageView = Ti.UI.createImageView({
    image: fromFile
});
window.add(imageView);
window.open()

Steps to reproduce

Add the above to an existing app.js

Build for Windows

Actual

App will crash on start

Expected

App should not crash, the default Titanium app logo should show

Comments

  1. Kota Iguchi 2017-07-20

    This issue is addressed by https://github.com/appcelerator/titanium_mobile_windows/pull/1036
  2. Ewan Harris 2017-08-24

    Verified in 6.2.0.v20170823163641

JSON Source