Forum

Author Topic: Error: Bad allocation  (Read 6463 times)

maddin

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Error: Bad allocation
« on: January 24, 2017, 08:12:08 PM »
Trying to generate a mesh from my project at the highest settings, I end up with a rather short error message ("not enough memory"), even though the system I am using has lots of memory (64 GB RAM, 8 GB VRAM) and I did not see the system as such run out of memory.

The last part of the log pane contains this text:

Code: [Select]
2017-01-23 19:46:01 finished depth reconstruction in 5979.3 seconds
2017-01-23 19:46:01 Device 1 performance: 218.155 million samples/sec (CPU)
2017-01-23 19:46:01 Device 2 performance: 1006.48 million samples/sec (GeForce GTX 1080)
2017-01-23 19:46:01 Total performance: 1224.63 million samples/sec
2017-01-23 19:46:01 Generating dense point cloud...
2017-01-23 19:46:06 selected 136 cameras in 4.451 sec
2017-01-23 19:46:06 working volume: 10930x10416x5317
2017-01-23 19:46:06 tiles: 3x3x1
2017-01-23 19:46:06 selected 60 cameras
2017-01-23 19:46:06 preloading data... done in 4.606 sec
2017-01-23 19:46:11 filtering depth maps... done in 217.888 sec
2017-01-23 19:49:49 preloading data... done in 66.576 sec
2017-01-23 19:50:56 accumulating data... done in 12.644 sec
2017-01-23 19:51:08 building point cloud... done in 0.134 sec
2017-01-23 19:51:09 selected 95 cameras
2017-01-23 19:51:09 preloading data... done in 7.496 sec
2017-01-23 19:51:16 filtering depth maps... done in 579.217 sec
2017-01-23 20:00:56 preloading data... done in 105.264 sec
2017-01-23 20:02:42 accumulating data... Finished processing in 7006.29 sec (exit code 0)
2017-01-23 20:02:56 Error: bad allocation
After the error, no new data is produced.

Any ideas what happened and how to get around that?

Edit: Forgot to mention - this is using PS Pro 1.2.6 64bit on Win 7

Thank you!

Edit2: The 1.3 beta version of PS Pro does not produce this error...
« Last Edit: January 25, 2017, 11:38:07 AM by maddin »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Error: Bad allocation
« Reply #1 on: January 25, 2017, 01:11:38 PM »
Hello maddin,

If you have the similar issues in version 1.3 please let me know.
Best regards,
Alexey Pasumansky,
Agisoft LLC

maddin

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Error: Bad allocation
« Reply #2 on: January 25, 2017, 01:35:28 PM »
If you have the similar issues in version 1.3 please let me know.

I did one test in 1.3 and that worked without errors. Unfortunately, I need to get things done now, using 1.2.6...?

maddin

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Error: Bad allocation
« Reply #3 on: February 24, 2017, 01:20:48 PM »
Same problem again, in v1.2.6 Pro, while building the dense point cloud in 'Ultra High' (each image is only 12 megapixels)

Code: [Select]
[...]
2017-02-23 20:54:17 [CPU] estimating 715x600x128 disparity using 715x600x8u tiles, offset -57
2017-02-23 20:54:18 timings: rectify: 0.004 disparity: 0.282 borders: 0.005 filter: 0.017 fill: 0
2017-02-23 20:54:33 finished depth reconstruction in 9303.99 seconds
2017-02-23 20:54:33 Device 1 performance: 229.637 million samples/sec (CPU)
2017-02-23 20:54:33 Device 2 performance: 969.909 million samples/sec (GeForce GTX 1080)
2017-02-23 20:54:33 Total performance: 1199.55 million samples/sec
2017-02-23 20:54:33 Generating dense point cloud...
2017-02-23 20:54:42 selected 277 cameras in 8.881 sec
2017-02-23 20:54:42 working volume: 9905x8753x5781
2017-02-23 20:54:42 tiles: 2x2x1
2017-02-23 20:54:42 selected 161 cameras
2017-02-23 20:54:42 preloading data... done in 17.049 sec
2017-02-23 20:54:59 filtering depth maps... done in 1169.39 sec
2017-02-23 21:14:30 preloading data... done in 178.907 sec
2017-02-23 21:17:29 accumulating data... Finished processing in 10714.2 sec (exit code 0)
2017-02-23 21:17:37 Error: bad allocation

It seems to only get into trouble towards the end of the process. Any ideas why?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Error: Bad allocation
« Reply #4 on: February 24, 2017, 01:46:27 PM »
Hello maddin,

I can suggest to run dense cloud generation process using the depth maps (if they are stored in the project) in the version 1.3 and see if there's still a problem.
Best regards,
Alexey Pasumansky,
Agisoft LLC

maddin

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Error: Bad allocation
« Reply #5 on: February 24, 2017, 02:22:31 PM »
I can suggest to run dense cloud generation process using the depth maps (if they are stored in the project) in the version 1.3 and see if there's still a problem.

'Keep depth maps' was not checked... :-\
Trying again.