Access violation executing location 0x0000000000000000 @clGetDeviceIDsFromD3D11KHR
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: 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 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
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 !
done, I hope you meant a hyperlink with "text" version and not explaining what the pictures meant to show.
no, TEXT, not IMAGES of it.
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.
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)
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"
ok, let's just roll it back.. but please:
put your images here, not on shitty,4chan infested imgur.com, please ,at least that !
Sorry for the offsite image, I uploaded it here now.
yea cool. sorry for making so much noise about it ...
@Sen66 -- Why are you using OpenCL?
I am trying to convert images to/from ID3D11Texture2D and functions like cv::directx::convertToD3D11Texture2D use opencl
@Sen66 -- And you cannot just convert it yourself? Getting a pointer to the memory of a Mat is as easy as using the .data member. I assume that you can initialize a D3D texture using a pointer to data. Sorry, I use OpenGL.
Id rather like to use the official functions but yes in theory I COULD do that which I also did but the colors are wrong.I researched already alot and my code should be correct. The format for the D3D11 texture I use is DXGI_FORMAT_R8G8B8A8_UNORM and my UMat has CV_8UC4