{ "id": "170628", "key": "AC-5454", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-03-29T15:03:00.000+0000", "created": "2017-12-14T22:24:28.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "56218", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167797", "key": "TIMOB-24707", "fields": { "summary": "Android: Add video support to Ti.Media.openPhotoGallery()", "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": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-01T20:29:29.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": [], "description": "I'm getting the following error when attempting to resize an image picked from the gallery. The image is stored in google drive. Some images work fine, while others do not(this image seems to have been on the drive for a while). If I don't resize and assign it to an ImageView it works just fine.\r\n\r\n12-08 10:29:52.843 6193-6193/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at java.io.File.fixSlashes(File.java:183)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at java.io.File.(File.java:130)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.io.TitaniumBlob.getNativeFile(TitaniumBlob.java:138)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.getNativePath(TiBlob.java:534)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.getImage(TiBlob.java:586)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.titanium.TiBlob.imageAsResized(TiBlob.java:722)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:70)\r\n12-08 10:29:52.844 6193-6193/? W/System.err: at android.os.Handler.handleCallback(Handler.java:739)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at android.os.Looper.loop(Looper.java:148)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n12-08 10:29:52.845 6193-6193/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)", "attachment": [], "flagged": false, "summary": "Android: openPhotoGallery is not working on SDK 6.3.0.GA", "creator": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TI SDK 6.3.0GA\r\nAndroid Nexus 6 7.1.1", "comment": { "comments": [ { "id": "432192", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, It will be helpful to identify the issue if you provide us a sample code that reproduces the issue. Alos, A list of stapes to follow for successful regeneration. I have tested basic photo gallery code and it is working. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-15T02:11:34.000+0000", "updated": "2017-12-15T22:23:40.000+0000" }, { "id": "432205", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jquick] This sounds related to a discussion we had a few weeks back. Maybe Android 7?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-15T10:05:55.000+0000", "updated": "2017-12-15T10:05:55.000+0000" }, { "id": "432304", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The PR for [TIMOB-24707] will fix this issue. (I saw this same issue and fixed it.)\r\nIt's currently scheduled for Titanium 7.1.0.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-18T18:55:19.000+0000", "updated": "2017-12-18T18:55:19.000+0000" }, { "id": "432438", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-24707 pertains to video files, is the fix universal for images?", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-20T16:02:59.000+0000", "updated": "2017-12-20T16:02:59.000+0000" }, { "id": "432450", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jceaser],\r\n\r\nYes, [TIMOB-24707] fixes this issue for both photos and videos. It required a slight refactoring of the code and this issue ended up getting fixed along the way. :)", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-20T18:51:57.000+0000", "updated": "2017-12-20T18:51:57.000+0000" }, { "id": "436088", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closing this ticket as a duplicate, as another ticket (TIMOB-24707) will fix it. I'd recommend watching that ticket if you want to keep track", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-29T15:03:00.000+0000", "updated": "2018-03-29T15:03:00.000+0000" }, { "id": "438045", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Testing the 7.3.0.v20180530072516 where TIMOB-24707 is already merged I still have this problem described here:\r\nWhen opening the photo gallery I can't select all images without crashing the app. Especially selecting images from other apps (e.g. images out of the WhatsApp folder) it most of the times ends up in a crash. Normally all my images are local, so I can't really tell why the crashes are happening but selecting \"newer\" images works most of the time.\r\n\r\nHTC A9, Android 7, Ti SDK 7.3.0.v20180530072516\r\nPermissions are granted, I can select many images but not all", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-31T20:59:38.000+0000", "updated": "2018-05-31T20:59:38.000+0000" }, { "id": "438059", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~michael], would you mind posting a stacktrace please?\r\n\r\nI suspect they're cloud based photos without direct file access. I switched most of the code over to use content providers (ie: to not assume direct file access), but perhaps you've found a hole somewhere. (I've kept some of the old direct file access behavior for things proven to work during testing and to maintain some level of backward compatibility, but if it's flawed then we'll have no choice but to get rid of it.)", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-01T17:59:51.000+0000", "updated": "2018-06-01T17:59:51.000+0000" }, { "id": "438061", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still trying to get a proper log, but it looks like its only:\r\n\r\n\r\n{noformat}\r\nDocumentsActivity: Failed to restore stack for package: com.miga.testgallery because of error: java.io.FileNotFoundException: Failed to find matching root for null\r\nInputEventReceiver: Looper::removeFd(364) is failed, result(0), input channel 'a9e48dc Starting com.miga.testgallery (client)'\r\nWindowManager: Failed looking up window\r\nWindowManager: java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8c8594f does not exist\r\nWindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9321)\r\nWindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9312)\r\nWindowManager: at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2334)\r\nWindowManager: at com.android.server.wm.Session.remove(Session.java:193)\r\nWindowManager: at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3437)\r\nWindowManager: at android.view.ViewRootImpl.doDie(ViewRootImpl.java:6117)\r\nWindowManager: at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3795)\r\nWindowManager: at android.os.Handler.dispatchMessage(Handler.java:102)\r\nWindowManager: at android.os.Looper.loop(Looper.java:173)\r\nWindowManager: at android.os.HandlerThread.run(HandlerThread.java:61)\r\nWindowManager: at com.android.server.ServiceThread.run(ServiceThread.java:46)\r\n{noformat}\r\n\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-01T20:11:35.000+0000", "updated": "2018-06-01T20:11:35.000+0000" }, { "id": "438062", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Second try with {{}}\r\n\r\nThis is the whole part before the log from the posting above:\r\n{noformat}\r\n\r\nI/TiApplication(11284): (main) [0,0] checkpoint, app created.\r\nI/TiApplication(11284): (main) [108,108] Titanium 7.3.0 (2018/05/30 07:25 undefined)\r\nI/MultiDex(11284): VM with version 2.1.0 has multidex support\r\nI/MultiDex(11284): Installing application\r\nI/MultiDex(11284): VM has multidex support, MultiDex support library is disabled.\r\nE/TiApplication(11284): (main) [2424,2532] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [6,2538] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [66,2604] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [24,2628] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [8,2636] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [2,2638] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [6,2644] No valid root or current activity found for application instance\r\nW/TiAndroid(11284): (main) [4,2648] Application instance no longer available. Unable to get current activity.\r\nE/TiApplication(11284): (main) [1,2649] No valid root or current activity found for application instance\r\nW/TiAndroid(11284): (main) [1,2650] Application instance no longer available. Unable to get current activity.\r\nW/TiAndroid(11284): (main) [1,2651] Application instance no longer available. Unable to get current activity.\r\nE/TiApplication(11284): (main) [3,2654] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [9,2663] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [3,2666] No valid root or current activity found for application instance\r\nE/TiApplication(11284): (main) [3,2669] No valid root or current activity found for application instance\r\nI/TiApplication(11284): (main) [7,2676] Titanium Javascript runtime: v8\r\nW/TiBaseActivity(11284): (main) [23,2699] Runtime has been disposed or app has been killed. Finishing.\r\nW/art(11284): 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\nI/TiRootActivity(11284): (main) [0,0] checkpoint, on root activity create, savedInstanceState: Bundle[{android:viewHierarchyState=Bundle[mParcelledData.dataSize=272], android:fragments=android.app.FragmentManagerState@3a09b45}]\r\nI/TiRootActivity(11284): (main) [0,0] checkpoint, on root activity resume. activity = com.miga.testgallery.Test_galleryActivity@9cd47cb\r\nD/Window(11284): Checkpoint: postWindowCreated()\r\nI/Adreno(11284): QUALCOMM build : 6933d31, I73c5708217\r\nI/Adreno(11284): Build Date : 12/28/16\r\nI/Adreno(11284): OpenGL ES Shader Compiler Version: XE031.09.00.04\r\nI/Adreno(11284): Local Branch : \r\nI/Adreno(11284): Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\nI/Adreno(11284): Remote Branch : NONE\r\nI/Adreno(11284): Reconstruct Branch : NOTHING\r\n\r\n{noformat}\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-01T20:29:29.000+0000", "updated": "2018-06-01T20:29:29.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }