Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2594] iOS: "ti.crypto" Example needs updating

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-06-15T12:03:53.000+0000
Affected Version/sRelease 9.0.0
Fix Version/sn/a
ComponentsCrypto
Labels2020-Q2
ReporterSamir Mohammed
AssigneeAnil Shukla
Created2020-04-07T09:15:25.000+0000
Updated2020-06-15T12:03:53.000+0000

Description

ti.crypto includes ti.include which has now been removed in titanium and replaced with .require.
[ERROR] TiExceptionHandler: (main) [1540,1540] /app.js:23
[INFO]   I/ti.crypto.app: Waiting for a blocking GC ProfileSaver
[ERROR] TiExceptionHandler: Ti.include('ui.js');
[ERROR] TiExceptionHandler:    ^
[ERROR] TiExceptionHandler: TypeError: Ti.include is not a function
[ERROR] TiExceptionHandler:     at /app.js:23:4
[ERROR] TiExceptionHandler:     at Module._runScript (ti:/module.js:587:9)
[ERROR] TiExceptionHandler:     at Module.load (ti:/module.js:106:7)
[ERROR] TiExceptionHandler:     at Module.loadJavascriptText (ti:/module.js:436:9)
[ERROR] TiExceptionHandler:     at Module.loadAsFile (ti:/module.js:488:15)
[ERROR] TiExceptionHandler:     at Module.loadAsFileOrDirectory (ti:/module.js:410:20)
[ERROR] TiExceptionHandler:     at Module.require (ti:/module.js:239:23)
*+Test Steps:+*

Download module from (https://github.com/appcelerator-modules/ti.crypto)

Build module

Copy the the code from the example

Paste the code into a Titanium application

Add module to app

Run Titanium application

*Expected result* Application should not crash and run without issues. *Actual result* Application throws above error *To be done:* Update the example code with fixes done in Android here... https://github.com/appcelerator-modules/ti.crypto/pull/13 After adding fixes done for Android module, iOS gives error which need to be fixed. [TRACE] [ERROR] Script Error { [TRACE] [ERROR] column = 8; [TRACE] [ERROR] line = 25; [TRACE] [ERROR] message = "Maximum call stack size exceeded."; [TRACE] [ERROR] sourceURL = "file:///Users/axwayroot/Library/Developer/CoreSimulator/Devices/30071698-1263-4D45-A7A3-1BD6F3CE40C8/data/Containers/Bundle/Application/99E17B7A-7D07-4C1F-8DA7-3F4C3EC1AD78/crypto.app/app.js"; [TRACE] [ERROR] stack = " at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code]\n at (/ui.js:1:142)\n at global code(/ui.js:116:70)\n at require@[native code]\n at (/app.js:25:8)\n at global code(/app.js:31:70)\n at require@[native code])"; [TRACE] [ERROR] toJSON = ""; [TRACE] [ERROR] }

Attachments

FileDateSize
MOD-2594_android_log.txt2020-06-15T12:03:30.000+000085930
MOD-2594_ios_log.txt2020-06-15T12:03:33.000+00001810316

Comments

  1. Anil Shukla 2020-04-09

    PR - https://github.com/appcelerator-modules/ti.crypto/pull/14 resolved the previous TI.Module not found issue so now able to run the example successfully. Though couple of issues are coming when clicking the internal functionality. working on the issues.
  2. Anil Shukla 2020-06-11

    The PR: https://github.com/appcelerator-modules/ti.crypto/pull/15 addressing all the issue crypto module had. There were crash coming while trying to open the single call and multiple call table view cell of crypto module. this issue has also been resolved by above PR.
  3. Saumya Rai 2020-06-15

    Verified on below environment: *Mac OS X* = 10.15 *Xcode*: 11.3.1 *Node.js Version* = 12.16.0 *CLI Version* = 5.2.2 *Emulator* : Nexus6_API27 (8.1.0) *iOS Simulator* = iPhone 11 Pro Max (13.3) Its working fine so closing this ticket. Attaching logs for reference.

JSON Source