Couldn't create OpenCL image (-40)

Hi, I’m trying to run the ConsoleReconstruction example with a custom sensor that i’m integrating the SDK with.

When it comes to the part that the reconstruction is instanciated, i get the following error:

Device 0
Name: GeForce MX110
Vendor: NVIDIA Corporation
Max compute units: 2
Max work group size: 1024
Global memory: 2147483648
Image support: 160
Device 1
Name: Intel(R) UHD Graphics 620
Vendor: Intel(R) Corporation
Max compute units: 24
Max work group size: 256
Global memory: 8554119168
Image support: 160
Initialized OpenCL program SurfaceReconstruction
Initialized OpenCL program SurfaceReconstruction
Initialized OpenCL program Reduction
Kernels: 18.9794 ms
SurfaceReconstruction: Created OpenCL context
Buffer allocation: 0.2538 ms
Couldn't create OpenCL image (-40)
SurfaceReconstruction: Failed to create OpenCL buffers
Destroyed image buffers
Destroyed image buffers
Destroyed OpenCL buffers
Destroyed OpenCL context
Reconstruction is: 0

Has anyone had the same problem? Thanks

I fixed the problem. The point was that my sensor was returning the image dimensions of 0 x 0.

This is an important issue in RecFusion 2.2.0. If sensor is closed, then its getters like colorWidth() or depthWidth() return 0 (also methods returning intrinsics matrices). These functions work correctly only after opening the sensor with open(), which is not the case in RecFusion 1.3.6, which, if I am not mistaken, returns the correct color/depth image sizes at all time.

I think it is something worth mentioning in the documentation.