{ "id": "170424", "key": "TIMOB-25546", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-28T20:08:28.000+0000", "created": "2017-11-22T13:57:46.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "parity", "sdk-7.0.0", "titanium", "titanium-cli" ], "versions": [], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2017-11-30T00:32:10.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": "Steps to reproduce:\r\n\r\n1. Create a new classic app\r\n2. Only have this code in the app.js file\r\n3. Build to Android\r\n\r\n{code:java}\r\nTi.API.log(\"App Start\");\r\nvar testVar = {testObject: \"testvalue\"};\r\n \r\nvar testData = testVar.testObject;\r\nTi.API.log(testVar);\r\nTi.API.log(testData);\r\nfunction testFunction(testVar){\r\n \r\n Ti.API.log(\"TestFunction\");\r\n \r\n Ti.API.log(testVar);\r\n \r\n var newTestVar = {testObject: \"testvalue\"};\r\n var newTestData = newTestVar.testObject;\r\n \r\n Ti.API.log(newTestVar);\r\n Ti.API.log(newTestData);\r\n}\r\ntestFunction(testVar);\r\n{code}\r\n\r\nApp will build and fail with the following log\r\n\r\n{code:java}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [23,23] Titanium 7.0.0 (2017/11/17 15:29 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[INFO] : DatabaseHelper: No value in database for platform key: 'unique_machine_id' returning supplied default ''\r\n[INFO] : DatabaseHelper: No value in database for platform key: 'hardware_machine_id' returning supplied default ''\r\n[WARN] : TiAndroid: (main) [746,769] Application instance no longer available. Unable to get current activity.\r\n[WARN] : TiAndroid: (main) [1,770] Application instance no longer available. Unable to get current activity.\r\n[WARN] : TiAndroid: (main) [4,774] Application instance no longer available. Unable to get current activity.\r\n[INFO] : TiApplication: (main) [17,791] 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] : App Start\r\n{code}\r\n\r\nI have been testing my app on Android and have found some very random bugs in Android, everything works perfectly on iOS.\r\n\r\nThe funny thing is that my app has tons of code, about 250 000 lines, and most of it works, but then randomly at one location when I try to access an object data as in this example it crashes, even though I do it in many other locations, the location it fails is at most likely the highest? point in the code, the point with the most layers of callsbacks functions objects so that might be why.\r\n\r\nI tracked it down to object not being set and objects not being usable, as soon as I access an object data the app crashes....then I ran this test in my app in different location and finally in the alloy.js file, and it crashed there.\r\n\r\nAs I said this fails on a Clean Classic App as well and has been confirmed by Yordan Banev.\r\n\r\nI am not sure if this is something caused by me installing Titanium 7.0.0 Beta, if so how can I remove that and get back to a working environment?\r\n\r\nI have lost 2 days tracking this down..", "attachment": [], "flagged": false, "summary": "Android: Simple Code Crash after installing Titanium SDK 7.0.0 Beta", "creator": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 5 / Android 7\r\nTitanium SDK 7.0.0 (but also all other versions after install)\r\nMac OSX", "comment": { "comments": [ { "id": "431190", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Check http://docs.appcelerator.com/platform/latest/#!/api/Titanium.API-method-log\r\n{{Ti.API.log}} takes two parameters. It works for me if you change it to {{Ti.API.log(\"info\",\"\")}} or use {{console.log()}} or {{Ti.API.info()}}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-22T20:44:15.000+0000", "updated": "2017-11-22T20:44:15.000+0000" }, { "id": "431191", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Crashlog for the example above:\r\n\r\n\r\n{noformat}\r\nBuild fingerprint: 'htc/hiaeuhl_00401/htc_hiaeuhl:7.0/NRD90M/876837.2:user/release-keys'\r\nRevision: '0'\r\nABI: 'arm'\r\npid: 15622, tid: 15622, name: .app >>> com.app <<<\r\nsignal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1\r\nr0 12e42080 r1 000000c3 r2 00000003 r3 ffffff89\r\nr4 00000001 r5 00000000 r6 222f07d1 r7 12e42080\r\nr8 ff91bf40 r9 12e42080 sl 00000000 fp 00000001\r\nip 00000002 sp ff91bea8 lr d580e1d4 pc d580df6c cpsr 800e0010\r\nbacktrace:\r\n#00 pc 00455f6c /data/app/lib/arm/libkroll-v8.so\r\n#01 pc 004561d0 /data/app/lib/arm/libkroll-v8.so\r\n#02 pc 004705c4 /data/app/lib/arm/libkroll-v8.so (_ZNK2v86String9WriteUtf8EPciPii+536)\r\n#03 pc 00387ef1 /data/app/lib/arm/libkroll-v8.so (_ZN8titanium9Utf8ValueC1EN2v85LocalINS1_5ValueEEE+56)\r\n#04 pc 00388d87 /data/app/lib/arm/libkroll-v8.so (_ZN8titanium9APIModule3logERKN2v820FunctionCallbackInfoINS1_5ValueEEE+50)\r\n#05 pc 00481bf4 /data/app/lib/arm/libkroll-v8.so (_ZN2v88internal25FunctionCallbackArguments4CallEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEE+188)\r\n#06 pc 004f2f68 /data/app/lib/arm/libkroll-v8.so\r\n#07 pc 004f3438 /data/app/lib/arm/libkroll-v8.so\r\n#08 pc 004f36c8 /data/app/lib/arm/libkroll-v8.so (_ZN2v88internal21Builtin_HandleApiCallEiPPNS0_6ObjectEPNS0_7IsolateE+44)\r\n#09 pc 00000098 \r\n{noformat}\r\n\r\nwhen using no parameter for Ti.API.log(). It should default to `INFO` ([github|https://github.com/appcelerator/titanium_mobile/blob/a8aceeaeee02ed9c8ea70c835a0e78960e254a55/android/runtime/common/src/java/org/appcelerator/kroll/KrollLogging.java#L96]) and not crash", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-22T20:51:15.000+0000", "updated": "2017-11-22T20:51:15.000+0000" }, { "id": "431379", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/9632", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2017-11-28T13:28:06.000+0000", "updated": "2017-11-28T13:28:06.000+0000" }, { "id": "431396", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merge to get enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-28T18:51:09.000+0000", "updated": "2017-11-28T18:51:09.000+0000" }, { "id": "431503", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.0.0.v20171129100330.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-30T00:32:05.000+0000", "updated": "2017-11-30T00:32:05.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }