Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23717] Windows: Ti.UI.ImageView.toImage() is executed before an image is loaded

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-04T07:18:38.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 5.4.0
ComponentsWindows
Labelsqe-5.4.0
ReporterZakhar Zhuravlev
AssigneeGary Mathews
Created2016-08-03T13:16:22.000+0000
Updated2016-08-05T23:32:46.000+0000

Description

5_4_X 5.4.0.v20160802165655 *CODE*
var win = Ti.UI.createWindow({backgroundColor: 'purple'}),
    img = Ti.UI.createImageView({image: 'Logo.png'});

img.toImage(function (blob) {
    Ti.API.info('success');
});

win.add(img);
win.open();
*RESULT* [ERROR] : Application Error: "Windows.Graphics.Imaging: One or more pointer arguments are null." [ERROR] : Error: unknown exception

Comments

  1. Gary Mathews 2016-08-03

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/801
  2. Gary Mathews 2016-08-04

    5_4_X: https://github.com/appcelerator/titanium_mobile_windows/pull/803
  3. Harry Bryant 2016-08-05

    Verified as fixed, now receive "success" returned in the logs, instead of the error message. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201607250649 Ti SDK: 5.4.0.v20160804185318 Appc NPM: 4.2.7 Appc Core: 5.4.0-38 Node: v4.4.4 *Closing Ticket.*

JSON Source