Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19416] Windows: Classic app throws application error "error while require(/app)" when cloud module 3.2.9 is used

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-08-27T16:08:27.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsqe-5.0.0, regression
ReporterLokesh Choudhary
AssigneeKota Iguchi
Created2015-08-27T00:34:16.000+0000
Updated2016-03-09T10:34:02.000+0000

Description

*Note: This is a regression. This issue is not seen with cloud module 3.2.8.*

Steps To Reproduce:

1. Create a default classic app. 2. Build for windows device/emulator with cloud module 3.2.9. 3. Let the app launch.

Actual Results:

1. We get application error:
-- Start application log -----------------------------------------------------
[ERROR] :  Application Error: {
[ERROR] :    "line": 2,
[ERROR] :    "column": 10,
[ERROR] :    "message": "Error while require(/app) null is not an object",
[ERROR] :    "native_stack": [
[ERROR] :      "JSExportClass<class Titanium::GlobalObject>::CallNamedFunction"
[ERROR] :    ]
[ERROR] :  }
[INFO] :   Finished launching the application
[INFO] :   Waiting for app to connect to log relay
2. Removing the ACS injected code while creation, we don't see this issue. 3. Might be this caused this issue: https://github.com/appcelerator-modules/ti.cloud/commit/19977e7570cbf50a27a679d3711c026f15d8825f

Expected Results:

1. The classic app should launch without any application errors.

Comments

  1. Kota Iguchi 2015-08-27

    https://github.com/appcelerator/titanium_mobile_windows/pull/420
  2. Ewan Harris 2015-09-02

    Verified using: Windows 8.1 Appc CLI Core: 5.0.0-33 Appc CLI NPM: 4.2.0-1 Titanium SDK: 5.0.0.v20150902095518 Nokia Lumia 930 8.1 When setting securityManager to null the app no longer crashes. Closing ticket
  3. Jörgen Buder 2016-03-09

    Hi I seem to have the same problem running latest module 2.9.10 ?? If I include some API calls which actually do not call the cloud but just http / https then I get this error, do I need to set the security manager some how ? Thanks

JSON Source