Forum

Author Topic: std: bad_alloc error inside a ubuntu docker container  (Read 2457 times)

aniket@aus.co.in

  • Newbie
  • *
  • Posts: 25
    • View Profile
std: bad_alloc error inside a ubuntu docker container
« on: December 01, 2021, 09:34:14 PM »
I'm trying to run metashape cli on an ubuntu docker container with 68 GB of RAM. I'm not sure if it is an out of memory error or not. I've also added 20 Gb swap also. Even then it fails with the same error. The dataset has 250 images. Looking at the memory usage profiles it doesn't seem to be a out of memory issue. Any ideas for the possible cause of failure.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: std: bad_alloc error inside a ubuntu docker container
« Reply #1 on: December 01, 2021, 09:44:45 PM »
Hello aniket,

Can you please provide the part of the log from the node related to the failed operation? If there is any sensible information (like image filenames or project paths) just remove it from the log.
Best regards,
Alexey Pasumansky,
Agisoft LLC

aniket@aus.co.in

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: std: bad_alloc error inside a ubuntu docker container
« Reply #2 on: December 02, 2021, 08:50:51 AM »
here are the logs attached

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: std: bad_alloc error inside a ubuntu docker container
« Reply #3 on: December 02, 2021, 02:32:01 PM »
Hello aniket,

According to the log, you are trying to generate the mesh model in Arbitrary mode from the dense cloud, which is very resource demanding operation in Metashape 1.7 and is not, actually, suitable for the large dense clouds.
In Metashape 1.8 the mesh generation mode for this surface+source data type combination has been modified and shouldn't require excessive amounts of RAM.
Best regards,
Alexey Pasumansky,
Agisoft LLC

aniket@aus.co.in

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: std: bad_alloc error inside a ubuntu docker container
« Reply #4 on: December 02, 2021, 02:42:01 PM »
I can't find link to download Metashape 1.8
« Last Edit: December 02, 2021, 04:01:25 PM by aniket@aus.co.in »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: std: bad_alloc error inside a ubuntu docker container
« Reply #5 on: December 02, 2021, 04:38:51 PM »
Hello aniket,

It's available as pre-release now:
https://www.agisoft.com/forum/index.php?topic=13736.0
The official release is expected in the very end of December.

Alternatively, you may consider building a tiled model instead of mesh, if you need to visualize large area in high resolution.
Best regards,
Alexey Pasumansky,
Agisoft LLC