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

Catch ArithmeticException in video converter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2021, 2023.0
    • Fix Version/s: 2021.x, 2023.x, 2025.x
    • Component/s: DAM

      Description

      In BaseVideoConversionConverter it sometimes happens that dimensions are zero. 

      Can alternate values be used in that case, or can the ArithmeticException be caught and handled?

       nuxeo-lts/modules/platform/video/nuxeo-platform-video/src/main/java/org/nuxeo/ecm/platform/video/convert/BaseVideoConversionConverter.java at 2023 · nuxeo/nuxeo-lts (github.com)

       

      2024-09-06T07:51:54,088 ERROR [AbstractWork] Exception during work: VideoConversionWork(e4dc3817-298f-406e-8430-e46a6a6b8ad2, , Progress(?%, ?/0), Transcoding)
      java.lang.ArithmeticException: / by zero
          at org.nuxeo.ecm.platform.video.convert.BaseVideoConversionConverter.getCmdStringParameters(BaseVideoConversionConverter.java:105) ~[nuxeo-platform-video-2021.36.9.jar:?]
          at org.nuxeo.ecm.platform.convert.plugins.CommandLineBasedConverter.convert(CommandLineBasedConverter.java:90) ~[nuxeo-core-convert-plugins-2021.50.12.jar:?]
          at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:344) ~[nuxeo-core-convert-2021.47.4.jar:?]
          at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:179) ~[nuxeo-platform-video-2021.36.9.jar:?]
          at org.nuxeo.ecm.platform.video.service.VideoConversionWork.work(VideoConversionWork.java:109) ~[nuxeo-platform-video-2021.36.9.jar:?]
          at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:524) [nuxeo-core-event-2021.45.8.jar:?]
          at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:387) [nuxeo-core-event-2021.45.8.jar:?]
          at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-2021.45.8.jar:?]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
          at java.lang.Thread.run(Thread.java:829) [?:?] 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hbrown Harlan Brown
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: