Ionic V1 apps - problems in starting after going to background (sporadic issue)


#1

EDITED : I had assumed it was related to FileUtils (cordovan-file) but its not.

The problem in a more generic sense is the app freezes in its splash screen after going to the background - only sometimes. Any experience?

Freeze logs (happens after I exit the app via home/back and only once in a while)

1-01 17:41:30.710   491  2356 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
11-01 17:41:30.819  1581  2539 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pliablepixels.zmninja_pro/.MainActivity bnds=[27,279][283,545] (has extras)} from uid 10053 on display 0
11-01 17:41:30.820   491 13182 I Thermal-Lib: Thermal-Lib-Client: Client request sent
11-01 17:41:30.820   745  1061 I ThermalEngine: Thermal-Server: Thermal received msg from  override
11-01 17:41:30.835  1581  1830 D ActivityManager: mMemLeft = 567
11-01 17:41:30.848 13047 13047 D CordovaActivity: Started the activity.
11-01 17:41:30.848 13047 13047 D CordovaActivity: Resumed the activity.
11-01 17:41:30.893  1581  1651 I LaunchCheckinHandler: Displayed com.pliablepixels.zmninja_pro/.MainActivity,wp,wa,74
11-01 17:41:30.940  2668 13126 I PBSessionCacheImpl: Deleted sessionId[1870521596159] from persistence.
11-01 17:41:30.952  2668 12868 V ConnectivityManager: isActiveNetworkMetered() returns:false
11-01 17:41:30.955  2668  2668 W SearchService: Abort, client detached.
11-01 17:41:31.003  2429  5595 I PlaceInferenceEngine: [anon] Changed inference mode: 105
11-01 17:41:31.284  1581  2517 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.GoogleNowPanel) called by com.android.server.wm.WindowStateAnimator.destroySurface:2067 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:896 com.android.server.wm.WindowState.destroyOrSaveSurface:2094 com.android.server.wm.AppWindowToken.destroySurfaces:368 com.android.server.wm.AppWindowToken.notifyAppStopped:394 com.android.server.wm.WindowManagerService.notifyAppStopped:4532 com.android.server.am.ActivityStack.activityStoppedLocked:1267 com.android.server.am.ActivityManagerService.activityStopped:7177 
11-01 17:41:31.285  1581  2517 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.GoogleNowPanel) called by com.android.server.wm.WindowStateAnimator.destroySurface:2067 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:896 com.android.server.wm.WindowState.destroyOrSaveSurface:2094 com.android.server.wm.AppWindowToken.destroySurfaces:368 com.android.server.wm.AppWindowToken.notifyAppStopped:394 com.android.server.wm.WindowManagerService.notifyAppStopped:4532 com.android.server.am.ActivityStack.activityStoppedLocked:1267 com.android.server.am.ActivityManagerService.activityStopped:7177 
11-01 17:41:33.819   745  1061 I ThermalEngine: Thermal-Server: Thermal received msg from  override
11-01 17:41:33.820   491 13184 I Thermal-Lib: Thermal-Lib-Client: Client request sent
11-01 17:41:33.980   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU0 [P:0] to CPU4 [P:1] (banned)
11-01 17:41:33.981   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU2 [P:0] to CPU5 [P:1] (banned)
11-01 17:41:33.981   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU3 [P:0] to CPU6 [P:1] (banned)
11-01 17:41:33.981   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU1 [P:0] to CPU7 [P:1] (banned)
11-01 17:41:36.472  2668  2678 E ReloadingLock: Finalizing LOCKED Token[shortcuts 2017-11-01 17:40:52.839]
11-01 17:41:38.979   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU0 [P:0] to CPU4 [P:1] (banned)
11-01 17:41:38.980   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU2 [P:0] to CPU5 [P:1] (banned)
11-01 17:41:38.981   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU3 [P:0] to CPU6 [P:1] (banned)
11-01 17:41:38.981   821   821 I MSM-irqbalance: Decided to move IRQ18 from CPU1 [P:0] to CPU7 [P:1] (ba

===== OLD POST =======

Hi folks, has anyone faced an issue with a v1 app when after going to the background (back or home), it randomly refuses to restart with “FileUtils: Unrecognized extra filesystem identifier: assets” error? It happens once in a while. This is the last error before the app freezes at the splash screen

It is almost like the device is not ready on resume --> but I’ve wrapped all parts of my code (I can think of) in $ionicPlatform.ready()

Only Android.

11-01 17:18:04.274   745  1061 I ThermalEngine: Thermal-Server: Thermal received msg from  override
11-01 17:18:04.274   491 12406 I Thermal-Lib: Thermal-Lib-Client: Client request sent
11-01 17:18:04.318 12243 12243 I CordovaLog: Changing log level to DEBUG(3)
11-01 17:18:04.319 12243 12243 I CordovaActivity: Apache Cordova native platform version 6.2.3 is starting
11-01 17:18:04.319 12243 12243 D CordovaActivity: CordovaActivity.onCreate()
11-01 17:18:04.336 12243 12243 D SystemWebViewEngine: CordovaWebView is running on device made by: motorola
11-01 17:18:04.339 12243 12243 D PluginManager: init()
11-01 17:18:04.349 12243 12243 D FileUtils: Unrecognized extra filesystem identifier: assets

ionic info (I’ve tried with ionic 1.3.x too - no difference)

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.16.0
    ionic (Ionic CLI) : 3.16.0

global packages:

    cordova (Cordova CLI) : 7.0.1 
    Gulp CLI              : not installed globally

local packages:

    Cordova Platforms : android 6.2.3 ios 4.4.0
    Ionic Framework   : ionic1 1.2.4

System:

    Android SDK Tools : 25.2.5
    ios-deploy        : 1.9.2 
    Node              : v8.6.0
    npm               : 5.3.0 
    OS                : macOS Sierra
    Xcode             : Xcode 9.0.1 Build version 9A1004 

Environment Variables:

    ANDROID_HOME : /Users/pp/Library/Android/sdk/

Misc:

    backend : legacy