Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25700] Runtime error " Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined" while i required the module(which is created by me) into my Android App Project

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSilambarasan Raman
AssigneeUnknown
Created2017-12-19T09:28:43.000+0000
Updated2019-11-10T09:23:05.000+0000

Description

Hi Axway's Appcelerator Team, Kindly look at the below error , It seems to be a problem with Ti SDK, I will attach the sample project if you need
[[WARN] :   linker: libti.resizeable.so: unused DT entry: type 0x6ffffffe arg 0x3e44
[WARN] :   linker: libti.resizeable.so: unused DT entry: type 0x6fffffff arg 0x3
[WARN] :   art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
[INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[ERROR] :  TiExceptionHandler: (main) [87,87] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [0,87] - In ti.resizeable/bootstrap.js:20,45
[ERROR] :  TiExceptionHandler: (main) [0,87] - Message: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined
[ERROR] :  TiExceptionHandler: (main) [0,87] - Source: 	var invocationAPIs = module.invocationAPIs = [];
[INFO] :   art: Background partial concurrent mark sweep GC freed 1331(141KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 7MB/13MB, paused 6.614ms total 42.648ms
[DEBUG] :  OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[DEBUG] :  Atlas: Validating map...
[ERROR] :  V8Exception: Exception occurred at ti.resizeable/bootstrap.js:20: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined

Attachments

FileDateSize
Full Console Log.pdf2018-01-04T05:23:03.000+0000401925
Sample.zip2018-01-02T10:26:10.000+0000944673

Comments

  1. Silambarasan Raman 2017-12-22

    Hi Team, Any updates? Waiting for your input
  2. Sharif AbuDarda 2017-12-22

    Hello, Please attach the sample project for us to test. Thanks.
  3. Mostafizur Rahman 2018-01-02

    [~simbu], Are you able to sorted this out? If not ,please provide a sample test project to reproduce the issue on our end? Best
  4. Silambarasan Raman 2018-01-02

    @mrahman@axway.com @Mostafizur Rahman Yes still I'm facing the issue, I've attached the Sample project for reproduce the issue [^Sample.zip]
  5. Mostafizur Rahman 2018-01-04

    Hello [~simbu], Thanks for your feedback.Can you please test this on 7.0.1.GA and let us know if you get the same issue. Also share the console logs here. Best
  6. Silambarasan Raman 2018-01-04

    Hi @Mostafizur Rahman, Yes , I've tried with the 7.0.1.GA and getting the same issue, Console logs is
       [INFO] :   TiApplication: (main) [0,0] checkpoint, app created.
       [INFO] :   TiApplication: (main) [76,76] Titanium 7.0.1 (2017/12/18 10:42 undefined)
       [INFO] :   MultiDex: VM with version 2.1.0 has multidex support
       [INFO] :   MultiDex: install
       [INFO] :   MultiDex: VM has multidex support, MultiDex support library is disabled.
       [INFO] :   TiApplication: (main) [118,194] Titanium Javascript runtime: v8
       [DEBUG] :  ResizeableModule: (main) [17,211] inside onAppCreate
       [WARN] :   linker: libkroll-v8.so: unused DT entry: type 0x6ffffffe arg 0x33a6c0
       [WARN] :   linker: libkroll-v8.so: unused DT entry: type 0x6fffffff arg 0x3
       [WARN] :   TiAndroid: (KrollRuntimeThread) [929,1140] Application instance no longer available. Unable to get current activity.
       [WARN] :   TiAndroid: (KrollRuntimeThread) [1,1141] Application instance no longer available. Unable to get current activity.
       [WARN] :   TiAndroid: (KrollRuntimeThread) [0,1141] Application instance no longer available. Unable to get current activity.
       [WARN] :   linker: libti.resizeable.so: unused DT entry: type 0x6ffffffe arg 0x3cbc
       [WARN] :   linker: libti.resizeable.so: unused DT entry: type 0x6fffffff arg 0x2
       [WARN] :   art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
       [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
       [ERROR] :  TiExceptionHandler: (main) [70,70] ----- Titanium Javascript Runtime Error -----
       [ERROR] :  TiExceptionHandler: (main) [0,70] - In ti.resizeable/bootstrap.js:20,45
       [ERROR] :  TiExceptionHandler: (main) [0,70] - Message: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined
       [ERROR] :  TiExceptionHandler: (main) [0,70] - Source: 	var invocationAPIs = module.invocationAPIs = [];
       [DEBUG] :  OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
       [DEBUG] :  D/        : HostConnection::get() New Host Connection established 0xf3e38e60, tid 2047
       [DEBUG] :  Atlas: Validating map...
       [ERROR] :  V8Exception: Exception occurred at ti.resizeable/bootstrap.js:20: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined
       [INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.anubavam.sample.SampleActivity@1dfcef41
       [DEBUG] :  libEGL: loaded /system/lib/egl/libEGL_emulation.so
       [DEBUG] :  libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
       [DEBUG] :  libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
       [DEBUG] :  D/        : HostConnection::get() New Host Connection established 0xeec39bd0, tid 2076
       [INFO] :   OpenGLRenderer: Initialized EGL, version 1.4
       [DEBUG] :  OpenGLRenderer: Enabling debug mode 0
       [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
       [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeec68980, error=EGL_SUCCESS
       [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
       [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeec689a0, error=EGL_SUCCESS
       [INFO] :   Choreographer: Skipped 34 frames!  The application may be doing too much work on its main thread.
       [TRACE] :  updating tiapp metadata with Appcelerator Platform...
       [INFO] :   APSAnalyticsService: Analytics Service Started
       [INFO] :   APSAnalyticsService: Stopping Analytics Service
       [TRACE] :  Uploaded tiapp metadata with Appcelerator Platform!
       [WARN] :   TiVerify: (Timer-0) [5020,5020] Verifying module licenses...
       [INFO] :   TiVerify: (Timer-0) [810,5830] Succesfully verified module licenses
       [INFO] :   APSAnalyticsService: Analytics Service Started
       [INFO] :   APSAnalyticsService: Stopping Analytics Service
       
       
    Attached the Full console log for your perusal [^Full Console Log.pdf]
  7. Silambarasan Raman 2018-01-22

    @mrahman@axway.com @Mostafizur Rahman Are you guys working on it?
  8. Silambarasan Raman 2018-02-22

    @mrahman@axway.com I have tried to create new module with 7.0.2.GA and getting the same error, Can you guys fix this as much as possible
       [ERROR] :  TiExceptionHandler: (main) [461,461] ----- Titanium Javascript Runtime Error -----
       [ERROR] :  TiExceptionHandler: (main) [0,461] - In ti.resizeable/bootstrap.js:20,45
       [ERROR] :  TiExceptionHandler: (main) [0,461] - Message: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined
       [ERROR] :  TiExceptionHandler: (main) [0,461] - Source: 	var invocationAPIs = module.invocationAPIs = [];
       [DEBUG] :  OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
       [DEBUG] :  Atlas: Validating map...
       [ERROR] :  V8Exception: Exception occurred at ti.resizeable/bootstrap.js:20: Uncaught TypeError: Cannot set property 'invocationAPIs' of undefined
       
       
  9. Rainer Schleevoigt 2019-10-02

    I have the same issue with SDK 8.0.1.GA and a patch of ti.map. After require('ti.map') I see on console:
       
       [ERROR] :  TiExceptionHandler: (main) [133,363] ti.map/bootstrap.js:20
       [ERROR] :  TiExceptionHandler: 	var invocationAPIs = module.invocationAPIs = [];
       [ERROR] :  TiExceptionHandler:                                             ^
       [ERROR] :  TiExceptionHandler: TypeError: Cannot set property 'invocationAPIs' of undefined
       [ERROR] :  TiExceptionHandler:     at Object.moduleBootstrap [as bootstrap] (ti.map/bootstrap.js:20:45)
       [ERROR] :  TiExceptionHandler:     at Module.loadExternalModule (ti:/module.js:199:31)
       [ERROR] :  TiExceptionHandler:     at Module.loadCoreModule (ti:/module.js:329:16)
       [ERROR] :  TiExceptionHandler:     at Module.require (ti:/module.js:244:16)
       
  10. Rainer Schleevoigt 2019-10-02

    Unpatched version works fine. In MapModule.java I have only added some constants … And I guess the modifications in proxies don't disturb the calling of require('ti.map').
  11. grebulon 2019-11-06

    I also have this problem with ti.identity which I modified a little. The original version builds just fine, but if I change something, it breaks the same way as Reiner described.

JSON Source