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
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x70 in tid 28007 #34313
Comments
I'm wondering if it's an issue with the Android APK environment. Does the same lstm flatbuffer model run on desktop? |
I can infer probabilities using same LSTM.tflite model with this Python code: import tensorflow as tf
interpreter = tf.compat.v2.lite.Interpreter("LSTM.tflite")
interpreter.allocate_tensors()
input = interpreter.tensor(interpreter.get_input_details()[0]["index"])
output = interpreter.tensor(interpreter.get_output_details()[0]["index"])
for i in range(10):
input().fill(1)
interpreter.invoke()
print("inference %s" % output()) Output is following:
My model is for binary classification, it means this output is what I want. |
It might be due to some native methods here:
/**
* Initializes a {@code NativeInterpreterWrapper} with a {@code MappedByteBuffer}. The
* MappedByteBuffer should not be modified after the construction of a {@code
* NativeInterpreterWrapper}.
*/
NativeInterpreterWrapper(MappedByteBuffer mappedByteBuffer) {
modelByteBuffer = mappedByteBuffer;
errorHandle = createErrorReporter(ERROR_BUFFER_SIZE);
modelHandle = createModelWithBuffer(modelByteBuffer, errorHandle);
interpreterHandle = createInterpreter(modelHandle);
} |
Hi!, could any of you solve this issue?
|
I solved a similar issue following this guide. Particularly adding this into build.gradle:
to filter unnecessary ABI dependencies. |
@kazuimotn |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
I am seeing the same crash: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) This occurs while running the standard object detection routine using the mobileNet SSD .tflite model that can be found in tf model zoo: The issue was replicated on Samsung Galaxy S20+ as well as on Motorola phones and it seems like this crash is phone independent. On Motorola phones the crash occurs within 2 hours while running the detection while on Samsung Galaxy the issue sometimes occurs after 8h of running the same code on the same input data in a repetitive loop. Filtering the abi's did not affect this case. It seems like it occurs on the RenderThread during the DeferredLayerUpdate. |
I got same issue |
There was a problem when calling converted custom model (LSTM.tflite) in Android Studio.
with
System information
model training machine
model converting & loading machine
Smartphone
I can convert custom LSTM model from .h5 to .tflite with following code:
Next I want to load this model (LSTM.tflite) into my Android APK.
I already have class that can perform inference using 1D-CNN custom model (1DCNN.tflite).
When I use 1DCNN.tflite, this class works completely. However, when I change the model into LSTM.tflite, getting ERROR at this line
And ERROR logcat is following
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x70 in tid 28007
How can I deal with this unknown error?
After my some investigation, this error seems to occur when the prepared array is exceeded for some reason.
The text was updated successfully, but these errors were encountered: