Forum

Author Topic: Metashape Standard 1.7 (11736) closes itself during depth map generation  (Read 3549 times)

Mariusz_M

  • Newbie
  • *
  • Posts: 34
    • View Profile
Hi.

I am workng on a relatively small project for me, less than 2000 photos (I usually process bigger). Up until yesterday, everything worked smoothly under Metashape Standard 1.6.6. Then I updated to the newes release as suggested by the software. Since then I cannot process depth maps. Every time depth map generation is in progress, Metashape closes itself. But there is no error message in the log.

2021-01-06 21:40:35 [GPU 1] Camera 1694: level #4/4 (x4 downscale: 998x561, image blowup: 1996x1121) done in 1.331 s = 33% propagation + 61% refinement + 2% filtering + 0% smoothing
2021-01-06 21:40:35 [GPU 1] group 1/1: estimating depth map for 21/39 camera 1761 (40 neighbs)...
2021-01-06 21:40:37 [GPU 1] Camera 1761 samples after final filtering: 89% = 100% - 2% (not matched) - 1% (bad matched) - 0% (no neighbors) - 2% (no cost neighbors) - 5% (inconsistent normal) - 1% (estimated bad angle) - 0% (found bad angle) - 1% (speckles filtering)
2021-01-06 21:40:37 [GPU 1] Camera 1761: level #4/4 (x4 downscale: 998x561, image blowup: 1996x1121) done in 1.159 s = 33% propagation + 60% refinement + 3% filtering + 0% smoothing
2021-01-06 21:40:37 Peak VRAM usage updated: Camera 1761 (40 neihbs): 507 MB = 160 MB gpu_tmp_hypo_ni_cost (32%) + 128 MB gpu_neighbImages (25%) + 34 MB gpu_depth_map (7%) + 34 MB gpu_cost_map (7%) + 34 MB gpu_coarse_depth_map_radius (7%) + 34 MB gpu_coarse_depth_map (7%) + 25 MB gpu_normal_map (5%) + 12 MB gpu_neighbMasks (2%) + 12 MB gpu_tmp_normal (2%) + 8 MB gpu_mipmapNeighbImage (2%)
2021-01-06 21:40:37 [GPU 1] group 1/1: estimating depth map for 22/39 camera 1762 (38 neighbs)...



Windows event log shows only a general application crash, nothing speficic. But is has something to do with: C:\WINDOWS\System32\ucrtbase.dll.



I have tried on other similar projects and the result is the same - a quiet unexpected crash.
I have just tried on a project that has 58 cameras and everything worked. So the problem might have something to do with the number of cameras.

You might need my system info:

2021-01-06 21:59:02 Agisoft Metashape Standard Version: 1.7.0 build 11736 (64 bit)
2021-01-06 21:59:02 Platform: Windows
2021-01-06 21:59:02 CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (desktop)
2021-01-06 21:59:02 CPU family: 6 model: 60 signature: 306C3h
2021-01-06 21:59:02 RAM: 32.0 GB
2021-01-06 21:59:03 OpenGL Vendor: NVIDIA Corporation
2021-01-06 21:59:03 OpenGL Renderer: GeForce GTX 980M/PCIe/SSE2
2021-01-06 21:59:03 OpenGL Version: 4.6.0 NVIDIA 460.89
2021-01-06 21:59:03 Maximum Texture Size: 16384
2021-01-06 21:59:03 Quad Buffered Stereo: not enabled
2021-01-06 21:59:03 ARB_vertex_buffer_object: supported
2021-01-06 21:59:03 ARB_texture_non_power_of_two: supported

2021-01-06 21:59:11 Found 1 GPUs in 0.095 sec (CUDA: 0.02 sec, OpenCL: 0.075 sec)
[/i]

I wish I could give you  more specific information, but there is no info whatsoever what is wrong. It just stops working while processing depth maps on bigger projects that worked with no issues for many years under previous versions.

Please fix the problem as soon as possible. For now I have downgraded Metashape to 1.6.6 until this issue is resolved. If you want me to test some tweaks on 1.7 I kept it as well. I can test some things out as long as I have clear instructions from you.
« Last Edit: January 07, 2021, 01:26:23 AM by Mariusz_M »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #1 on: January 08, 2021, 04:22:11 PM »
Hello Mariusz_M,

Can you please check, if you are able to avoid the crash and complete the procedure properly in 1.7 by creating main/gpu_enable_cuda tweak via Advanced Preferences tab and setting its value to False? (After assigning the new tweak value, please re-start Metashape).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mariusz_M

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #2 on: January 09, 2021, 07:11:34 PM »
Disabling CUDA has not worked. There is a different problem now. After less than 10 minutes of processing I get black screen with the mouse coursor and computer becomes unresponsive. HDDs almost stop working and there is nothing I can do to stop the process. CRTL + ALT + DEL do not work. Manually puting the computer into sleep mode does not work. Even closing the lid to put it to sleep does not work.

I can only restart the computer. I have tried twice and both times the problem occured. The first time I waited for 2h hoping something would change, but it did not...

So I can only guess that there is some kind of memory optimisation problem and with CUDA on it causes the process to stop and the program crashes, while with OpenCL the process keeps going slower and slower overloading the system.


repronauts

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #3 on: January 14, 2021, 04:21:03 PM »
I had this problem.
switching off new depth maps by setting "main/depth_pm_enable" tweak value to False via Advanced Preferences tab got it working again

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #4 on: January 14, 2021, 06:26:14 PM »
We have received some similar reports related to the GPU-based processing of the new depth maps and were able to reproduce the problem on one of the test configurations on our side. Currently we are working on the fixes that would be included to the 1.7.1 update.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mariusz_M

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #5 on: January 15, 2021, 02:09:47 AM »
Great, I will wait for the update then.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #6 on: January 15, 2021, 11:34:57 AM »
Hello Mariusz,

As a possible workaround, you can switch off the new depth maps option using main/depth_pm_enable tweak set to False, like repronauts, has mentioned above.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #7 on: January 18, 2021, 10:36:38 PM »
Hello Mariusz,

I have sent the link to the pre-release version of 1.7.1 to you via PM, please check, if it resolves the problem for your system.

If everything is fine, this fix will be included to the official 1.7.1 update (I think we'll publish it by the end of January).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Metashape Standard 1.7 (11736) closes itself during depth map generation
« Reply #8 on: January 23, 2021, 08:43:01 PM »
We have published 1.7.1 version on Downloads page, the reported problem should be fixed.
Best regards,
Alexey Pasumansky,
Agisoft LLC