Description
OpenVINO Version
master
Operating System
Ubuntu 18.04 (LTS)
Device used for inference
CPU
Framework
Keras (TensorFlow 2)
Model used
No response
Issue description
Hi,When I call set_tensor in the following way, I encounter sporadic crashes while building the java_api using the openvino_contrib project. Here is the code:
JNIEXPORT void JNICALL Java_org_intel_openvino_InferRequest_SetTensor(JNIEnv *env, jobject obj, jlong addr, jstring tensorName, jlong tensorAddr)
{
JNI_METHOD("SetInputTensor",
InferRequest *infer_request = (InferRequest *)addr;
Tensor *input_tensor = (Tensor *)tensorAddr;
std::string c_tensorName= jstringToString(env, tensorName);
infer_request->set_tensor(c_tensorName, *input_tensor);
)
}
first crash error message:
second crash error message:
Since this crash occurs sporadically and you are unable to determine the cause, it would be difficult for me to provide a specific solution without more information. Thanks!
Step-by-step reproduction
No response
Relevant log output
No response
Issue submission checklist
- I'm reporting an issue. It's not a question.
- I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
- There is reproducer code and related data files such as images, videos, models, etc.