{ "id": "77909", "key": "TIMOB-4706", "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": "11365", "description": "Mobile 1.8.0 M12", "name": "Sprint 2011-33", "archived": true, "released": true, "releaseDate": "2011-08-22" }, { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-06T16:00:27.000+0000", "created": "2011-07-18T11:02:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_debugger", "qe-testadded", "verified-1.7.3", "verified-1.8.0.1" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-06-19T12:46:15.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": "h2.Problem\r\nCannot debug an application in the Android emulator while using a require('some_js_module') in the application\r\n\r\nh3.Steps to reproduce\r\nStep 1: Run the code below.\r\n\r\nStep 2: Run Indie bug mode and watch it crash.\r\n\r\nh3.Console log when debugging (Crash)\r\n\r\nThe following is logged when debugging (trace level):\r\n\r\n{noformat}\r\nD/Zygote ( 33): Process 503 terminated by signal (15)\r\nI/ActivityManager( 97): Process com.appcelerator.pushtest (pid 503) has died.\r\nI/WindowManager( 97): WIN DEATH: Window{43ebe460 com.appcelerator.pushtest/com.appcelerator.pushtest.Test1Activity paused=false}\r\nI/UsageStats( 97): Unexpected resume of com.android.launcher while already resumed in com.appcelerator.pushtest\r\nW/InputManagerService( 97): Got RemoteException sending setActive(false) notification to pid 503 uid 10040\r\nD/AndroidRuntime( 532): \r\nD/AndroidRuntime( 532): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<\r\nD/AndroidRuntime( 532): CheckJNI is ON\r\nD/AndroidRuntime( 532): --- registering native functions ---\r\nI/ActivityManager( 97): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.appcelerator.pushtest/.Test1Activity }\r\nD/AndroidRuntime( 532): Shutting down VM\r\nD/jdwp ( 532): adbd disconnected\r\nI/AndroidRuntime( 532): NOTE: attach of thread 'Binder Thread #3' failed\r\nI/ActivityManager( 97): Start proc com.appcelerator.pushtest for activity com.appcelerator.pushtest/.Test1Activity: pid=538 uid=10040 gids={1015, 3003}\r\nD/dalvikvm( 33): GC_EXPLICIT freed 285 objects / 10816 bytes in 348ms\r\nD/dalvikvm( 33): GC_EXPLICIT freed 47 objects / 2080 bytes in 106ms\r\nD/dalvikvm( 33): GC_EXPLICIT freed 2 objects / 64 bytes in 83ms\r\nI/TiApplication( 538): (main) [0,0] checkpoint, app created.\r\nI/TiApplication( 538): (main) [217,217] Titanium 1.7.0 (2011/06/06 18:05 4155ee)\r\nD/TiDeployData( 538): (main) [70,287] Read deploy data: {\"debuggerPort\":63442,\"debuggerEnabled\":true,\"fastdevPort\":63444}\r\nE/TiPlatformHelper( 538): (main) [112,399] renaming ID\r\nD/dalvikvm( 538): GC_FOR_MALLOC freed 3593 objects / 341760 bytes in 83ms\r\nI/TiRootActivity( 538): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\nE/TiApplication( 538): (main) [288,288] APP PROXY: [Ti.App]\r\nD/TiCommonContactsApi( 538): (main) [24,312] Using newer contacts api. Android SDK level: 8\r\nD/dalvikvm( 538): GC_FOR_MALLOC freed 5768 objects / 398176 bytes in 67ms\r\nD/TiDebugClient( 538): (Thread-10) [236,548] debugger connected\r\nD/TiDebugSession( 538): (Thread-10) [4,552] debug session started with /10.0.2.2\r\nI/global ( 538): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.\r\nD/TiDebugSession( 538): (Thread-11) [9,561] session started\r\nD/TiDebugSession( 538): (Thread-11) [200,761] rcvd request: 21*1311010379851*version\r\nD/TiDebugSession( 538): (Thread-11) [5,766] write packet: 21*1311010379851*2*0.0.1\r\nD/TiDebugSession( 538): (Thread-11) [11,777] rcvd request: 20*1311010379852*update\r\nD/TiDebugSession( 538): (Thread-11) [2,779] write packet: 19*1311010379852*0.0.1\r\nD/TiDebugSession( 538): (Thread-11) [8,787] rcvd request: 45*1311010379853*option*stepFiltersEnabled*false\r\nD/TiDebugClient( 538): (Thread-11) [3,790] setting server property: stepFiltersEnabled = false\r\nD/TiDebugSession( 538): (Thread-11) [3,793] write packet: 13*1311010379853\r\nD/TiDebugSession( 538): (Thread-11) [5,798] rcvd request: 36*1311010379854*option*monitorXHR*true\r\nD/TiDebugClient( 538): (Thread-11) [3,801] setting server property: monitorXHR = true\r\nD/TiDebugSession( 538): (Thread-11) [2,803] write packet: 13*1311010379854\r\nD/TiDebugSession( 538): (Thread-11) [12,815] rcvd request: 45*1311010379855*option*suspendOnFirstLine*false\r\nD/TiDebugClient( 538): (Thread-11) [3,818] setting server property: suspendOnFirstLine = false\r\nD/TiDebugSession( 538): (Thread-11) [1,819] write packet: 13*1311010379855\r\nD/TiDebugSession( 538): (Thread-11) [6,825] rcvd request: 46*1311010379856*option*suspendOnExceptions*false\r\nD/TiDebugClient( 538): (Thread-11) [3,828] setting server property: suspendOnExceptions = false\r\nD/TiDebugSession( 538): (Thread-11) [2,830] write packet: 13*1311010379856\r\nD/TiDebugSession( 538): (Thread-11) [5,835] rcvd request: 41*1311010379857*option*suspendOnErrors*true\r\nD/TiDebugClient( 538): (Thread-11) [3,838] setting server property: suspendOnErrors = true\r\nD/TiDebugSession( 538): (Thread-11) [2,840] write packet: 13*1311010379857\r\nD/TiDebugSession( 538): (Thread-11) [5,845] rcvd request: 43*1311010379858*option*suspendOnKeywords*true\r\nD/TiDebugClient( 538): (Thread-11) [6,851] setting server property: suspendOnKeywords = true\r\nD/TiDebugSession( 538): (Thread-11) [5,856] write packet: 13*1311010379858\r\nD/TiDebugSession( 538): (Thread-11) [5,861] rcvd request: 45*1311010379859*option*bypassConstructors*false\r\nD/TiDebugClient( 538): (Thread-11) [7,868] setting server property: bypassConstructors = false\r\nD/TiDebugSession( 538): (Thread-11) [1,869] write packet: 13*1311010379859\r\nD/TiDebugSession( 538): (Thread-11) [5,874] rcvd request: 45*1311010379860*option*stepFiltersEnabled*false\r\nD/TiDebugClient( 538): (Thread-11) [3,877] setting server property: stepFiltersEnabled = false\r\nD/TiDebugSession( 538): (Thread-11) [1,878] write packet: 13*1311010379860\r\nD/TiDebugSession( 538): (Thread-11) [4,882] rcvd request: 30*1311010379861*detailFormatters\r\nD/TiDebugSession( 538): (Thread-11) [3,885] write packet: 13*1311010379861\r\nD/TiDebugSession( 538): (Thread-11) [8,893] rcvd request: 53*1311010379862*breakpoint*create*app:/app.js*13*1*0**1\r\nD/TiFastDev( 538): (Thread-11) [6,899] Enabling Fastdev on port 63444\r\nD/TiFastDev( 538): (Thread-11) [15,914] sent tokens successfully\r\nD/TiFastDev( 538): (Thread-11) [3,917] Fastdev session handshake succesful.\r\nD/TiFastDev( 538): (Thread-11) [21,938] sent tokens successfully\r\nD/TiDebugSession( 538): (Thread-11) [144,1082] write packet: 21*1311010379862*created\r\nD/TiDebugSession( 538): (Thread-11) [6,1088] rcvd request: 20*1311010379863*enable\r\nD/TiDebugSession( 538): (Thread-11) [16,1104] write packet: 13*1311010379863\r\nD/dalvikvm( 538): GC_FOR_MALLOC freed 2894 objects / 343128 bytes in 63ms\r\nI/global ( 538): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.\r\nD/qemud ( 38): fdhandler_accept_event: accepting on fd 10\r\nD/qemud ( 38): created client 0x19f28 listening on fd 15\r\nD/qemud ( 38): client_fd_receive: attempting registration for service 'sensors'\r\nD/qemud ( 38): client_fd_receive: -> received channel id 9\r\nD/qemud ( 38): client_registration: registration succeeded for client 9\r\nD/qemud ( 38): fdhandler_event: disconnect on fd 15\r\nD/TiDebugClient( 538): (kroll$1: app://app.js) [177,1281] debugger evalFile: file:///android_asset/Resources/app.js\r\nD/TiDebugSession( 538): (kroll$1: app://app.js) [1,1282] write packet: 40*threads*created*9*kroll$1: [app:/app.js]\r\nD/TiDebugSession( 538): (kroll$1: app://app.js) [53,1335] write packet: 47*scripts*created*9|app:/app.js|app:/app.js|1|715\r\nD/TitaniumModule( 538): (kroll$1: app://app.js) [116,1451] Attempting to include native module: ui\r\nD/TiFastDev( 538): (kroll$1: app://app.js) [10,1461] sent tokens successfully\r\nE/TitaniumModule( 538): (kroll$1: app://app.js) [113,1574] Error loading module named: ui\r\nE/TitaniumModule( 538): java.lang.ClassCastException: org.mozilla.javascript.Undefined\r\nE/TitaniumModule( 538): at ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:434)\r\nE/TitaniumModule( 538): at ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/TitaniumModule( 538): at org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/TitaniumModule( 538): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.Context.evaluateString(Context.java:1111)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.run(Dim.java:1039)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.Context.call(Context.java:521)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.withContext(Dim.java:1078)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.access$3(Dim.java:1077)\r\nE/TitaniumModule( 538): at org.mozilla.javascript.tools.debugger.Dim.evalScript(Dim.java:677)\r\nE/TitaniumModule( 538): at ti.modules.titanium.debug.g.evaluateFile(Unknown Source)\r\nE/TitaniumModule( 538): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/TitaniumModule( 538): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/TitaniumModule( 538): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/TitaniumModule( 538): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/TitaniumModule( 538): at android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TitaniumModule( 538): at android.os.Looper.loop(Looper.java:123)\r\nE/TitaniumModule( 538): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 538): (kroll$1: app://app.js) [39,1613] Exception calling kroll method require, invocation: null ]\r\nE/KrollMethod( 538): org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: org.mozilla.javascript.Undefined (file:///android_asset/Resources/app.js#5)\r\nE/KrollMethod( 538): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)\r\nE/KrollMethod( 538): at ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:453)\r\nE/KrollMethod( 538): at ti.modules.titanium.TitaniumModuleBindingGen$23.invoke(TitaniumModuleBindingGen.java:875)\r\nE/KrollMethod( 538): at org.appcelerator.kroll.KrollProxy$ThisMethod.invoke(KrollProxy.java:397)\r\nE/KrollMethod( 538): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)\r\nE/KrollMethod( 538): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)\r\nE/KrollMethod( 538): at script(file:///android_asset/Resources/app.js:5)\r\nE/KrollMethod( 538): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/KrollMethod( 538): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/KrollMethod( 538): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/KrollMethod( 538): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/KrollMethod( 538): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\r\nE/KrollMethod( 538): at org.mozilla.javascript.Context.evaluateString(Context.java:1111)\r\nE/KrollMethod( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.run(Dim.java:1039)\r\nE/KrollMethod( 538): at org.mozilla.javascript.Context.call(Context.java:521)\r\nE/KrollMethod( 538): at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:535)\r\nE/KrollMethod( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.withContext(Dim.java:1078)\r\nE/KrollMethod( 538): at org.mozilla.javascript.tools.debugger.Dim$DimIProxy.access$3(Dim.java:1077)\r\nE/KrollMethod( 538): at org.mozilla.javascript.tools.debugger.Dim.evalScript(Dim.java:677)\r\nE/KrollMethod( 538): at ti.modules.titanium.debug.g.evaluateFile(Unknown Source)\r\nE/KrollMethod( 538): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)\r\nE/KrollMethod( 538): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)\r\nE/KrollMethod( 538): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)\r\nE/KrollMethod( 538): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)\r\nE/KrollMethod( 538): at android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/KrollMethod( 538): at android.os.Looper.loop(Looper.java:123)\r\nE/KrollMethod( 538): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/KrollMethod( 538): Caused by: java.lang.ClassCastException: org.mozilla.javascript.Undefined\r\nE/KrollMethod( 538): at ti.modules.titanium.TitaniumModule.require(TitaniumModule.java:434)\r\nE/KrollMethod( 538): ... 24 more\r\nI/System.out( 538): onExceptionThrown, cx:org.mozilla.javascript.Context@43e85600, exception:org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: org.mozilla.javascript.Undefined (file:///android_asset/Resources/app.js#5)\r\nD/TiDebugSession( 538): (kroll$1: app://app.js) [24,1637] write packet: 130*log*err*[ERROR] Wrapped java.lang.ClassCastException: org.mozilla.javascript.Undefined (file:///android_asset/Resources/app.js#05)\r\nD/TiDebugSession( 538): (kroll$1: app://app.js) [4,1641] write packet: 35*suspended*9*exception*app:/app.js*5\r\nD/TiDebugSession( 538): (Thread-11) [9,1650] rcvd request: 22*1311010379864*frames*9\r\nD/FramesHandler( 538): Frame 0 scope: [object Object]\r\nD/TiDebugSession( 538): (Thread-11) [7,1657] write packet: 61*1311010379864*0|||app:/app.js|5|false|1311010380161|333894860\r\nW/ActivityManager( 97): Activity idle timeout for HistoryRecord{43e80318 com.appcelerator.pushtest/.Test1Activity}\r\nD/TiDebugSession( 538): (Thread-11) [11141,12798] rcvd request: 34*1311010379865*variables*9*frame[0]\r\nD/VariablesHandler( 538): expr: frame[0], scope: [object Object], value: [object Object], name: null\r\nD/VariablesHandler( 538): o1: button, o1Class: class java.lang.String, o2: ui, o2Class: class java.lang.String\r\nD/VariablesHandler( 538): o1: win, o1Class: class java.lang.String, o2: button, o2Class: class java.lang.String\r\nD/VariablesHandler( 538): o1: win, o1Class: class java.lang.String, o2: ui, o2Class: class java.lang.String\r\nD/TiDebugSession( 538): (Thread-11) [24,12822] write packet: 114*1311010379865*button|Object|vwlpn|undefined*ui|Object|vwlpn|undefined*win|Ti.UI.Window|volpn|[object Ti.UI.Window]\r\nD/dalvikvm( 296): GC_EXPLICIT freed 168 objects / 8784 bytes in 67ms\r\nW/ActivityManager( 97): Timeout executing service: ServiceRecord{441ac5a0 com.appcelerator.pushtest/org.appcelerator.titanium.analytics.TiAnalyticsService}\r\nI/Process ( 97): Sending signal. PID: 538 SIG: 3\r\nI/dalvikvm( 538): threadid=3: reacting to signal 3\r\nI/dalvikvm( 538): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 97 SIG: 3\r\nI/dalvikvm( 97): threadid=3: reacting to signal 3\r\nI/dalvikvm( 97): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 228 SIG: 3\r\nI/dalvikvm( 228): threadid=3: reacting to signal 3\r\nI/dalvikvm( 228): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 296 SIG: 3\r\nI/dalvikvm( 296): threadid=3: reacting to signal 3\r\nI/dalvikvm( 296): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 331 SIG: 3\r\nI/dalvikvm( 331): threadid=3: reacting to signal 3\r\nI/dalvikvm( 331): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 486 SIG: 3\r\nI/dalvikvm( 486): threadid=3: reacting to signal 3\r\nI/dalvikvm( 486): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 464 SIG: 3\r\nI/dalvikvm( 464): threadid=3: reacting to signal 3\r\nI/dalvikvm( 464): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 314 SIG: 3\r\nI/dalvikvm( 314): threadid=3: reacting to signal 3\r\nI/dalvikvm( 314): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 358 SIG: 3\r\nI/dalvikvm( 358): threadid=3: reacting to signal 3\r\nI/dalvikvm( 358): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 409 SIG: 3\r\nI/dalvikvm( 409): threadid=3: reacting to signal 3\r\nI/dalvikvm( 409): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 389 SIG: 3\r\nI/dalvikvm( 389): threadid=3: reacting to signal 3\r\nI/dalvikvm( 389): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 375 SIG: 3\r\nI/dalvikvm( 375): threadid=3: reacting to signal 3\r\nI/dalvikvm( 375): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 442 SIG: 3\r\nI/dalvikvm( 442): threadid=3: reacting to signal 3\r\nI/dalvikvm( 442): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 232 SIG: 3\r\nI/dalvikvm( 232): threadid=3: reacting to signal 3\r\nI/dalvikvm( 232): Wrote stack traces to '/data/anr/traces.txt'\r\nI/Process ( 97): Sending signal. PID: 434 SIG: 3\r\nI/dalvikvm( 434): threadid=3: reacting to signal 3\r\nI/dalvikvm( 434): Wrote stack traces to '/data/anr/traces.txt'\r\nE/ActivityManager( 97): ANR in com.appcelerator.pushtest\r\nE/ActivityManager( 97): Reason: Executing service com.appcelerator.pushtest/org.appcelerator.titanium.analytics.TiAnalyticsService\r\nE/ActivityManager( 97): Load: 0.13 / 0.04 / 0.02\r\nE/ActivityManager( 97): CPU usage from 19435ms to 39ms ago:\r\nE/ActivityManager( 97): erator.pushtest: 13% = 9% user + 3% kernel / faults: 5605 minor 65 major\r\nE/ActivityManager( 97): system_server: 1% = 0% user + 1% kernel / faults: 324 minor 8 major\r\nE/ActivityManager( 97): ndroid.launcher: 0% = 0% user + 0% kernel / faults: 310 minor\r\nE/ActivityManager( 97): logcat: 0% = 0% user + 0% kernel / faults: 13 minor\r\nE/ActivityManager( 97): m.android.phone: 0% = 0% user + 0% kernel / faults: 227 minor\r\nE/ActivityManager( 97): e.process.gapps: 0% = 0% user + 0% kernel / faults: 218 minor 4 major\r\nE/ActivityManager( 97): m.android.email: 0% = 0% user + 0% kernel / faults: 283 minor 4 major\r\nE/ActivityManager( 97): id.defcontainer: 0% = 0% user + 0% kernel / faults: 162 minor\r\nE/ActivityManager( 97): putmethod.latin: 0% = 0% user + 0% kernel / faults: 221 minor\r\nE/ActivityManager( 97): roid.alarmclock: 0% = 0% user + 0% kernel / faults: 177 minor\r\nE/ActivityManager( 97): d.process.media: 0% = 0% user + 0% kernel / faults: 152 minor\r\nE/ActivityManager( 97): m.android.music: 0% = 0% user + 0% kernel / faults: 160 minor\r\nE/ActivityManager( 97): com.svox.pico: 0% = 0% user + 0% kernel / faults: 158 minor\r\nE/ActivityManager( 97): qemud: 0% = 0% user + 0% kernel / faults: 21 minor\r\nE/ActivityManager( 97): .quicksearchbox: 0% = 0% user + 0% kernel / faults: 179 minor\r\nE/ActivityManager( 97): android.protips: 0% = 0% user + 0% kernel / faults: 167 minor\r\nE/ActivityManager( 97): s:FriendService: 0% = 0% user + 0% kernel / faults: 162 minor\r\nE/ActivityManager( 97): kswapd0: 0% = 0% user + 0% kernel\r\nE/ActivityManager( 97): TOTAL: 9% = 2% user + 4% kernel + 2% iowait\r\nI/ARMAssembler( 97): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x2c1318:0x2c13d4] in 6439001 ns\r\nD/TiDebugSession( 538): (Thread-11) [9000,21822] rcvd request: 35*1311010379866*details*9*frame[0].ui\r\nD/dalvikvm( 538): GC_FOR_MALLOC freed 5467 objects / 426040 bytes in 72ms\r\nD/SntpClient( 97): request time failed: java.net.SocketException: Address family not supported by protocol\r\nD/SntpClient( 97): request time failed: java.net.SocketException: Address family not supported\r\n{noformat}\r\n\r\nh3.Reproduction code\r\n{code:title=app.js|borderStyle=solid}\r\n// app.js\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n\r\nvar ui = require('ui'); \r\nvar button = Ti.UI.createButton({\r\n title: 'Test',\r\n top: 20,\r\n height: 50,\r\n width: 200\r\n});\r\nbutton.addEventListener('click', function(e){\r\n ui.alertIt('hi');\r\n});\r\nwin.add(button);\r\nwin.open();\r\n\r\n// ui.js\r\nexports.alertIt = function(e) {\r\n alert(e);\r\n};\r\n{code}\r\n\r\nh3.Customer describing the problem\r\n\"I love Titanium Studio if it wasn't for the fact that I can NEVER debug an application in the Android emulator if I am using a require('some_js_module') in the application.\r\n\r\nIf I take the default application and add at the top of app.js I add\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar ui = require('ui'); \r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n{code}\r\n\r\n...then create a ui.js file and put the following inside\r\n\r\n{code:title=ui.js|borderStyle=solid}\r\nexports.alertIt = function(e) {\r\n alert(e);\r\n};\r\n{code}\r\n\r\n... then try to debug the application on Android\r\n\r\n...the debugger throws an exception as soon as it reaches var ui = require('ui'); and the application stops there.", "attachment": [], "flagged": false, "summary": "Android: Cannot debug an application while using require('some_js_module')", "creator": { "name": "oholt", "key": "oholt", "displayName": "Oystein Holt", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oholt", "key": "oholt", "displayName": "Oystein Holt", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 1.7.0, Android emulator 2.2", "comment": { "comments": [ { "id": "164193", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reviewed.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T14:40:09.000+0000", "updated": "2011-08-26T14:40:09.000+0000" }, { "id": "165870", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved. \n\nTested On:\nMac OSX Lion\nTiMob: 1.8.0.v20110906155354\nTiStud: 1.0.5.201109091616\n\nDevices Used:\nAndroid Emulator 2.2\nDroid 1\nDroid 3", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T12:38:02.000+0000", "updated": "2011-09-13T12:38:02.000+0000" }, { "id": "167236", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "reopening for 1.7.X merge", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-28T13:26:29.000+0000", "updated": "2011-09-28T13:26:29.000+0000" }, { "id": "167262", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Merged into 1_7_X branch.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-09-28T14:29:17.000+0000", "updated": "2011-09-28T14:29:17.000+0000" }, { "id": "167330", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in 1.7.3.v20110928185013 on Android emulator 2.3.3 with Titanium Studio build: 1.0.4.201108101535.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-29T11:06:15.000+0000", "updated": "2011-09-29T11:06:15.000+0000" }, { "id": "176653", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.8.0.1.RC3\r\nTitanium Studio, build: 1.0.7.201112152014\r\nRuntime: V8, Rhino\r\nDevice: Android Emulator 2.2\r\nOS: Mac OS X Lion", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-19T18:02:03.000+0000", "updated": "2011-12-19T18:02:03.000+0000" }, { "id": "178413", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-06T15:59:09.000+0000", "updated": "2012-01-06T15:59:09.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }