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

Avoid NPE on recomputeViews bulk action

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2021.x, 2023.x, 2025.x
    • Component/s: Bulk

      Description

      When image identification fails the image info map is null and raises NPE, recompute fails after 3 attempts:

      bulk/documentRoutingEscalation: Skip record after failure: bulk-documentRoutingEscalation-06:+8109642
      Action: bulk/documentRoutingEscalation fails on record: bulk-documentRoutingEscalation-06:+8108848 after retries.
      
      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.platform.picture.api.PictureViewImpl.asMap(PictureViewImpl.java:173) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.addPictureViews(AbstractPictureAdapter.java:347) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.addViews(AbstractPictureAdapter.java:306) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.fillPictureViews(DefaultPictureAdapter.java:104) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.fillPictureViews(DefaultPictureAdapter.java:57) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.PictureViewsHelper.computePictureViews(PictureViewsHelper.java:108) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      	at org.nuxeo.ecm.platform.picture.recompute.RecomputeViewsAction$RecomputeViewsComputation.compute(RecomputeViewsAction.java:100) ~[nuxeo-platform-imaging-core-2021.50.12.jar:?]
      

      identify can fail with many different causes:

      • output: timeout: the monitored command dumped core
      • output: identify: InsufficientImageDataInFile
      • output: identify: UnableToOpenBlob `/tmp/nxblob-1829850193459310828.jpg': No such file or directory @ error/blob.c/OpenBlob/2924.

      but we want to avoid skip record and bulk errors since it's expected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: