Access violation executing location 0x0000000000000000 @clGetDeviceIDsFromD3D11KHR

asked 2018-09-21 13:16:05 -0600

Sen66 gravatar image

updated 2018-09-21 14:15:58 -0600

Hello, I am trying to convert images between DirectX and OpenCV, sadly I cant create an OpenCL context. I tryd debugging the code and found out calling "clGetDeviceIDsFromD3D11KHR" gives me an access violation. I was looking at the assembly code of the executed code and saw the following: image description The assembly code is the function (clGetDeviceIDsFromD3D11KHR) on the left. It tries to call a [r10 + 0x368] at the end. From looking at the memory of the function table, I do not have a function at this address in my nvopencl.dll image description I have a 1080Ti with latest drivers and was trying to get it to work for 2 days now. Im almost giving up.

Hopefully somebody can help me

Kind regards, Sen66

edit retag flag offensive close merge delete

Comments

i removed your screenshots, they're entirely useless here (can't be indexed / quoted)

please edit your question again, and fill the resp. parts with a text version. thank you !

berak gravatar imageberak ( 2018-09-21 13:20:43 -0600 )edit

done, I hope you meant a hyperlink with "text" version and not explaining what the pictures meant to show.

Sen66 gravatar imageSen66 ( 2018-09-21 13:40:48 -0600 )edit

no, TEXT, not IMAGES of it.

berak gravatar imageberak ( 2018-09-21 13:45:34 -0600 )edit

Alright, I removed the images. I thought they would best explain whats happening on my end as I do not really know what details one would need to help me fix my problem.

Sen66 gravatar imageSen66 ( 2018-09-21 13:49:30 -0600 )edit

just capture the console output AS TEXT and insert it, where appropriate, please.

/and apologies, for being somewhat hard on you. you'll understand why it is so, once you try to search similar questions (and ppl might want tosearch yours)

berak gravatar imageberak ( 2018-09-21 13:52:05 -0600 )edit

I do not have ANY console output, I call cv::directx::ocl::initializeContextFromD3D11Device(m_pD3D11Dev); and it throws an "Access violation executing location 0x0000000000000000 within the function"

Sen66 gravatar imageSen66 ( 2018-09-21 13:56:44 -0600 )edit

ok, let's just roll it back.. but please:

put your images here, not on shitty,4chan infested imgur.com, please ,at least that !

berak gravatar imageberak ( 2018-09-21 14:11:00 -0600 )edit
1

Sorry for the offsite image, I uploaded it here now.

Sen66 gravatar imageSen66 ( 2018-09-21 14:16:53 -0600 )edit

yea cool. sorry for making so much noise about it ...

berak gravatar imageberak ( 2018-09-21 14:45:07 -0600 )edit

@Sen66 -- Why are you using OpenCL?

sjhalayka gravatar imagesjhalayka ( 2018-09-22 14:50:38 -0600 )edit