Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1789

Script error causes Picard to crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • 2.3.1
    • Scripting
    • None
    • Windows 7

      When a script encounters a runtime error (during track processing) it will cause Picard to crash.  For example, on Windows "%-d" is an invalid argument to $datetime().  If you try to enter this while entering the script, it will be caught and you will not be allowed to save the script.  However if the argument is set dynamically during track processing it will cause Picard to crash.

      Steps to cause the crash (on Windows) are as follows:

      1. Enter and save the script below (leave the script turned off).
      2. Load an album with 3 or more tracks into the right-hand pane.  For example, "02e20427-3a65-4876-acd7-9c9e4a6fb2a0".
      3. Right-click on the release or one of the tracks and manually run the script you entered in Step 1.
      4. Picard crashes.
      $noop( Script to test Picard crash on runtime error during track processing )
      
      $set(argument,$if($gt(%totaltracks%,2),\%-d,))
      $set(crashtest,$datetime(%argument%))
      

            Unassigned Unassigned
            rdswift Bob Swift
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package