Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24256

Android: openPhotoGallery is not working at all on SDK 6.0.0.GA,6.0.1.GA

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.0
    • Fix Version/s: Release 6.0.2
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2017 Sprint 01 SDK

      Description

      I can't get openPhotoGallery to work on Android since upgrading to 6.0.0.

      The gallery opens fine, but when an image is selected, and I try to read the blob, I'm getting the following error:

      [WARN] :   W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
      [WARN] :   W/System.err:    at java.io.File.fixSlashes(File.java:183)
      [WARN] :   W/System.err:    at java.io.File.<init>(File.java:130)
      [WARN] :   W/System.err:    at org.appcelerator.titanium.io.TitaniumBlob.getFile(TitaniumBlob.java:77)
      [WARN] :   W/System.err:    at org.appcelerator.titanium.TiBlob.getLength(TiBlob.java:364)
      [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
      [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)
      [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)
      [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:70)
      [WARN] :   W/System.err:    at android.os.Handler.handleCallback(Handler.java:739)
      [WARN] :   W/System.err:    at android.os.Handler.dispatchMessage(Handler.java:95)
      [WARN] :   W/System.err:    at android.os.Looper.loop(Looper.java:148)
      [WARN] :   W/System.err:    at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)
      [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
      [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xdc79b4e0, error=EGL_SUCCESS
      [ERROR] :  TiExceptionHandler: (main) [20134,28149] ----- Titanium Javascript Runtime Error -----
      [ERROR] :  TiExceptionHandler: (main) [0,28149] - In undefined:230,23
      [ERROR] :  TiExceptionHandler: (main) [0,28149] - Message: Uncaught Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
      [ERROR] :  TiExceptionHandler: (main) [1,28150] - Source:       if (me.attachedImage.length > 5242880) {
      [WARN] :   EGL_emulation: eglSurfaceAttrib not implemented
      [WARN] :   OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe8e3e9a0, error=EGL_SUCCESS
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                dfoxinator David Fox
                Reviewer:
                Maggie Chen
                Tester:
                Samir Mohammed
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10369
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code