Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11789] Android: Ti.Facebook.authorize() causes app crash when a textfield added to the same parent view is accessed.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-18T08:35:14.000+0000
Affected Version/sRelease 2.1.3, Release 2.1.4
Fix Version/sRelease 3.0.2
ComponentsAndroid
Labelsparity
ReporterAmuktha Akkinepally
Assigneejithinpv
Created2012-11-15T21:31:17.000+0000
Updated2017-03-21T21:40:05.000+0000

Description

When a textField and a button with Ti.Facebook.authorize() event are added to a window or view, the Ti.Facebook.authorize() causes an app crash if the textfield is typed in. It works fine on iOS.

Steps to Reproduce:

1. Load the below app.js 2. Click on the 'open FB' button(it opens fine) 3. Now tap on the textField and then type some letters. 4. Click on 'open FB' button. The app crashes.

app.js

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

	Titanium.Facebook.appid = "387897884561128";
	Titanium.Facebook.permissions = ['publish_stream', 'read_stream'];

	var input = Ti.UI.createTextField({
		autocorrect : true,
		backgroundColor : 'pink',
		color : 'gray',
		top : '10dp',
		width: 100,
		borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED
	});
	win.add(input);

	var btnFb = Ti.UI.createButton({
		title : 'open FB',
		top : '80dp'
	});

	win.add(btnFb);

	btnFb.addEventListener('click', function() {
		Ti.Facebook.authorize();
	});
	
win.open();

Attachments

FileDateSize
crash log.rtf2012-11-15T22:38:12.000+00004941

Comments

  1. jithinpv 2013-03-18

    Issue does not reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 jithinpv
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source