{ "id": "62792", "key": "TIMOB-2160", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11227", "name": "Release 1.5.0 M02", "archived": true, "released": true, "releaseDate": "2010-11-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:16.000+0000", "created": "2011-04-15T03:12:21.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "defect", "image", "regression", "scaling" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

1.BaseUI>Views>Image Scaling
\nresults: errrors followed by image loading.

\n

E/KrollCallback(14575): (kroll$17) [86,1006870] ECMA Error\nevaluating source, invocation: [callMethod Titanium.(anonymous)\norg.appcelerator.titanium.kroll.KrollCallback@44fe6f48], message:\nTypeError: Cannot read property \"width\" from null\n(app://examples/image_view_scaling.js#33)
\nE/KrollCallback(14575): org.mozilla.javascript.EcmaError:\nTypeError: Cannot read property \"width\" from null\n(app://examples/image_view_scaling.js#33)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3799)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1487)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1408)
\nE/KrollCallback(14575): at\nscript(app://examples/image_view_scaling.js:33)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollCallback(14575): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
\nE/KrollCallback(14575): at\norg.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:97)
\nE/KrollCallback(14575): at\nandroid.os.Handler.handleCallback(Handler.java:587)
\nE/KrollCallback(14575): at\nandroid.os.Handler.dispatchMessage(Handler.java:92)
\nE/KrollCallback(14575): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollCallback(14575): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)

{html}", "attachment": [], "flagged": false, "summary": "Android: Image scaling tests run time errors", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127690", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.5.0.70ce98 g2 running 2.2, G1 running 1.6, sim 2.2.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:21.000+0000", "updated": "2011-04-15T03:12:21.000+0000" }, { "id": "127691", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

persists in todays pull - 1.5.0.91838a, don't think its user\nerror? droid 1 (2.2)

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:22.000+0000", "updated": "2011-04-15T03:12:22.000+0000" }, { "id": "127692", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Weird, the error doesn't happen on an emulator for me, nor on my\nHTC Desire 2.2 device. But then on a whim I turned off the network\non my device and indeed the error occurs.

\n

This is a remote image that's being scaled. The KS test is\nchecking imageView.toBlob().width without checking if\ntoBlob() returns null, so in that case the runtime\nerror isn't surprising. I'm going to change the test slightly to\naccount for this gracefully and put up the message that image\nwasn't retrieved.

\n

Meanwhile, Thomas, are you getting the error also when you're\nnetwork connection is active? Put another way: are you able to run\nthe remote image test successfully but then not the image\nscaling test in the same session? (That would be odd.)

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:23.000+0000", "updated": "2011-04-15T03:12:23.000+0000" }, { "id": "127693", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [c0aff27b322129e48f2092c569efff33a9b0a4a3])\n[#2160] Check for blob being null before trying\nto read its dimensions. \nhttps://github.com/appcelerator/titanium_mobile/commit/c0aff27b3221...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:23.000+0000", "updated": "2011-04-15T03:12:23.000+0000" }, { "id": "127694", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Titanium SDK version: 1.5.0 (12/04/10 08:46 b7b9e78) G2 (2.2)\nsim 2.1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:23.000+0000", "updated": "2011-04-15T03:12:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }