-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Component/s: Bulk
-
Tags:
-
Sprint:nxplatform next
-
Story Points:3
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.