{ "id": "127461", "key": "TIMOB-16598", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-03-09T18:09:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "geolocation" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:23.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "If you reference Ti.Geolocation somewhere in your code BUT don't use any of the methods/properties, the geolocation.res.zip will not be included in the build and the app may hang on splash screen and return the following exception in the trace:\r\n\r\n[ERROR] : JNIUtil: Couldn't find Java class: ti/modules/titanium/geolocation/GeolocationModule\r\n[WARN] : W/System.err: java.lang.NoClassDefFoundError: ti/modules/titanium/geolocation/GeolocationModule\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:159)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:289)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:185)\r\n[WARN] : W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] : W/System.err: \tat android.os.Looper.loop(Looper.java:137)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n[WARN] : W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class \"ti.modules.titanium.geolocation.GeolocationModule\" on path: /data/app/com.drizly.DrilzyDev6-1.apk\r\n[WARN] : W/System.err: \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)\r\n[WARN] : W/System.err: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:501)\r\n[WARN] : W/System.err: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:461)\r\n[WARN] : W/System.err: \t... 7 more\r\n[INFO] : libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 9824 (KrollRuntimeThr)\r\n", "attachment": [], "flagged": false, "summary": "Android: Application may crash referencing Ti.Geolocation", "creator": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOSX 10.9.1\r\nSDK 3.2.1 GA\r\nAndroid Samsung Galaxy S4 Mini", "comment": { "comments": [ { "id": "296246", "author": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Easy way to reproduce\n\n{code}\nvar coder = Ti.Geolocation;\n\ncoder.forwardGeocoder(someAddress, function(response) {\n\tconsole.log(\"coding\", response);\n});\n{code}\n\nHere the compiler will not detect usage of forwardGeocoder() and the lib will not be included!", "updateAuthor": { "name": "chrilith", "key": "chrilith", "displayName": "Chris Apers", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-09T18:59:31.000+0000", "updated": "2014-03-09T18:59:31.000+0000" }, { "id": "296263", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue easily with the provided test case. Same test case works fine with iOS platform.\r\n\r\n{code}\r\nvar coder = Ti.Geolocation;\r\n \r\ncoder.forwardGeocoder(\"San Francisco, USA\", function(response) {\r\n console.log(\"coding\", response);\r\n});\r\n{code}\r\n\r\nStack trace:\r\n[WARN] : W/System.err: java.lang.NoClassDefFoundError: ti/modules/titanium/geolocation/GeolocationModule\r\n[ERROR] : JNIUtil: Couldn't find Java class: ti/modules/titanium/geolocation/GeolocationModule\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:159)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:289)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:185)\r\n[WARN] : W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] : W/System.err: \tat android.os.Looper.loop(Looper.java:137)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n[WARN] : W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class \"ti.modules.titanium.geolocation.GeolocationModule\" on path: /data/app/com.appcelerator.testproject-1.apk\r\n[WARN] : W/System.err: \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)\r\n[WARN] : W/System.err: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:501)\r\n[WARN] : W/System.err: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:461)\r\n[WARN] : W/System.err: \t... 7 more", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T06:24:44.000+0000", "updated": "2014-03-10T06:24:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }