Menu

TypeError: Bad argument ar2

2016-01-15
2016-01-15
  • Steven Sabo

    Steven Sabo - 2016-01-15

    Hi,

    I tried to post this in the bugs tab but I didn't have ticket creation privliges.

    I'm trying to do a simple combined image from a set of three images. This process has worked in the past without trouble but today is returning an error:

    Error.runtimeError(19, "ar2"); // Bad Argument

    Posting my log below.

    Log File: C:\Users\SteveSabo\AppData\Roaming\xtools\ContactSheetX.log
    2016-01-15T11:16:57 - Begin Processing
    2016-01-15T11:16:57 - Message: Settings for CSX
    appName: Adobe Photoshop
    _appVersion: 16.1.1
    _fileNamingFormat: true
    _formatPanel: true
    _os: Windows/64 10.0
    _outputPad: 4
    _outputStart: 2
    _pagePad: 2
    _pageStart: 2
    _revision: $Revision: 1.140 $
    _saveDocumentType: SaveDocumentType.JPEG
    _saveOpts: [JPEGSaveOptions]
    _version: v2.1.1
    accumulateKeywords: true
    acrossFirst: true
    alphaLayerPinRegister: false
    alternateMargins: false
    autoFill: false
    autoscaleCaptions: true
    autospaceFactor: 1
    background: Black
    bestFit: false
    bottomMargin: 0
    bridgeEnabled: true
    capAlignment: Center
    capVAlignment: Bottom
    caption: false
    captionFilename: false
    captionFormat: %f.%e
    captionStyle: None
    colorProfile: Default
    columnCount: 3
    csiiMode: false
    dateFormat: %Y-%m-%d
    docHeight: 775
    docUnits: Pixl
    docWidth: 1550
    embedSmartObjects: true
    enableTextSubstitution: true
    exiftool: exiftool
    fileNameFormat: Hudson-#
    fileSaveType: jpg
    fixMaskPhantomPixels: true
    flatten: true
    flattenCells: false
    folder: C:\Users\SteveSabo\Desktop\Ben Popup Script Setup\Hudson
    font: ArialMT
    fontColor: Foreground
    fontSize: 12
    forceRecording: true
    fromDescriptor: [function]
    gpsFormat: %d° %d' %.2f"
    halign: Center
    hiperfMode: 1
    horizontal: 5
    hp2submode: thumbnail
    hp3submode: PreviewImage
    imageSource: Bridge
    jpgConvertToSRGB: false
    jpgEmbedColorProfile: false
    jpgFormat: Standard
    jpgQuality: 8
    keepOpen: false
    lastPanel: Source
    leftMargin: 0
    logEnabled: true
    marginsEnabled: false
    metadataSubstitution: true
    mode: RGB
    nextFile: true
    nextPage: true
    noExtensions: false
    noUI: false
    outputFolder: C:\Users\SteveSabo\Desktop\Ben Popup Script Setup\Hudson
    outputFormat: jpg
    outputPrefix: sheet

    overlayCaption: false
    postProcessAction:
    rationalize: [function]
    recurse: false
    resUnits: PpIn
    resolution: 300
    rightMargin: 0
    rotate: CW
    rowCount: 1
    saveForWeb: false
    saveSheet: true
    spacingUnits: px
    spanFolders: false
    splitCSXLayerOnFlatten: false
    squareCell: false
    tabbed: true
    templateFile: CSXTemplate-Default.psd
    thumbStyle: None
    toDescriptor: [function]
    toString: [function]
    topMargin: 0
    typename: ContactSheetConfig
    uiConfirmBridgeForMetadata: uiModeOnly
    uiX: 568
    uiY: 455
    useAutoSpacing: true
    valign: Middle
    vertical: 5
    watermarkMode: false
    xpSort: false
    2016-01-15T11:16:57 - Rationalizing options
    2016-01-15T11:16:57 - Options:
    Message: Settings for CSX
    appName: Adobe Photoshop
    _appVersion: 16.1.1
    _colorProfileName: undefined
    _fileNamingFormat: true
    _formatPanel: true
    _height: 775
    _os: Windows/64 10.0
    _outputPad: 4
    _outputStart: 2
    _pagePad: 2
    _pageStart: 2
    _revision: $Revision: 1.140 $
    _saveDocumentType: SaveDocumentType.JPEG
    _saveOpts: [JPEGSaveOptions]
    _version: v2.1.1
    _width: 1550
    accumulateKeywords: true
    acrossFirst: true
    alphaLayerPinRegister: false
    alternateMargins: false
    autoFill: false
    autoscaleCaptions: true
    autospaceFactor: 1
    background: Black
    bestFit: false
    bottomMargin: 0
    bridgeEnabled: true
    capAlignment: Center
    capVAlignment: Bottom
    caption: false
    captionFilename: false
    captionFormat: %f.%e
    captionStyle: None
    colorProfile: Default
    columnCount: 3
    csiiMode: false
    dateFormat: %Y-%m-%d
    docHeight: 775
    docUnits: Pixl
    docWidth: 1550
    embedSmartObjects: true
    enableTextSubstitution: true
    exiftool: exiftool
    fileNameFormat: Hudson-#
    fileSaveType: jpg
    fixMaskPhantomPixels: true
    flatten: true
    flattenCells: false
    folder: ~/Desktop/Ben%20Popup%20Script%20Setup/Hudson
    font: ArialMT
    fontColor: Foreground
    fontSize: 12
    fontSizePX: 50
    forceRecording: true
    frameHeight: 775
    frameWidth: 1550
    fromDescriptor: [function]
    gpsFormat: %d° %d' %.2f"
    halign: Center
    hiperfMode: 1
    horizontal: 5
    hp2submode: thumbnail
    hp3submode: PreviewImage
    imageSource: Bridge
    jpgConvertToSRGB: false
    jpgEmbedColorProfile: false
    jpgFormat: FormatOptions.STANDARDBASELINE
    jpgQuality: 8
    keepOpen: false
    lastPanel: Source
    leftMargin: 0
    loadMetadataFromBridge: true
    logEnabled: true
    marginsEnabled: false
    metadataSubstitution: true
    mode: NewDocumentMode.RGB
    nextFile: true
    nextPage: true
    noExtensions: false
    noUI: false
    outputFolder: ~/Desktop/Ben%20Popup%20Script%20Setup/Hudson
    outputFormat: jpg
    outputPrefix: sheet

    overlayCaption: false
    postProcessAction:
    rationalize: [function]
    recurse: false
    resUnits: PpIn
    resolution: 300
    rightMargin: 0
    rotate: CW
    rowCount: 1
    saveForWeb: false
    saveSheet: true
    spacingUnits: px
    spanFolders: false
    splitCSXLayerOnFlatten: false
    squareCell: false
    tabbed: true
    templateFile: /c/Program%20Files/Adobe/Adobe%20Photoshop%20CC%202015/Presets/Scripts/csx/templates/CSXTemplate-Default.psd
    thumbStyle: None
    toDescriptor: [function]
    toString: [function]
    topMargin: 0
    typename: ContactSheetConfig
    uiConfirmBridgeForMetadata: uiModeOnly
    uiX: 568
    uiY: 455
    useAutoSpacing: true
    valign: Middle
    vertical: 5
    watermarkMode: 0
    xpSort: false
    2016-01-15T11:16:58 - Creating sheet 2 with files:
    //CVSERVER/DataLibrary/EHS_Support_Hudson/SurveyData/Benthic_Assessment/Images/SPI/Hudson_SPI_Analysis/Thumbs/Hudson-GI-02-A_Thumb.jpg
    //CVSERVER/DataLibrary/EHS_Support_Hudson/SurveyData/Benthic_Assessment/Images/SPI/Hudson_SPI_Analysis/Thumbs/Hudson-GI-02-B_Thumb.jpg
    //CVSERVER/DataLibrary/EHS_Support_Hudson/SurveyData/Benthic_Assessment/Images/SPI/Hudson_SPI_Analysis/Thumbs/Hudson-GI-02-C_Thumb.jpg
    2016-01-15T11:16:58 - Processing: \CVSERVER\DataLibrary\EHS_Support_Hudson\SurveyData\Benthic_Assessment\Images\SPI\Hudson_SPI_Analysis\Thumbs\Hudson-GI-02-A_Thumb.jpg
    2016-01-15T11:16:58 - Inserting image Hudson-GI-02-A_Thumb.jpg at 5,5,511,770
    2016-01-15T11:16:59 -
    ==============Exception==============
    Message: Bad argument ar2
    File: /c/Program Files/Adobe/Adobe Photoshop CC 2015/Presets/Scripts/CSX-2_1_1.jsx
    Line: 8726
    Error Name: TypeError
    Error Number: 19
    Line: (8717) Error.runtimeError(19, "ar1"); // Bad Argument
    Line: (8718) }
    Line: (8719) }
    Line: (8720) if (ar2 != undefined) {
    Line: (8721) if (ar2 instanceof Array) {
    Line: (8722) for (var i = 0; i < ar2.length; i++) {
    Line: (8723) obj[ar2[i]] = 1;
    Line: (8724) }
    Line: (8725) } else {
    Line: (8726) >> Error.runtimeError(19, "ar2"); // Bad Argument
    Line: (8727) }
    Line: (8728) }
    Line: (8729) for (var idx in obj) {
    Line: (8730) if (typeof (obj[idx]) != "function") {
    Line: (8731) ar.push(idx);
    Line: (8732) }
    Line: (8733) }
    Line: (8734) ar.sort();
    Line: (8735) return ar;
    Line: (8736) }

    [CSX-2_1_1.jsx]
    main()
    _main()
    runProcess([Object:ContactSheetConfig])
    process([Object:ContactSheetConfig],undefined)
    process([Object:ContactSheetConfig])
    handleError([Error:TypeError: Bad argument ar2],"Error in processing:"...)
    logException([Error:TypeError: Bad argument ar2])
    exceptionMessage([Error:TypeError: Bad argument ar2])

    Log File:C:\Users\Sabo\AppData\Roaming\xtools\ContactSheetX.log
    ==============End Exception==============

    2016-01-15T11:44:38 - CSX Shutting down.

     
    • xbytor

      xbytor - 2016-01-15

      Got it. Will take a look at this later today or over the weekend.

      -X

       
  • Steven Sabo

    Steven Sabo - 2016-01-15

    As an aside. I can sidestep this error if I choose basic mode instead of HP Mode 1.

     
  • xbytor

    xbytor - 2016-01-15

    If that's the case, I may have already fixed this. Send your email address to xbytor@gmail.com and I'll send you the latest rev which fixes a few bugs.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.