alicevision / Meshroom

3D Reconstruction Software
http://alicevision.org
Other
11.06k stars 1.08k forks source link

[bug] CUDAError: the launch timed out and was terminated #1997

Open jiye33 opened 1 year ago

jiye33 commented 1 year ago

I tried to reconstruct mesh with Monstree Image Dataset. However, It didn't work. Is there anyone who know how to fix CUDAError? GPU: GeForce mx130 OS: windows 11

[2023-04-25 14:50:16.236261] [0x00002618] [trace] Embedded OCIO configuration file: 'C:\Meshroom-2023.1.0\aliceVision/share/aliceVision/config.ocio' found. [2023-04-25 14:50:32.051684] [0x00004794] [trace] Embedded OCIO configuration file: 'C:\Meshroom-2023.1.0\aliceVision/share/aliceVision/config.ocio' found. Program called with the following parameters:

Hardware : Detected core count : 8 OpenMP will use 8 cores Detected available memory : 2786 Mo

[14:50:32.200296][info] 0 profile(s) stored in the LCP database. [14:50:32.211264][warning] Some image(s) have no serial number to identify the camera/lens device. This makes it impossible to correctly group the images by device if you have used multiple identical (same model) camera devices. The reconstruction will assume that only one device has been used, so if 2 images share the same focal length approximation they will share the same internal camera parameters. 3 image(s) are concerned. [14:50:32.222473][info] CameraInit report:

Hardware : Detected core count : 8 OpenMP will use 8 cores Detected available memory : 2571 Mo

[14:50:35.845694][info] CUDA-Enabled GPU. Device information:

CUDAError: the launch timed out and was terminated file: C:\Release\sources\AliceVision\src\aliceVision\depthMap\cuda\planeSweeping\deviceSimilarityVolume.cu function: aliceVision::depthMap::cuda_volumeAggregatePath line: 282

WARNING:root:Downgrade status on node "DepthMapFilter_1(0)" from Status.SUBMITTED to Status.NONE WARNING:root:Downgrade status on node "Meshing_1" from Status.SUBMITTED to Status.NONE WARNING:root:Downgrade status on node "Texturing_1" from Status.SUBMITTED to Status.NONE WARNING:root:Downgrade status on node "MeshFiltering_1" from Status.SUBMITTED to Status.NONE

image

PluggPreagar commented 1 year ago

Hi, it seems related https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/2144 - so I added Batch file with SET CUDA_LAUNCH_BLOCKING=1 before starting msehroom.exe . This worked for me.

okin89 commented 1 year ago

Hi, it seems related AUTOMATIC1111/stable-diffusion-webui#2144 - so I added Batch file with SET CUDA_LAUNCH_BLOCKING=1 before starting msehroom.exe . This worked for me.

Mind telling me where exactly i can find the .bat file to add thoses commands on windows? I can't find the file at all, even searched within all the folders in the meshroom. Thanks

jiye33 commented 1 year ago

Did you solve this problem? Using meshroom 2018 works for me without changing anything, but meshroom 2023 still have same problem. I also use windows. If you find how to fix it, please let me know!

alsper78 commented 1 year ago

I had this problem on Windows 10 with RAM 8 GB and NVIDIA GeForce MX130. In my case it seems to be related to the available memory. I changed these parameters in DepthMap:

and now it works.