{ "id": "169660", "key": "TIMOB-25206", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-30T17:54:13.000+0000", "created": "2017-08-29T13:30:32.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [ { "id": "55869", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "152166", "key": "TIMOB-20037", "fields": { "summary": "Wrong Ti.Android.currentActivity in `open` handler", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-30T18:47:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description\r\n\r\nWhen attempting to use ti.barcode on 6.2.0 the app will crash with the below, the same code works fine in 6.1.2.GA\r\n\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [18084,18184] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,18184] - In /app.js:92,13\r\n[ERROR] TiExceptionHandler: (main) [1,18185] - Message: Uncaught No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-1/base.apk)\r\n[ERROR] TiExceptionHandler: (main) [0,18185] - Source: Barcode.capture({\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bf48a50\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@3237449\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@1ffb7c\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@a260c05\r\n[ERROR] V8Exception: Exception occurred at /app.js:92: Uncaught No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-1/base.apk)\r\n[ERROR] V8Exception: No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-1/base.apk)\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Download ti.barcode from https://github.com/appcelerator-modules/ti.barcode/releases\r\n# Grab the code and tiapp settings from https://gist.github.com/ewanharris/f524cf9758b0b2fac540c60c4f4acd1e\r\n# Build to a device \r\n# Tap get perms\r\n# Tap scan code or scan image from gallery\r\n\r\nh5.Actual\r\n\r\nCrashes with the above error\r\n\r\nh5.Expected\r\n\r\nNo crash\r\n\r\n{code: title=Complete log from startup}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] TiApplication: (main) [37,37] Titanium 6.2.0 (2017/08/28 18:04 undefined)\r\n[INFO] MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] MultiDex: install\r\n[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[WARN] TiAndroid: (main) [283,320] Application instance no longer available. Unable to get current activity.\r\n[WARN] TiAndroid: (main) [1,321] Application instance no longer available. Unable to get current activity.\r\n[WARN] TiAndroid: (main) [1,322] Application instance no longer available. Unable to get current activity.\r\n[INFO] TiApplication: (main) [26,348] Titanium Javascript runtime: v8\r\n[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\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.testing.TestinappActivity@f3601a4\r\n[DEBUG] AppTracker: App Event: start\r\n[DEBUG] AppTracker: App Event: stop\r\n[WARN] TiUIScrollView: (main) [97,97] Scroll direction could not be determined based on the provided view properties. Default VERTICAL scroll direction being used. Use the 'scrollType' property to explicitly set the scrolling direction. [TRACE] BoostFramework: mAcquireFunc method = public int com.qualcomm.qti.Performance.perfLockAcquire(int,int[])\r\n[TRACE] BoostFramework: mReleaseFunc method = public int com.qualcomm.qti.Performance.perfLockRelease()\r\n[TRACE] BoostFramework: mAcquireTouchFunc method = public int com.qualcomm.qti.Performance.perfLockAcquireTouch(android.view.MotionEvent,android.util.DisplayMetrics,int,int[])\r\n[TRACE] BoostFramework: mIOPStart method = public int com.qualcomm.qti.Performance.perfIOPrefetchStart(int,java.lang.String)\r\n[TRACE] BoostFramework: mIOPStop method = public int com.qualcomm.qti.Performance.perfIOPrefetchStop()\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@2b0a8fb\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5d69d18\r\n[DEBUG] Window: Checkpoint: postWindowCreated()\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@33548bb\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@57b21d8\r\n[DEBUG] AppTracker: App Event: start\r\n[DEBUG] AppTracker: App Event: stop\r\n[INFO] Adreno: QUALCOMM build : 853a1ff, I9c435c2712\r\n[INFO] Adreno: Build Date : 01/10/17\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch :\r\n[INFO] Adreno: Remote Branch :\r\n[INFO] Adreno: Reconstruct Branch :\r\n[INFO] OpenGLRenderer: Initialized EGL, version 1.4\r\n[DEBUG] OpenGLRenderer: Swap behavior 1\r\n[DEBUG] AppTracker: App Event: start\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@668204d\r\n[WARN] W/System.err: java.lang.NoSuchMethodError: No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n[WARN] W/System.err: at ti.barcode.BarcodeModule.capture(BarcodeModule.java:309)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)\r\n[WARN] W/System.err: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:921)\r\n[WARN] W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1144)\r\n[WARN] W/System.err: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:363)\r\n[WARN] W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98)\r\n[WARN] W/System.err: at android.os.Looper.loop(Looper.java:154)\r\n[WARN] W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6290)\r\n[WARN] W/System.err: at java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n[ERROR] TiExceptionHandler: (main) [3948,4045] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,4045] - In /app.js:92,13\r\n[ERROR] TiExceptionHandler: (main) [0,4045] - Message: Uncaught No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n[ERROR] TiExceptionHandler: (main) [0,4045] - Source: Barcode.capture({\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@241dc26\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@2828067\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5df94b2\r\n[TRACE] BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@32cbc03\r\n[ERROR] V8Exception: Exception occurred at /app.js:92: Uncaught No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n[ERROR] V8Exception: No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n[WARN] TiVerify: (Timer-0) [955,5000] Verifying module licenses...\r\n[INFO] DpmTcmClient: RegisterTcmMonitor from: org.apache.http.impl.conn.TcmIdleTimerMonitor\r\n[DEBUG] NetworkSecurityConfig: No Network Security Config specified, using platform default\r\n[INFO] TiVerify: (Timer-0) [545,5545] Succesfully verified module licenses\r\n[DEBUG] AppTracker: App Event: stop\r\n-- End application log -------------------------------------------------------\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Unable to use some native modules with 6.2.0", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.2.0.v20170828180251\r\nOneplus 3 7.1.1\r\nti.barcode 3.0.0. 3.1.0", "closedSprints": [ { "id": 944, "state": "closed", "name": "2017 Sprint 18 SDK", "startDate": "2017-08-27T21:13:39.311Z", "endDate": "2017-09-10T21:13:00.000Z", "completeDate": "2017-09-10T21:24:16.435Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427353", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Trying to run some more tests on other modules to determine if this is a widespread issue or limited to ti.barcode", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-29T13:41:01.000+0000", "updated": "2017-08-29T13:41:01.000+0000" }, { "id": "427354", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "ti.map (using the example) and hyperloop (using hyperloop-examples) run fine", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-29T14:01:31.000+0000", "updated": "2017-08-29T14:02:07.000+0000" }, { "id": "427390", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey [~michael], since you made the latest Android PR, would you mind taking a look here? I guess the issue should be around\r\n{code}\r\n[ERROR] V8Exception: Exception occurred at /app.js:92: Uncaught No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n[ERROR] V8Exception: No static method getAppCurrentActivity()Landroid/app/Activity; in class Lorg/appcelerator/titanium/TiApplication; or its super classes (declaration of 'org.appcelerator.titanium.TiApplication' appears in /data/app/com.testing-2/base.apk)\r\n{code}\r\n\r\n[~eharris] Do you see the same crash with 3.0.0 and 3.1.0? Your environment suggests that, but then the issue wouldn't be the most recent module update.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-30T06:40:49.000+0000", "updated": "2017-08-30T06:41:58.000+0000" }, { "id": "427392", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sure I'll have a look at this later today!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-30T07:27:09.000+0000", "updated": "2017-08-30T07:27:09.000+0000" }, { "id": "427395", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel] Should have put it in the description as well as environment, but yeah it happens in both 3.0.0 and 3.1.0, so I doubt it's any change made by [~michael]. The modules work fine in 6.1.2 so this something caused by the SDK", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-30T08:42:35.000+0000", "updated": "2017-08-30T08:42:35.000+0000" }, { "id": "427396", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "And it also happens with other modules? Maybe we removed an API in the Core that was used by module developers, causing this issue. We should mark this for 6.2.0.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-30T08:44:46.000+0000", "updated": "2017-08-30T08:44:46.000+0000" }, { "id": "427397", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[*Busted!*|https://github.com/appcelerator/titanium_mobile/commit/763ed6ae31e910cfd79064dae722ea82b64b4b57#diff-b25efddb6838e12b7428809a3536596bR330] Caused by TIMOB-20037, so reopening it.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-08-30T08:47:48.000+0000", "updated": "2017-08-30T08:47:48.000+0000" }, { "id": "427400", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel] I tried ti.map and Hyperloop which both make use of the same API, they do not see the issue, that's all I managed to check out yesterday.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-30T08:51:55.000+0000", "updated": "2017-08-30T08:51:55.000+0000" }, { "id": "427404", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9371", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-30T11:12:55.000+0000", "updated": "2017-08-30T11:12:55.000+0000" }, { "id": "427406", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9372", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-30T11:16:34.000+0000", "updated": "2017-08-30T11:16:34.000+0000" }, { "id": "427429", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR. PR merged.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-30T17:52:07.000+0000", "updated": "2017-08-30T17:52:07.000+0000" }, { "id": "427430", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR. PR merged. Changes seen in SDKs:\r\n6.2.0.v20170830105311\r\n7.0.0.v20170830105203", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-30T17:54:13.000+0000", "updated": "2017-08-30T18:34:12.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }