[AC-5345] Android: When Main Window closed by exitOnClose=true, if try to relaunch,`AssetManager is null`error is shown.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2017-11-04T14:42:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Dongwoo Gim |
Assignee | Shak Hossain |
Created | 2017-11-03T16:17:32.000+0000 |
Updated | 2017-11-09T10:19:51.000+0000 |
Description
When Main Window closed by exitOnClose=true, if try to relaunch application,
AssetManager is null
error is shown.
It always happens when you restart application quickly.
Try it after a while and it will launch succeed.
It's terrible & critical issue!
[DEBUG] Window: Window is closed normally.
[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[ERROR] TiAssetHelper: AssetManager is null, can't read asset: app.json
[WARN] TiApplication: (main) [153,153] Registering module with name already in use.
[ERROR] TiAssetHelper: AssetManager is null, can't read asset: index.json
[ERROR] TiExceptionHandler: (main) [100,253] ----- Titanium Javascript Runtime Error -----
[ERROR] TiExceptionHandler: (main) [0,253] - In ti:/module.js:622,21
[ERROR] TiExceptionHandler: (main) [0,253] - Message: Uncaught TypeError: Cannot use 'in' operator to search for 'Resources/alloy' in null
[ERROR] TiExceptionHandler: (main) [0,253] - Source: return filename in fileIndex;
[ERROR] V8Exception: Exception occurred at ti:/module.js:622: Uncaught TypeError: Cannot use 'in' operator to search for 'Resources/alloy' in null
There is no additional 6.3.x release planned, but feel free to apply the fix to your own 6_3_X branch. Thx!
How can I apply this fix to the 6.3.0.GA branch? Can someone tell me how to do this, or point me into a good direction? I tried to use the 7.0.0.v20171103085236 version where this issue should be resolved, but then I get "Found incompatible Titanium Module" errors (I guess because the modules need to be recompiled for the SDK 7 version). This is a really critical issue, so I need to resolve it for my running apps.