Skip to content

[Bug]: crash bug in java_api from openvino_contrib #931

Open
@chenruix

Description

@chenruix

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:
image
second crash error message:
image

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions