Forum

Author Topic: RuntimeError: Can't decompress depth  (Read 500 times)

EE

  • Newbie
  • *
  • Posts: 21
    • View Profile
RuntimeError: Can't decompress depth
« on: October 08, 2021, 04:30:48 PM »
We're processing 2 completely different projects using the python API. In 1.6.3 this worked, but in 1.7.4 and 1.7.5 these seem to fail with the following code and logs:

Code: [Select]
openexr error: Error reading pixel data from image file "openexr". Unexpected tile x coordinate.
openexr error: Error reading pixel data from image file "openexr". Unexpected tile x coordinate.
openexr error: Error reading pixel data from image file "openexr". Unexpected tile x coordinate.
openexr error: Error reading pixel data from image file "openexr". Unexpected tile x coordinate.
Traceback (most recent call last):
chunk.buildDenseCloud(point_colors=True,progress=XXX)
RuntimeError: Can't decompress depth


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13210
    • View Profile
Re: RuntimeError: Can't decompress depth
« Reply #1 on: October 09, 2021, 04:08:07 PM »
Hello EE,

In most cases this message indicates to the issues with RAM which led to the corrupted data in the depth archives. Therefore, if you observe the problem on the same computer, try to run mutithreaded Memtest86 checks overnight to see, if any failures are detected.

If the system is overclocked, try to disable the overclocking.
Best regards,
Alexey Pasumansky,
Agisoft LLC

wizprod

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Dronographica
Re: RuntimeError: Can't decompress depth
« Reply #2 on: October 09, 2021, 06:43:58 PM »
I have gotten the same error in 1.7.4 in an almost brand new system with 128 gb of ram. I have run mem-test, and there is nothing wrong with the memory.

Additionally, I am using normal jpegs in my project, so why is this failing in openexr?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13210
    • View Profile
Re: RuntimeError: Can't decompress depth
« Reply #3 on: October 09, 2021, 07:39:27 PM »
Hello wizprod,

the depth maps data is stored internally in exr format. The error appears, when the depth data is required and archives with the depth maps are unpacked.

Have you started Memtest86 in multi-threaded mode? You may also try to lower the RAM frequency via BIOS and check if it helps.
Best regards,
Alexey Pasumansky,
Agisoft LLC

EE

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: RuntimeError: Can't decompress depth
« Reply #4 on: October 11, 2021, 04:28:56 PM »
Hey Alexey,

We observe the same failure on 2 different laptops so the chance it's related to RAM is quite low.
Not overclocked btw.

Greetings

Evert

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 13210
    • View Profile
Re: RuntimeError: Can't decompress depth
« Reply #5 on: October 11, 2021, 05:31:04 PM »
Hello Evert,

Does the issue appears on both test systems, if you generate depth maps on each one of them directly?

Re-using the corrupted depth maps data for build dense cloud from the older Metashape project cannot be fixed, unfortunately. As the lost data cannot be recovered without re-calculating the depth maps.
Best regards,
Alexey Pasumansky,
Agisoft LLC

EE

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: RuntimeError: Can't decompress depth
« Reply #6 on: October 11, 2021, 05:42:16 PM »
Yes both start a project from scratch.