gpu::StereoConstantSpaceBP crash (Bug #3211)


Added by Roman P over 11 years ago. Updated over 9 years ago.


Status:Open Start date:2013-08-12
Priority:Normal Due date:
Assignee:Vladislav Vinogradov % Done:

0%

Category:gpu (cuda)
Target version:2.4.10
Affected version:2.4.0 - 2.4.6 Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

When calling StereoConstantSpaceBP operator() on some images, OpenCV crashes with the error message:

OpenCV Error: Gpu API call (unknown error) in unknown function, file D:/Libraries/opencv_2_4_6/opencv/modules/gpu/src/cuda/stereocsbp.cu, line 683

System used: Windows 7 x64, NVIDIA GPU NVS 300, 8 GB RAM, CUDA 5.5, MS Visual Studio Professional 2012 (update 3)

Code reproducing this behavior and example images are attached.


csbp_crash.cpp (1.1 kB) Roman P, 2013-08-12 03:39 pm

left.png (25.8 kB) Roman P, 2013-08-12 03:39 pm

right.png (41.3 kB) Roman P, 2013-08-12 03:39 pm


History

Updated by Steven Puttemans over 11 years ago

I guess it is a stupid question, but you did rebuilt openCV to include GPU support right?

Updated by Roman P over 11 years ago

Yes, OpenCV was build with the GPU support.

Updated by Kirill Kornyakov over 11 years ago

OK, we'll try to check it on our side. Vlad, could you have a look please?

BTW, Roman, if you're able to debug the issue yourself, please work on a pull request. Vladislav is on vacations, and I'm not sure whether he is going to look at this issue soon...

  • Assignee set to Vladislav Vinogradov
  • Target version set to 2.4.7
  • Category set to gpu (cuda)

Updated by Kirill Kornyakov over 11 years ago

  • Priority changed from High to Normal

Updated by Sergei Nosov over 11 years ago

  • Status changed from New to Open

Updated by Alexander Smorkalov over 11 years ago

Vlad, could you have a look please?

  • Affected version changed from 2.4.6 (latest release) to 2.4.0 - 2.4.6

Updated by Alexander Smorkalov over 11 years ago

  • Target version changed from 2.4.7 to 2.4.8

Updated by Alexander Smorkalov about 11 years ago

  • Target version changed from 2.4.8 to 2.4.9

Updated by Alexander Smorkalov almost 11 years ago

  • Target version changed from 2.4.9 to 2.4.10

Updated by Andrea Tomassetti almost 10 years ago

Hi,
I know that this a very old issue but i have the same exactly problem. From time to time, with some images that have different sizes, when calling StereoConstantSpaceBP operator(), OpenCV crashes

OpenCV Error: Gpu API call (an illegal memory access was encountered) in unknown function, file D:/toolkits/opencv-2.4.9/modules/gpu/src/cuda/stereocsbp.cu, line 683
error: D:/toolkits/opencv-2.4.9/modules/gpu/src/cuda/stereocsbp.cu:683: error: (-217) an illegal memory access was encountered

System used: Windows 8.1 x64, NVIDIA GPU GeForce 740M, 8 GB RAM, CUDA 6.5, MS Visual Studio Professional 2013

The code that sometimes works and sometimes doesn't is the one tooked from gpu samples.
I can try debug the issue myself, if someone, kindly, show me the way.

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4612

Also available in: Atom PDF