Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8614

Android V8 debugger: Breakpoints doesn't hit in the app

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: Release 4.8.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Studio 4.8.0
      SDK 6.0.0.v20161005072811

      Description

      Appcelerator Studio doesn't hit the breakpoints for android apps while running on the simulator using studio 4.8.0 and SDK 6.0.

      Tried using run-on-main-thread and without it - in both the cases it didn't work!

      To reproduce:

      1. Create an alloy app using Studio 4.8.0 and SDK 6.0
      2. Add a breakpoint in the index.js file
      3. Run an app in debug mode with Android default simulator in the studio

      Actual:
      App launched in the Android emulator but didn't hit a breakpoint from the index.js file

      Expected:
      Studio should hit a breakpoint in the index.js

      Here is the console log:

      java.io.IOException: Failed to get version
          at org.chromium.sdk.internal.v8native.JavascriptVmImpl.newIOException(JavascriptVmImpl.java:101)
          at org.chromium.sdk.internal.standalonev8.StandaloneVmImpl.attachImpl(StandaloneVmImpl.java:130)
          at org.chromium.sdk.internal.standalonev8.StandaloneVmImpl.attach(StandaloneVmImpl.java:77)
          at com.appcelerator.titanium.android.debug.core.V8DebugTarget.attach(V8DebugTarget.java:272)
          at com.appcelerator.titanium.android.core.launching.AndroidLaunchProperties.connect(AndroidLaunchProperties.java:279)
          at com.appcelerator.titanium.android.core.launching.AndroidLaunchProperties.initiateDebuggerConnection(AndroidLaunchProperties.java:254)
          at com.appcelerator.titanium.android.core.launching.AndroidLaunchProperties.access$3(AndroidLaunchProperties.java:250)
          at com.appcelerator.titanium.android.core.launching.AndroidLaunchProperties$DebuggerConnectionRunnable.run(AndroidLaunchProperties.java:387)
          at java.lang.Thread.run(Thread.java:745)
      Caused by: java.util.concurrent.ExecutionException: java.io.IOException: End of stream
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:202)
          at org.chromium.sdk.internal.standalonev8.StandaloneVmImpl.attachImpl(StandaloneVmImpl.java:125)
          ... 7 more
      Caused by: java.io.IOException: End of stream
          at org.chromium.sdk.internal.transport.Handshaker$StandaloneV8Impl$HandshakeTaks.call(Handshaker.java:122)
          at org.chromium.sdk.internal.transport.Handshaker$StandaloneV8Impl$HandshakeTaks.call(Handshaker.java:1)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at org.chromium.sdk.internal.transport.Handshaker$StandaloneV8Impl.perform(Handshaker.java:100)
          at org.chromium.sdk.internal.transport.SocketConnection$ReaderThread.run(SocketConnection.java:156)
       
      > Received from Chrome:
      Type: connect
      V8-Version: 5.1.281.59
      Protocol-Version: 1
      Embedding-Host: Titanium v6.0.0
      Content-Length: 0
       
       
      > end of message
       
      > Sent to Chrome:
       
      > end of message
       
      > Received from Chrome:
      Content-Length: 715
       
      {"seq":0,"type":"event","event":"break","body":{"invocationText":"function Module(id, parent, context) {\n\tthis.id = id;\n\tthis.exports = {};\n\tthis.parent = parent;\n\tthis.context = context;\n\n\tthis.filename = null;\n\tthis.loaded = false;\n\tthis.exited = false;\n\tthis.children = [];\n\tthis.wrapperCache = {};\n}.runModule(source=var Alloy = require(\"alloy\"), _ = Alloy._, Backbone = Alloy.Backbone;\n\nAlloy.cre... (length: 103), filename=Resources/app.js, activityOrService=#<Activity>)","sourceLine":47,"sourceColumn":28,"sourceLineText":"Module.runModule = function (source, filename, activityOrService) {","script":{"id":51,"name":"ti:/module.js","lineOffset":0,"columnOffset":0,"lineCount":607}}}
      > end of message
       
      !ENTRY org.chromium.debug.core 4 0 2016-10-04 15:44:12.137
      !MESSAGE SDK:org.chromium.sdk.internal.transport.SocketConnection: Exception in message listener
      !STACK 0
      java.lang.NullPointerException
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.reportVmStatus(V8CommandProcessor.java:147)
          at org.chromium.sdk.internal.BaseCommandProcessor.reportVmStatus(BaseCommandProcessor.java:194)
          at org.chromium.sdk.internal.BaseCommandProcessor.send(BaseCommandProcessor.java:68)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor.sendV8CommandAsync(V8CommandProcessor.java:81)
          at org.chromium.sdk.internal.v8native.ContextBuilder$PreContext.sendV8CommandAsync(ContextBuilder.java:224)
          at org.chromium.sdk.internal.v8native.processor.BreakpointProcessor.processNextStep(BreakpointProcessor.java:87)
          at org.chromium.sdk.internal.v8native.processor.BreakpointProcessor.messageReceived(BreakpointProcessor.java:76)
          at org.chromium.sdk.internal.v8native.DefaultResponseHandler.handleResponseWithHandler(DefaultResponseHandler.java:60)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.acceptNonSeq(V8CommandProcessor.java:142)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.acceptNonSeq(V8CommandProcessor.java:1)
          at org.chromium.sdk.internal.BaseCommandProcessor.processIncoming(BaseCommandProcessor.java:110)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor.processIncomingJson(V8CommandProcessor.java:112)
          at org.chromium.sdk.internal.standalonev8.StandaloneVmImpl$4.messageReceived(StandaloneVmImpl.java:114)
          at org.chromium.sdk.internal.transport.SocketConnection$RegularMessageItem.report(SocketConnection.java:120)
          at org.chromium.sdk.internal.transport.SocketConnection$ResponseDispatcherThread.run(SocketConnection.java:209)
      Oct 04, 2016 3:44:12 PM org.chromium.sdk.internal.transport.SocketConnection$ResponseDispatcherThread run
      SEVERE: Exception in message listener
      java.lang.NullPointerException
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.reportVmStatus(V8CommandProcessor.java:147)
          at org.chromium.sdk.internal.BaseCommandProcessor.reportVmStatus(BaseCommandProcessor.java:194)
          at org.chromium.sdk.internal.BaseCommandProcessor.send(BaseCommandProcessor.java:68)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor.sendV8CommandAsync(V8CommandProcessor.java:81)
          at org.chromium.sdk.internal.v8native.ContextBuilder$PreContext.sendV8CommandAsync(ContextBuilder.java:224)
          at org.chromium.sdk.internal.v8native.processor.BreakpointProcessor.processNextStep(BreakpointProcessor.java:87)
          at org.chromium.sdk.internal.v8native.processor.BreakpointProcessor.messageReceived(BreakpointProcessor.java:76)
          at org.chromium.sdk.internal.v8native.DefaultResponseHandler.handleResponseWithHandler(DefaultResponseHandler.java:60)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.acceptNonSeq(V8CommandProcessor.java:142)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor$HandlerImpl.acceptNonSeq(V8CommandProcessor.java:1)
          at org.chromium.sdk.internal.BaseCommandProcessor.processIncoming(BaseCommandProcessor.java:110)
          at org.chromium.sdk.internal.v8native.V8CommandProcessor.processIncomingJson(V8CommandProcessor.java:112)
          at org.chromium.sdk.internal.standalonev8.StandaloneVmImpl$4.messageReceived(StandaloneVmImpl.java:114)
          at org.chromium.sdk.internal.transport.SocketConnection$RegularMessageItem.report(SocketConnection.java:120)
          at org.chromium.sdk.internal.transport.SocketConnection$ResponseDispatcherThread.run(SocketConnection.java:209)
       
       
      > Sent to Chrome:
      Content-Length:46
       
      {"seq":2,"type":"request","command":"version"}
      > end of message
       
      > Received from Chrome:
      Content-Length: 138
       
      {"seq":1,"request_seq":2,"type":"response","command":"version","success":true,"body":{"V8Version":"5.1.281.59"},"refs":[],"running":false}
      > end of message
      

        Attachments

          Activity

            People

            • Assignee:
              kkolipaka Kondal Kolipaka (Inactive)
              Reporter:
              kkolipaka Kondal Kolipaka (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: