Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4607] Android: Activity Crash Debugger

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2011-08-01T11:14:25.000+0000
Affected Version/sRelease 1.7.0, Release 1.7.1, Release 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterEduardo Gomez
AssigneeMarshall Culpepper
Created2011-07-06T15:19:09.000+0000
Updated2017-03-24T18:05:46.000+0000

Description

Problem

Activity crash the debugger in Ti Studio when attempting to Start Debug Server

Reproduction

Drop the following in an app.js, framework.js, page1.js, page2.js, and tiapp.xml and after Run Debug, the debugger will crash automatically.
var myt={};
Ti.include('page1.js','page2.js','framework.js');
var winConfig = {
		backgroundColor:'#fff',
		navBarHidden:true,
		fullscreen:false
};
var currentPos=0;
var currentPos=0;
var wPage0 = null;
var wPage1=null;

myt.handlePage0=function(){
	if(wPage0!==null){
		wPage0.close();
		Ti.API.info('Page0 closing');
	}
	
	winConfig.backgroundColor='red';
	wPage0=myt.calendarWin(winConfig);
	wPage0.open();
	var activity =Ti.Android.currentActivity; 	
	activity.onCreateOptionsMenu = function(e){ 
		var menu = e.menu;
	
			var mTest1 = menu.add({title:'Test 1' });
		    mTest1.addEventListener("click", function(e) {
		    	myt.handlePage1();
		    });	
	};	
};

myt.handlePage1=function(){
	if(wPage1!==null){
		wPage1.close();
		Ti.API.info('Page1 closing');
	}
	
	winConfig.backgroundColor='yellow';
	wPage1=myt.calendarWin(winConfig);
	wPage1.open();	
	var activity =Ti.Android.currentActivity;
	activity.onCreateOptionsMenu = function(e){ 
		var menu = e.menu;
	
			var mTest1 = menu.add({title:'Test 0' });
		    mTest1.addEventListener("click", function(e) {
		    	myt.handlePage0();
		    });	
	};		
};

myt.handlePage0();
if (typeof(devkit) === 'undefined'){
	devkit = {};	
}
devkit.makeWindow=function(a){
	var win = Ti.UI.createWindow(a);
	win.orientationModes = [
		Ti.UI.PORTRAIT,
		Ti.UI.UPSIDE_PORTRAIT
	];
	return win;	
};
myt.calendarWin=function(winConfig){
	var win = devkit.makeWindow(winConfig);
	return win;
};
myt.settingsWin=function(winConfig){
	var win = devkit.makeWindow(winConfig);	
	return win;
};

Log When Debugger (Crash)

The following is logged when debugging (trace level): {noformat} W/TiFastDev( 222): (Thread-10) [324270,327633] Killing app from Fastdev server request I/NotificationService( 53): enqueueToast pkg=com.test.AD2 callback=android.app.ITransientNotification$Stub$Proxy@43dc6f70 duration=1 I/Process ( 222): Sending signal. PID: 222 SIG: 9 I/WindowManager( 53): WIN DEATH: Window{43d83be8 com.test.AD2/org.appcelerator.titanium.TiActivity paused=false} I/ActivityManager( 53): Process com.test.AD2 (pid 222) has died. I/WindowManager( 53): WIN DEATH: Window{43d35940 com.test.AD2/com.test.AD2.Ad3Activity paused=false} I/ActivityManager( 53): Start proc com.test.AD2 for activity com.test.AD2/.Ad3Activity: pid=246 uid=10030 gids={1015, 3003} I/UsageStats( 53): Unexpected resume of com.test.AD2 while already resumed in com.test.AD2 I/TiApplication( 246): (main) [0,0] checkpoint, app created. D/AndroidRuntime( 244): D/AndroidRuntime( 244): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< D/AndroidRuntime( 244): CheckJNI is ON I/TiApplication( 246): (main) [410,410] Titanium 1.7.1 (2011/06/21 14:28 293a6d) D/AndroidRuntime( 244): --- registering native functions --- D/TiDeployData( 246): (main) [147,557] Read deploy data: {"debuggerPort":53434,"debuggerEnabled":true,"fastdevPort":53212} E/TiPlatformHelper( 246): (main) [77,634] platformId is null, setting to empty string I/TiDbHelper( 246): (main) [76,710] No value in database for platform key: 'unique_machine_id' returning supplied default '' I/TiDbHelper( 246): (main) [40,750] No value in database for platform key: 'hardware_machine_id' returning supplied default '' I/TiRootActivity( 246): (main) [0,0] checkpoint, on root activity create, savedInstanceState: Bundle[mParcelledData.dataSize=204] D/dalvikvm( 246): GC freed 3475 objects / 351640 bytes in 152ms E/TiApplication( 246): (main) [664,664] APP PROXY: [Ti.App] D/TiCommonContactsApi( 246): (main) [35,699] Using newer contacts api. Android SDK level: 7 D/dalvikvm( 246): GC freed 5246 objects / 353856 bytes in 127ms I/ActivityManager( 53): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.test.AD2/.Ad3Activity } D/TiDebugClient( 246): (Thread-10) [708,1407] debugger connected D/AndroidRuntime( 244): Shutting down VM D/dalvikvm( 244): DestroyJavaVM waiting for non-daemon threads to exit D/dalvikvm( 244): DestroyJavaVM shutting VM down D/dalvikvm( 244): HeapWorker thread shutting down D/dalvikvm( 244): HeapWorker thread has shut down D/jdwp ( 244): JDWP shutting down net... I/jdwp ( 244): adbd disconnected D/dalvikvm( 244): VM cleaning up D/TiDebugSession( 246): (Thread-10) [37,1444] debug session started with /10.0.2.2 I/global ( 246): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required. E/AndroidRuntime( 244): ERROR: thread attach failed D/TiDebugSession( 246): (Thread-11) [11,1455] session started D/TiDebugSession( 246): (Thread-11) [22,1477] rcvd request: 21*1309991342631*version D/TiDebugSession( 246): (Thread-11) [7,1484] write packet: 21*1309991342631*2*0.0.1 D/dalvikvm( 244): LinearAlloc 0x0 used 636388 of 5242880 (12%) D/TiDebugSession( 246): (Thread-11) [35,1519] rcvd request: 36*1309991342632*option*monitorXHR*true D/TiDebugClient( 246): (Thread-11) [3,1522] setting server property: monitorXHR = true D/TiDebugSession( 246): (Thread-11) [10,1532] write packet: 13*1309991342632 D/TiDebugSession( 246): (Thread-11) [15,1547] rcvd request: 45*1309991342633*option*suspendOnFirstLine*false D/TiDebugClient( 246): (Thread-11) [9,1556] setting server property: suspendOnFirstLine = false D/TiDebugSession( 246): (Thread-11) [2,1558] write packet: 13*1309991342633 D/TiDebugSession( 246): (Thread-11) [21,1579] rcvd request: 46*1309991342634*option*suspendOnExceptions*false D/TiDebugClient( 246): (Thread-11) [3,1582] setting server property: suspendOnExceptions = false D/TiDebugSession( 246): (Thread-11) [2,1584] write packet: 13*1309991342634 D/TiDebugSession( 246): (Thread-11) [12,1596] rcvd request: 41*1309991342635*option*suspendOnErrors*true D/TiDebugClient( 246): (Thread-11) [4,1600] setting server property: suspendOnErrors = true D/TiDebugSession( 246): (Thread-11) [1,1601] write packet: 13*1309991342635 D/TiDebugSession( 246): (Thread-11) [11,1612] rcvd request: 43*1309991342636*option*suspendOnKeywords*true D/TiDebugClient( 246): (Thread-11) [3,1615] setting server property: suspendOnKeywords = true D/TiDebugSession( 246): (Thread-11) [1,1616] write packet: 13*1309991342636 D/TiDebugSession( 246): (Thread-11) [11,1627] rcvd request: 45*1309991342637*option*bypassConstructors*false D/TiDebugClient( 246): (Thread-11) [3,1630] setting server property: bypassConstructors = false D/TiDebugSession( 246): (Thread-11) [2,1632] write packet: 13*1309991342637 D/TiDebugSession( 246): (Thread-11) [16,1648] rcvd request: 45*1309991342638*option*stepFiltersEnabled*false D/TiDebugClient( 246): (Thread-11) [4,1652] setting server property: stepFiltersEnabled = false D/TiDebugSession( 246): (Thread-11) [1,1653] write packet: 13*1309991342638 D/TiDebugSession( 246): (Thread-11) [13,1666] rcvd request: 30*1309991342639*detailFormatters D/TiDebugSession( 246): (Thread-11) [2,1668] write packet: 13*1309991342639 D/TiDebugSession( 246): (Thread-11) [12,1680] rcvd request: 53*1309991342640*breakpoint*create*app:/app.js*22*1*0**1 D/TiFastDev( 246): (Thread-11) [8,1688] Enabling Fastdev on port 53212 D/TiFastDev( 246): (Thread-11) [10,1698] sent tokens successfully D/TiFastDev( 246): (Thread-11) [2,1700] Fastdev session handshake succesful. D/TiFastDev( 246): (Thread-11) [9,1709] sent tokens successfully D/TiDebugSession( 246): (Thread-11) [134,1843] write packet: 21*1309991342640*created D/TiDebugSession( 246): (Thread-11) [14,1857] rcvd request: 20*1309991342641*enable W/NotificationService( 53): Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@43dc6f70 in package com.test.AD2 W/ActivityManager( 53): setProcessForeground called on unknown pid: 222 D/TiDebugSession( 246): (Thread-11) [19,1876] write packet: 13*1309991342641 I/global ( 246): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. D/qemud ( 35): fdhandler_accept_event: accepting on fd 10 D/qemud ( 35): created client 0x16068 listening on fd 15 D/qemud ( 35): client_fd_receive: attempting registration for service 'sensors' D/qemud ( 35): client_fd_receive: -> received channel id 9 D/qemud ( 35): client_registration: registration succeeded for client 9 D/qemud ( 35): fdhandler_event: disconnect on fd 15 D/SensorManager( 246): found sensor: Goldfish 3-axis Accelerometer, handle=0 D/TiDebugClient( 246): (kroll$1: app://app.js) [119,1995] debugger evalFile: file:///android_asset/Resources/app.js D/TiDebugSession( 246): (kroll$1: app://app.js) [2,1997] write packet: 40*threads*created*9*kroll$1: [app:/app.js] D/TiDebugSession( 246): (kroll$1: app://app.js) [10,2007] write packet: 46*scripts*created*9|app:/app.js|app:/app.js|1|53 D/dalvikvm( 246): GC freed 6515 objects / 437464 bytes in 99ms D/TiDebugClient( 246): (kroll$1: app://app.js) [179,2186] debugger evalFile: file:///android_asset/Resources/page1.js D/TiFastDev( 246): (kroll$1: app://app.js) [9,2195] sent tokens successfully D/TiDebugSession( 246): (kroll$1: app://app.js) [13,2208] write packet: 49*scripts*created*9|app:/page1.js|app:/page1.js|1|4 D/TiDebugClient( 246): (kroll$1: app://app.js) [9,2217] debugger evalFile: file:///android_asset/Resources/page2.js D/TiFastDev( 246): (kroll$1: app://app.js) [8,2225] sent tokens successfully D/TiDebugSession( 246): (kroll$1: app://app.js) [9,2234] write packet: 49*scripts*created*9|app:/page2.js|app:/page2.js|1|4 D/TiDebugClient( 246): (kroll$1: app://app.js) [11,2245] debugger evalFile: file:///android_asset/Resources/framework.js D/TiFastDev( 246): (kroll$1: app://app.js) [8,2253] sent tokens successfully D/TiDebugSession( 246): (kroll$1: app://app.js) [21,2274] write packet: 58*scripts*created*9|app:/framework.js|app:/framework.js|1|11 D/TiDebugSession( 246): (kroll$2: file:///android_asset/Resources/app.js) [85,2359] write packet: 41*threads*created*13*kroll$2: [app:/app.js] I/global ( 246): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. I/ActivityManager( 53): Starting activity: Intent { cmp=com.test.AD2/org.appcelerator.titanium.TiActivity (has extras) } D/TiDebugSession( 246): (kroll$1: app://app.js) [65,2424] write packet: 37*suspended*9*breakpoint*app:/app.js*22 D/TiDebugSession( 246): (Thread-11) [15,2439] rcvd request: 22*1309991342642*frames*9 D/FramesHandler( 246): Frame 0 scope: org.mozilla.javascript.NativeCall@43d6de38 D/FramesHandler( 246): Frame 1 scope: [object Object] D/TiDebugSession( 246): (Thread-11) [10,2449] write packet: 119*1309991342642*0||activity|app:/app.js|22|false|1309991343618|333894860*1|||app:/app.js|53|false|1309991343621|333894860 W/ActivityManager( 53): Activity pause timeout for HistoryRecord{43d7d1a0 com.test.AD2/.Ad3Activity} D/TiDebugSession( 246): (Thread-11) [487,2936] rcvd request: 34*1309991342643*variables*9*frame[0] D/VariablesHandler( 246): expr: frame[0], scope: org.mozilla.javascript.NativeCall@43d6de38, value: org.mozilla.javascript.NativeCall@43d6de38, name: null D/VariablesHandler( 246): o1: winConfig, o1Class: class java.lang.String, o2: devkit, o2Class: class java.lang.String D/VariablesHandler( 246): o1: arguments, o1Class: class java.lang.String, o2: winConfig, o2Class: class java.lang.String D/VariablesHandler( 246): o1: arguments, o1Class: class java.lang.String, o2: winConfig, o2Class: class java.lang.String D/VariablesHandler( 246): o1: arguments, o1Class: class java.lang.String, o2: devkit, o2Class: class java.lang.String D/VariablesHandler( 246): o1: myt, o1Class: class java.lang.String, o2: devkit, o2Class: class java.lang.String D/VariablesHandler( 246): o1: myt, o1Class: class java.lang.String, o2: winConfig, o2Class: class java.lang.String D/VariablesHandler( 246): o1: wPage0, o1Class: class java.lang.String, o2: myt, o2Class: class java.lang.String D/VariablesHandler( 246): o1: wPage0, o1Class: class java.lang.String, o2: winConfig, o2Class: class java.lang.String D/VariablesHandler( 246): o1: wPage1, o1Class: class java.lang.String, o2: myt, o2Class: class java.lang.String D/VariablesHandler( 246): o1: wPage1, o1Class: class java.lang.String, o2: winConfig, o2Class: class java.lang.String D/VariablesHandler( 246): o1: wPage1, o1Class: class java.lang.String, o2: wPage0, o2Class: class java.lang.String D/VariablesHandler( 246): o1: activity, o1Class: class java.lang.String, o2: wPage0, o2Class: class java.lang.String D/VariablesHandler( 246): o1: activity, o1Class: class java.lang.String, o2: devkit, o2Class: class java.lang.String D/VariablesHandler( 246): o1: activity, o1Class: class java.lang.String, o2: arguments, o2Class: class java.lang.String D/VariablesHandler( 246): o1: currentPos, o1Class: class java.lang.String, o2: myt, o2Class: class java.lang.String D/VariablesHandler( 246): o1: currentPos, o1Class: class java.lang.String, o2: arguments, o2Class: class java.lang.String D/VariablesHandler( 246): o1: currentPos, o1Class: class java.lang.String, o2: devkit, o2Class: class java.lang.String D/TiDebugSession( 246): (Thread-11) [43,2979] write packet: 292*1309991342643*activity|Object|vwlpn|undefined*arguments|Arguments|volpn|[object Arguments]*currentPos|Number|vwpn|0.0*devkit|Object|von|[object Object]*myt|Object|vopn|[object Object]*wPage0|Ti.UI.Window|vopn|[object Ti.UI.Window]*wPage1|Object|vwpn|null*winConfig|Object|vopn|[object Object] W/ActivityManager( 53): Activity idle timeout for HistoryRecord{43d7d1a0 com.test.AD2/.Ad3Activity} W/ActivityManager( 53): Launch timeout has expired, giving up wake lock! W/ActivityManager( 53): Activity idle timeout for HistoryRecord{43dd69e8 com.test.AD2/org.appcelerator.titanium.TiActivity} W/ActivityManager( 53): Timeout executing service: ServiceRecord{43dd4998 com.test.AD2/org.appcelerator.titanium.analytics.TiAnalyticsService} I/ActivityManager( 53): ANR in process: com.test.AD2 I/ActivityManager( 53): Annotation: Executing service ComponentInfo{com.test.AD2/org.appcelerator.titanium.analytics.TiAnalyticsService} I/ActivityManager( 53): CPU usage: I/ActivityManager( 53): Load: 0.16 / 0.25 / 0.16 I/ActivityManager( 53): CPU usage from 21945ms to 23ms ago: I/ActivityManager( 53): system_server: 1% = 1% user + 0% kernel / faults: 410 minor I/ActivityManager( 53): m.android.phone: 0% = 0% user + 0% kernel / faults: 6 minor I/ActivityManager( 53): logcat: 0% = 0% user + 0% kernel I/ActivityManager( 53): adbd: 0% = 0% user + 0% kernel / faults: 1 minor I/ActivityManager( 53): zygote: 0% = 0% user + 0% kernel / faults: 11 minor I/ActivityManager( 53): +com.test.AD2: 0% = 0% user + 0% kernel I/ActivityManager( 53): +sh: 0% = 0% user + 0% kernel I/ActivityManager( 53): +app_process: 0% = 0% user + 0% kernel I/ActivityManager( 53): TOTAL: 19% = 12% user + 5% kernel + 0% iowait + 0% irq + 0% softirq I/ActivityManager( 53): Removing old ANR trace file from /data/anr/traces.txt I/Process ( 53): Sending signal. PID: 246 SIG: 3 I/dalvikvm( 246): threadid=7: reacting to signal 3 I/dalvikvm( 246): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 53 SIG: 3 I/dalvikvm( 53): threadid=7: reacting to signal 3 I/dalvikvm( 53): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 127 SIG: 3 I/dalvikvm( 127): threadid=7: reacting to signal 3 I/dalvikvm( 127): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 141 SIG: 3 I/dalvikvm( 141): threadid=7: reacting to signal 3 I/dalvikvm( 141): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 197 SIG: 3 I/dalvikvm( 197): threadid=7: reacting to signal 3 I/dalvikvm( 197): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 187 SIG: 3 I/dalvikvm( 187): threadid=7: reacting to signal 3 I/dalvikvm( 187): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 168 SIG: 3 I/dalvikvm( 168): threadid=7: reacting to signal 3 I/dalvikvm( 168): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 92 SIG: 3 I/dalvikvm( 92): threadid=7: reacting to signal 3 I/dalvikvm( 92): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 111 SIG: 3 I/dalvikvm( 111): threadid=7: reacting to signal 3 I/dalvikvm( 111): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 97 SIG: 3 I/dalvikvm( 97): threadid=7: reacting to signal 3 I/dalvikvm( 97): Wrote stack trace to '/data/anr/traces.txt' I/Process ( 53): Sending signal. PID: 91 SIG: 3 I/dalvikvm( 91): threadid=7: reacting to signal 3 I/dalvikvm( 91): Wrote stack trace to '/data/anr/traces.txt' D/KeyguardViewMediator( 53): pokeWakelock(5000) D/KeyguardViewMediator( 53): pokeWakelock(5000) I/ARMAssembler( 53): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x4b54b0:0x4b556c] in 4100001 ns W/WindowManager( 53): No window to dispatch pointer action 1 I/ARMAssembler( 53): generated scanline__00000177:03515104_00001A01_00000000 [ 73 ipp] (98 ins) at [0x476c48:0x476dd0] in 1638000 ns {noformat}

Log When Running (Normal Run, No Crash)

The following is logged when you simply run the app in the emulator, without the debugger (trace level). {noformat} D/AndroidRuntime( 276): D/AndroidRuntime( 276): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< D/AndroidRuntime( 276): CheckJNI is ON D/AndroidRuntime( 276): --- registering native functions --- I/ActivityManager( 53): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.test.AD2/.Ad3Activity } D/AndroidRuntime( 276): Shutting down VM D/dalvikvm( 276): DestroyJavaVM waiting for non-daemon threads to exit D/dalvikvm( 276): DestroyJavaVM shutting VM down D/dalvikvm( 276): HeapWorker thread shutting down D/dalvikvm( 276): HeapWorker thread has shut down D/jdwp ( 276): JDWP shutting down net... I/jdwp ( 276): adbd disconnected D/dalvikvm( 276): VM cleaning up E/AndroidRuntime( 276): ERROR: thread attach failed I/ActivityManager( 53): Start proc com.test.AD2 for activity com.test.AD2/.Ad3Activity: pid=283 uid=10030 gids={1015, 3003} D/dalvikvm( 276): LinearAlloc 0x0 used 636388 of 5242880 (12%) I/ARMAssembler( 53): generated scanline__00000177:03515104_00000001_00000000 [ 73 ipp] (95 ins) at [0x4aff50:0x4b00cc] in 611000 ns I/TiApplication( 283): (main) [0,0] checkpoint, app created. I/TiApplication( 283): (main) [205,205] Titanium 1.7.1 (2011/06/21 14:28 293a6d) D/TiDeployData( 283): (main) [72,277] Read deploy data: {"debuggerPort":-1,"debuggerEnabled":false,"fastdevPort":53212} E/TiPlatformHelper( 283): (main) [56,333] platformId is null, setting to empty string I/TiDbHelper( 283): (main) [34,367] No value in database for platform key: 'unique_machine_id' returning supplied default '' I/TiDbHelper( 283): (main) [17,384] No value in database for platform key: 'hardware_machine_id' returning supplied default '' I/TiRootActivity( 283): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null D/dalvikvm( 283): GC freed 3508 objects / 352800 bytes in 83ms E/TiApplication( 283): (main) [366,366] APP PROXY: [Ti.App] D/TiCommonContactsApi( 283): (main) [22,388] Using newer contacts api. Android SDK level: 7 D/dalvikvm( 283): GC freed 5228 objects / 351776 bytes in 64ms I/global ( 283): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. D/qemud ( 35): fdhandler_accept_event: accepting on fd 10 D/qemud ( 35): created client 0x17018 listening on fd 15 D/qemud ( 35): client_fd_receive: attempting registration for service 'sensors' D/qemud ( 35): client_fd_receive: -> received channel id 10 D/qemud ( 35): client_registration: registration succeeded for client 10 D/qemud ( 35): fdhandler_event: disconnect on fd 15 D/SensorManager( 283): found sensor: Goldfish 3-axis Accelerometer, handle=0 D/TiFastDev( 283): (kroll$1: app://app.js) [543,931] Enabling Fastdev on port 53212 D/TiFastDev( 283): (kroll$1: app://app.js) [13,944] sent tokens successfully D/TiFastDev( 283): (kroll$1: app://app.js) [2,946] Fastdev session handshake succesful. D/TiFastDev( 283): (kroll$1: app://app.js) [6,952] sent tokens successfully D/dalvikvm( 283): GC freed 6848 objects / 473440 bytes in 72ms D/KrollContext( 283): (kroll$1: app://app.js) [77,1029] Running evaluated script: file:///android_asset/Resources/app.js D/TiFastDev( 283): (kroll$1: app://app.js) [62,1091] sent tokens successfully D/KrollContext( 283): (kroll$1: app://app.js) [3,1094] Running evaluated script: file:///android_asset/Resources/page1.js D/TiFastDev( 283): (kroll$1: app://app.js) [12,1106] sent tokens successfully D/KrollContext( 283): (kroll$1: app://app.js) [2,1108] Running evaluated script: file:///android_asset/Resources/page2.js D/TiFastDev( 283): (kroll$1: app://app.js) [16,1124] sent tokens successfully D/KrollContext( 283): (kroll$1: app://app.js) [2,1126] Running evaluated script: file:///android_asset/Resources/framework.js I/global ( 283): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. D/dalvikvm( 283): GC freed 3689 objects / 285568 bytes in 72ms I/ActivityManager( 53): Starting activity: Intent { cmp=com.test.AD2/org.appcelerator.titanium.TiActivity (has extras) } I/TiRootActivity( 283): (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@43d733b8 I/TiAnalyticsSvc( 283): (main) [32,32] Send already in progress, skipping intent W/TiAnalyticsSvc( 283): (Thread-12) [2,34] Analytics Service Started W/TiAnalyticsSvc( 283): (Thread-13) [143,177] Analytics Service Started I/ActivityManager( 53): Displayed activity com.test.AD2/org.appcelerator.titanium.TiActivity: 277 ms (total 3164 ms) I/TiAnalyticsSvc( 283): (Thread-12) [537,714] Sending 2 analytics events. I/TiAnalyticsSvc( 283): (Thread-13) [19,733] Sending 2 analytics events. D/dalvikvm( 283): GC freed 7827 objects / 598736 bytes in 71ms D/dalvikvm( 283): GC freed 7162 objects / 407272 bytes in 87ms D/dalvikvm( 283): GC freed 495 objects / 25208 bytes in 75ms I/dalvikvm-heap( 283): Grow heap (frag case) to 4.636MB for 87396-byte allocation D/dalvikvm( 283): GC freed 0 objects / 0 bytes in 67ms D/dalvikvm( 283): GC freed 2183 objects / 111400 bytes in 78ms W/TiAnalyticsSvc( 283): (Thread-13) [2094,2827] Stopping Analytics Service W/TiAnalyticsSvc( 283): (Thread-12) [100,2927] Stopping Analytics Service W/TiAnalyticsSvc( 283): (Thread-12) [4,2931] Expected to be in a sending state. Sending was already false. {noformat}

Associated Helpdesk Ticket

http://appc.me/c/APP-916814

Attachments

FileDateSize
DebuggerCrash.png2011-07-06T15:46:37.000+0000341561

Comments

  1. Don Thorp 2011-07-06

    Did your fix today address this possibly?
  2. Marshall Culpepper 2011-08-01

    In your screenshot you are stopped on a breakpoint. The reason for the app dialog is not a crash, but a debugger breakpoint. Did you set a breakpoint manually on line 22? This is not a crash.
  3. Ben Bahrenburg 2011-08-01

    Hi, this happens when in the test project without a breakpoint being set. The crash happens after the menu button is pressed, so it would be in this page of the code activity.onCreateOptionsMenu = function(e){ var menu = e.menu; var mTest1 = menu.add({title:'Test 0' }); mTest1.addEventListener("click", function(e) { myt.handlePage0(); }); }; Here is a video showing it in action http://www.youtube.com/watch?v=S3GNsrYKiYI
  4. Ben Bahrenburg 2011-08-01

    I also believe this is linked to this issue http://support.appcelerator.com/tickets/APP-966128/tickets In this issue, the debugger crashes when opening child windows in a similar manor.
  5. Lee Morris 2017-03-24

    Closing ticket as invalid with reference to the above comments.

JSON Source