tensorflow / tensorflow/java

Loading a SavedModel crashes Java

Open
#194 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
928
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version (use command below): 2.3.1
  • Python version: 3.8

Describe the current behavior
When I load a SavedModel, the JVM crashes.

Describe the expected behavior
The JVM should not crash.

Code to reproduce the issue
I can load other SavedModels. So, I expect this is something specific to my SavedModel. Since the model is proprietary, I cannot share. And, I don't know how to easily triage the issue. If you can help, please provide some information!

Other info / logs
See hs_err_pid30392.log.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing hs_err_pid30392.log and the report's SavedModel-loading behavior on Ubuntu 20.04 with TensorFlow 2.3.1 and Java bindings. A useful investigation would need a reproducible or shareable model, then identify why the JVM crashes and verify that loading the model no longer terminates the JVM.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.