Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5345] Android: When Main Window closed by exitOnClose=true, if try to relaunch,`AssetManager is null`error is shown.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2017-11-04T14:42:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterDongwoo Gim
AssigneeShak Hossain
Created2017-11-03T16:17:32.000+0000
Updated2017-11-09T10:19:51.000+0000

Description

When Main Window closed by exitOnClose=true, if try to relaunch application,AssetManager is nullerror 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

Comments

  1. Dongwoo Gim 2017-11-03

  2. Hans Knöchel 2017-11-04

    There is no additional 6.3.x release planned, but feel free to apply the fix to your own 6_3_X branch. Thx!
  3. Michiel van Eerd 2017-11-09

    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.

JSON Source