Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21089

Fix usage of trackFile in video conversions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10
    • Component/s: Image Management

      Description

      Several pieces of code do:

      Framework.trackFile(tempFile, this);
      

      where this is actually a temporary helper object whose lifetime is shorter than the expected lifetime of the temporary file.

      This causes randomly disappearing files like:

      /opt/.../target/nxruntime-main-4259040025925804819.tmp/tmp/DELTA1165702061846202130-concat.mp4: No such file or directory
      	at org.nuxeo.ecm.platform.video.VideoHelper.getVideoInfo(VideoHelper.java:254)
      	at org.nuxeo.ecm.platform.video.tools.TestVideoToolsOperations.testConcatWithPathTool(TestVideoToolsOperations.java:166)
      Caused by: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: ffprobe #{inFilePath}
      /opt/.../target/nxruntime-main-4259040025925804819.tmp/tmp/DELTA1165702061846202130-concat.mp4: No such file or directory
      	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62)
      	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:83)
      	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173)
      	at org.nuxeo.ecm.platform.video.VideoHelper.getVideoInfo(VideoHelper.java:247)
      	... 50 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: