Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27604] Android: Build to android on windows fails with issue related to Ti.Cloak

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-11-18T18:19:08.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sRelease 8.3.0
ComponentsAndroid
LabelsengSchedule, regression
ReporterSatyam Sekhri
AssigneeGary Mathews
Created2019-11-14T20:03:15.000+0000
Updated2019-11-18T18:19:08.000+0000

Description

When trying to build a default classic or alloy project to android device or emulator on windows OS it fails. This is a regression as the issue is not seen when build using 8.2.1.GA Steps to Reproduce: 1. Create a project 2. Build to android Actual Result: Following error is shown:
[ERROR] Application Installer abnormal process termination. Process exit value was 1
2019-11-14T19:49:15.835Z | ERROR  | An uncaught exception was thrown!
\\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node is not a valid Win32 application.
\\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node
2019-11-14T19:49:15.837Z | ERROR  | \\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node is not a valid Win32 application.
\\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node
2019-11-14T19:49:15.837Z | TRACE  | Error: \\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node is not a valid Win32 application.
\\?\C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\native\ti.cloak-win32-ia32-v8.node
    at Object.Module._extensions..node (module.js:682:18)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\8.3.0.v20191114073239\node_modules\ti.cloak\lib\bindings.js:39:90)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)

Expected Result: The project should build successfully for android.

Comments

  1. Gary Mathews 2019-11-15

    8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11340
  2. Christopher Williams 2019-11-15

    merged to 8_3_X, cherry-picked to master.
  3. Satyam Sekhri 2019-11-18

    FR Passed
  4. Satyam Sekhri 2019-11-18

    Verified on: Win OS 10 SDK: 8.3.0.v20191115162504, 9.0.0.v20191117201259 Appc CLI: 7.1.2-master.7 Node: 10.17.0 Studio: 5.1.4.201909061933 Device: Nexus 4(5.1.1), Android emulator v9.0

JSON Source