Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7081] Android: toBlob on imageView causes runtime error with an invalid resource

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-02-09T23:50:36.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsmodule_runtime, parity, qe-testadded
ReporterAllen Yeung
AssigneeAllen Yeung
Created2012-01-10T15:36:49.000+0000
Updated2012-03-03T23:22:50.000+0000

Description

Run the following code:
var path = "images/send.png";
var image1 = Ti.UI.createImageView({
	image:"images/schat.png"
});
var blob = image1.toBlob();
var win = Ti.UI.createWindow({backgroundColor:'white'});

win.add(image1);
win.open();
NOTE: make sure the resource 'images/schat.png' does not exist Expected: No runtime error. It should be a white screen without an image Actual: JS runtime error occurs

Comments

  1. Wilson Luu 2012-01-13

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120113141633 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201122152 Device: Droid 3 (2.3.4)
  2. Neeraj Gupta 2012-01-23

    Reopening and closing this issue to update label and Fix Version field.
  3. Wilson Luu 2012-02-01

    updated labels

JSON Source