You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
HI, @likholat Are there any possible directions for troubleshooting this crash? I have tried many ways to solve the problem, but none has worked. If so, could you please tell me? Thanks!
wenjiew
changed the title
[Bug]: crash bug
[Bug]: crash bug in java_api from openvino_contrib
Oct 24, 2023
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
The text was updated successfully, but these errors were encountered: