Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tensorflow/tflite branch r2.10] crash at absl::OkStatus(); #66990

Closed
picard314 opened this issue May 6, 2024 · 7 comments
Closed

[tensorflow/tflite branch r2.10] crash at absl::OkStatus(); #66990

picard314 opened this issue May 6, 2024 · 7 comments
Assignees
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author TF 2.10 TFLiteGpuDelegate TFLite Gpu delegate issue type:bug Bug

Comments

@picard314
Copy link

picard314 commented May 6, 2024

System information
Nova9Pro (Huawei)

  • TensorFlow Lite in Play Services SDK version (found in build.gradle):
    Based on the source codes, I built the dynamic libs: libtensorflowlite.so and libtensorflowlite_gpu_delegate.so using bazel 5.1.1

  • Google Play Services version
    (Settings > Apps > Google Play Services > App details):
    Self-produced app

Standalone code to reproduce the issue
The problem occurs when I call "ModifyGraphWithDelegate" written in my Android app codes.

Any other info / logs

(By inserting my debug logs into the source codes, I have located the bug.)

Unfortunately there are not hints/logs at all when mobile-running-crash happens at the end "return absl::OkStatus();" of function:

absl::Status InferenceContext::InitFromGpuModel(
const CreateGpuModelInfo& create_info, GpuModel* gpu_model,
Environment* env, std::vector<uint8_t>* serialized_model,
Buffer* shared_buffer)

which is located at script "inference_context.cc".

**Other infos:
The libs I have built work fine in my other Android apps/projects which were built using Android studio 4.2.2 and earlier versions of sdk, ndk, java and c++. But crash happens at current Android app/project which is built using Android studio Iguana | 2023.2.1 Patch 1 and later versions of sdk, ndk, java and c++.

I am not sure if this is due to some kinds of incompatiblilities.

@tilakrayal tilakrayal added comp:lite TF Lite related issues TF 2.10 type:bug Bug TFLiteGpuDelegate TFLite Gpu delegate issue labels May 6, 2024
@picard314
Copy link
Author

picard314 commented May 6, 2024

@tilakrayal Hi, infos again..

I've just found a log:
std::__ndk1::__tree<flatbuffers::offsetflatbuffers::string
during mobile running.

There is also a flatbuffers file within the current app/project and I built a lib (inserted into the app/project) containing tflite libs using another flatbuffers file. Perhaps the two flatbuffers files are incompatible.

Is it possible to keep the two flatbuffers files coexist?

@tilakrayal
Copy link
Contributor

@picard314,
Could you please provide a simple standalone code to reproduce the reported behavior and would help us to investigate further. Thank you!

@tilakrayal tilakrayal added the stat:awaiting response Status - Awaiting response from author label May 6, 2024
@picard314
Copy link
Author

@picard314, Could you please provide a simple standalone code to reproduce the reported behavior and would help us to investigate further. Thank you!

@tilakrayal
Thanks for your kind attention. Since the "two flatbuffers files" is the cause as app can run successfully after I delete a flatbuffers file and my limited time, I shall dig it no more and please forgive me for not providing related codes for they are really a big bunch of limbs which can not be separated from each other during compiling. Thanks again.

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Status - Awaiting response from author label May 8, 2024
@tilakrayal tilakrayal assigned sawantkumar and unassigned tilakrayal May 8, 2024
@sawantkumar
Copy link

Hi @picard314 ,

Please let me know if you found a resolution for your issue or if you are able to provide any standalone code to reproduce this issue.

@sawantkumar sawantkumar added the stat:awaiting response Status - Awaiting response from author label May 23, 2024
Copy link

This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label May 31, 2024
Copy link

github-actions bot commented Jun 7, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.

@github-actions github-actions bot closed this as completed Jun 7, 2024
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author TF 2.10 TFLiteGpuDelegate TFLite Gpu delegate issue type:bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants