Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-6809

Android: V8: Ti.Media.Android.scanMediaFiles - Runtime Error - 'Uncaught Error: Invalid value, expected type Array'

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0.1
    • Component/s: Android
    • Environment:

      SDK: 1.8.0.1.v20111219180133
      Android Runtimes: V8
      Studio: 1.0.7.201112152014
      OS: OS X Lion
      Devices Tested: Android Emulator 2.2, Droid3 2.3.4, Galaxy Nexus 4.0.2

      Description

      Ti.Media.Android.scanMediaFiles in V8 results in type error of: 'Uncaught Error: Invalid value, expected type Array'.

      Tested in V8/Rhino. Only found in V8.

      Steps to Reproduce:

      1. Run ScanTest (attached).
      2. Press 'Do scan'.

      Expected Result:

      URL string should appear at the bottom of the screen.

      Actual Result:

      Runtime Error - 'Uncaught Error: Invalid value, expected type Array'
      Log Attached.

        Issue Links

          Activity

          Hide
          Hieu Pham added a comment - - edited

          The scope of this ticket will be increased to handle all Arrays type. It should not crash when null is passed into a function instead of an Array object.

          Show
          Hieu Pham added a comment - - edited The scope of this ticket will be increased to handle all Arrays type. It should not crash when null is passed into a function instead of an Array object.
          Hide
          Marshall Culpepper added a comment -

          When this is re-resolved, please resolve TIMOB-7330

          Show
          Marshall Culpepper added a comment - When this is re-resolved, please resolve TIMOB-7330
          Hide
          Marshall Culpepper added a comment -

          Reopening for changes to resolve TIMOB-7330

          Show
          Marshall Culpepper added a comment - Reopening for changes to resolve TIMOB-7330
          Hide
          Dustin Hyde added a comment -

          Closing as Fixed.
          SDK: 1.8.1.v20120124200134
          Studio: 1.0.8.201201210622
          OS: Lion
          Devices Tested: Android Emulator 2.2, Droid3 2.3.4, Galaxy Nexus 4.0.2

          Show
          Dustin Hyde added a comment - Closing as Fixed. SDK: 1.8.1.v20120124200134 Studio: 1.0.8.201201210622 OS: Lion Devices Tested: Android Emulator 2.2, Droid3 2.3.4, Galaxy Nexus 4.0.2
          Hide
          Dustin Hyde added a comment -

          Re-opening and closing to add label.

          Show
          Dustin Hyde added a comment - Re-opening and closing to add label.
          Hide
          Dustin Hyde added a comment -

          Opening and closing to add labels.

          Show
          Dustin Hyde added a comment - Opening and closing to add labels.
          Hide
          Dustin Hyde added a comment -

          Opening and closing to change label.

          Show
          Dustin Hyde added a comment - Opening and closing to change label.
          Hide
          Shameer Jan added a comment -
          Show
          Shameer Jan added a comment - Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021

            People

            • Assignee:
              Hieu Pham
              Reporter:
              Dustin Hyde
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development