Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-02-02T13:31:27.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-02, Release 2.0.0, Release 1.8.1
ComponentsAndroid
Labelsmodule_media, parity, qe-testadded
ReporterDustin Hyde
AssigneeHieu Pham
Created2011-12-20T17:52:58.000+0000
Updated2013-12-10T06:06:27.000+0000

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.

Attachments

FileDateSize
device-2011-12-20-171301.png2011-12-20T17:52:58.000+000035545
log.txt2011-12-20T17:52:58.000+0000965
ScanTest.zip2011-12-20T17:52:58.000+00002324478

Comments

  1. Hieu Pham 2012-01-17

    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.
  2. Marshall Culpepper 2012-01-24

    When this is re-resolved, please resolve TIMOB-7330
  3. Marshall Culpepper 2012-01-24

    Reopening for changes to resolve TIMOB-7330
  4. Dustin Hyde 2012-01-25

    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
  5. Dustin Hyde 2012-01-25

    Re-opening and closing to add label.
  6. Dustin Hyde 2012-02-02

    Opening and closing to add labels.
  7. Dustin Hyde 2012-02-02

    Opening and closing to change label.
  8. Shameer Jan 2013-12-10

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021

JSON Source