Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27602

[Windows - Android] Liveview crashes application and throws error before reloading

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.3.0
    • Fix Version/s: Release 8.3.0
    • Component/s: Android
    • Labels:
    • Environment:

      Description

      When using Liveview and saving a JS file the following error can be seen in Studio (Alloy App):

      [LiveView] Client disconnected
      [INFO] :   [LiveView] Reloading App
      [WARN] :   TiApplication: (main) [4696,12084] Registering module with name already in use.
      [WARN] :   TiApplication: (main) [1,12085] Registering module with name already in use.
      [ERROR] :  TiAssetHelper: Error while reading asset "Resources/ti.main.js":
      [ERROR] :  TiAssetHelper: java.io.FileNotFoundException: Resources/ti.main.js
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.openAsset(Native Method)
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:374)
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:348)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.titanium.TiApplication.softRestart(TiApplication.java:823)
      [ERROR] :  TiAssetHelper: 	at ti.modules.titanium.app.AppModule$1.run(AppModule.java:227)
      [ERROR] :  TiAssetHelper: 	at android.os.Handler.handleCallback(Handler.java:790)
      [ERROR] :  TiAssetHelper: 	at android.os.Handler.dispatchMessage(Handler.java:99)
      [ERROR] :  TiAssetHelper: 	at android.os.Looper.loop(Looper.java:164)
      [ERROR] :  TiAssetHelper: 	at android.app.ActivityThread.main(ActivityThread.java:6494)
      [ERROR] :  TiAssetHelper: 	at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] :  TiAssetHelper: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      [ERROR] :  TiAssetHelper: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
      [ERROR] :  TiAssetHelper: Error while reading asset "Resources/ti.main.js":
      [ERROR] :  TiAssetHelper: java.io.FileNotFoundException: Resources/ti.main.js
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.openAsset(Native Method)
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:374)
      [ERROR] :  TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:348)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.kroll.util.KrollAssetHelper.readAssetBytes(KrollAssetHelper.java:182)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModuleBytes(Native Method)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModuleBytes(V8Runtime.java:162)
      [ERROR] :  TiAssetHelper: 	at org.appcelerator.titanium.TiApplication.softRestart(TiApplication.java:823)
      [ERROR] :  TiAssetHelper: 	at ti.modules.titanium.app.AppModule$1.run(AppModule.java:227)
      [ERROR] :  TiAssetHelper: 	at android.os.Handler.handleCallback(Handler.java:790)
      [ERROR] :  TiAssetHelper: 	at android.os.Handler.dispatchMessage(Handler.java:99)
      [ERROR] :  TiAssetHelper: 	at android.os.Looper.loop(Looper.java:164)
      [ERROR] :  TiAssetHelper: 	at android.app.ActivityThread.main(ActivityThread.java:6494)
      [ERROR] :  TiAssetHelper: 	at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] :  TiAssetHelper: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      [ERROR] :  TiAssetHelper: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
      [ERROR] :  v8:
      [ERROR] :  v8:
      [ERROR] :  v8: #
      [ERROR] :  v8: # Fatal error in , line 0
      [ERROR] :  v8: #
      [ERROR] :  v8: unreachable code
      [ERROR] :  v8:
      [ERROR] :  v8: #
      [ERROR] :  v8: #
      [ERROR] :  v8: #
      [ERROR] :  v8: #FailureMessage Object: 0xbf9fa090
      [INFO] :   v8: # 00x8b4a1685
      [INFO] :   v8: # 10x8b49832a
      [INFO] :   v8: # 20x8ba3786b
      [INFO] :   v8: # 30x8ba3752b
      [INFO] :   v8: # 40x8ba217cd
      [INFO] :   v8: # 50x8b597af3
      [INFO] :   v8: # 60x8b599233
      [INFO] :   v8: # 70x8b4b9bdc
      [INFO] :   v8: # 80x8b4ba203
      [INFO] :   v8: # 90x8b4bb7d0
      [INFO] :   v8: #100x8b27c3bb
      [INFO] :   v8: #110x8b27ad23
      [INFO] :   v8: #120x8b53d0c6
      [INFO] :   v8: #130x8b53c6e5
      [INFO] :   v8: #140x8b53bac8
      [INFO] :   v8: #150x8b53b7a0
      [INFO] :   v8: #160x8aa82323
      [INFO] :   v8:
      

      Test Steps

      1. Open APPC studio
      2. Create an Alloy application
      3. Enable liveview
      4. Run application (Device or Sim)
      5. Open the index.xml
      6. Change the Hello world text to something else.

      Actual Result
      Above error is seen.

      Expected Result
      Live view should reload the app and changes made in .js file should be present.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                smohammed Samir Mohammed
                Tester:
                Samir Mohammed
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration