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

Android: App crashes on incremental build in SDK 8.1.0+

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not Our Bug
    • Affects Version/s: Release 8.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      2019 Sprint 13

      Description

      We recently updated to latest master and noticed that our Android app (tested inside Simulator) sometimes randomly crashes with the following error:

      [INFO]  Project built successfully in 47s 475ms
       
      [INFO]  TiApplication: (main) [164,164] Analytics have been disabled
      [INFO]  TiApplication: (main) [175,339] Titanium Javascript runtime: v8
      [DEBUG] TiAnimationModule: (main) [29,368] inside onAppCreate
      [INFO]  TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
      [INFO]  TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = io.lambus.app.LambusActivity@e50663d
      [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.nativeOpenAsset(Native Method)
      [ERROR] TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:744)
      [ERROR] TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:721)
      [ERROR] TiAssetHelper: 	at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:165)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:99)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:466)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:183)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:485)
      [ERROR] TiAssetHelper: 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
      [ERROR] TiAssetHelper: 	at android.app.Activity.performResume(Activity.java:7292)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3776)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3816)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
      [ERROR] TiAssetHelper: 	at android.os.Handler.dispatchMessage(Handler.java:106)
      [ERROR] TiAssetHelper: 	at android.os.Looper.loop(Looper.java:193)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.main(ActivityThread.java:6669)
      [ERROR] TiAssetHelper: 	at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] TiAssetHelper: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      [ERROR] TiAssetHelper: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
      [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.nativeOpenAsset(Native Method)
      [ERROR] TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:744)
      [ERROR] TiAssetHelper: 	at android.content.res.AssetManager.open(AssetManager.java:721)
      [ERROR] TiAssetHelper: 	at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:165)
      [ERROR] TiAssetHelper: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      [ERROR] TiAssetHelper: 	at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:162)
      [ERROR] TiAssetHelper: 	at org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:207)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:99)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:466)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:183)
      [ERROR] TiAssetHelper: 	at org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:485)
      [ERROR] TiAssetHelper: 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1412)
      [ERROR] TiAssetHelper: 	at android.app.Activity.performResume(Activity.java:7292)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3776)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3816)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
      [ERROR] TiAssetHelper: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
      [ERROR] TiAssetHelper: 	at android.os.Handler.dispatchMessage(Handler.java:106)
      [ERROR] TiAssetHelper: 	at android.os.Looper.loop(Looper.java:193)
      [ERROR] TiAssetHelper: 	at android.app.ActivityThread.main(ActivityThread.java:6669)
      [ERROR] TiAssetHelper: 	at java.lang.reflect.Method.invoke(Native Method)
      [ERROR] TiAssetHelper: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
      [ERROR] TiAssetHelper: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
      [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: 0xffd60bb0
      

      We have no idea how to workaround this right now.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              3 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 Source Code