Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8201] Android Titanium.Utils - v8 :Runtime error on running the Application.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-03-22T20:26:54.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and031912
ReporterAnshu Mittal
AssigneeMarshall Culpepper
Created2012-03-22T14:16:54.000+0000
Updated2017-03-10T19:15:16.000+0000

Description

Application throws runtime error on being run. Steps to reproduce: 1. Run app. Acceptance.js
(function() {
	tpl.at = {};

	/**
	 * Add the titles of the test cases to the list to get them loaded to the table view
	 */
	tpl.at.createData = function() {
		var acceptanceData = [
		{title:'TIMOB_3630', hasChild:true, level:"acceptance"},
		{title:'TIMOB_3190', hasChild:true, level:"acceptance"}
		]

		return acceptanceData;
	};
	/**
	 * TIMOB_3630 is designed to test the correct functionality of Util
	 * when creating MD5 hash from blob on iOS.
	 */
	
	tpl.at.TIMOB_3630 = function(_window) {

		var win = Ti.UI.createWindow({
			backgroundColor : 'green'
		});

		Ti.Utils.md5HexDigest(win.toImage());

		return _window;
	}

	/**
	 * TIMOB_3190 is designed to test the correct functionality of Util
	 * when base64 encoding images on iOS.
	 */
	tpl.at.TIMOB_3190 = function(_window) {

		var f = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'KS_nav_ui.png');
		var blob = f.read();
		var encoded = Ti.Utils.base64encode(blob);

		alert(encoded);

		return _window;
	}
})();
App.js

var tpl = {}; 
Ti.include('ui.js', 'smoke.js', 'acceptance.js', 'full.js');
var tabs = tpl.ui.createApplicationTabGroup();
tabs.open();
Expected results: A white screen should be displayed and the app should not crash. Actual: Application throws runtime error(Please find the screenshots attached for v8(device-2012-03-22-164623.png) and rhino(3630_rhino.png)).

Attachments

FileDateSize
3630_rhino.png2012-03-22T16:14:06.000+000038809
device-2012-03-22-164623.png2012-03-22T16:14:06.000+000037198

Comments

  1. Lee Morris 2017-03-10

    Closing ticket as duplicate.

JSON Source