microsoft / microsoft/onnxruntime
[Mobile] armeabi-v7a, Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x8a1a5a01 in tid 13162 (DefaultDispatch), pid 13121
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
my device info:
Build.HARDWARE: mt6761(mediatek)
Build.VERSION.SDK_INT: 30
Build.VERSION.SDK_INT_FULL: 3000000
android 11, 32bit cpu, armeabi-v7a
model: supertonic onnx
supertonic is a tts model: https://github.com/supertone-inc/supertonic
model url: https://huggingface.co/Supertone/supertonic/tree/main/onnx
/**
* Load TTS components
*/
private fun loadTextToSpeech(onnxDir: String, env: OrtEnvironment): SupertonicTts {
Log.d(TAG, "Using CPU for inference\n")
// Load config
val config = SupertonicDataUtils.loadCfgs(onnxDir)
// Create session options
val opts = OrtSession.SessionOptions()
// Load models
val dpSession = env.createSession("$onnxDir/duration_predictor.onnx", opts)
Log.i(TAG, "duration_predictor success")
val textEncSession = env.createSession("$onnxDir/text_encoder.onnx", opts)
Log.i(TAG, "text_encoder success")
val vectorEstSession = env.createSession("$onnxDir/vector_estimator.onnx", opts)
Log.i(TAG, "vector_estimator success")
val vocoderSession = env.createSession("$onnxDir/vocoder.onnx", opts)
Log.i(TAG, "vocoder success")
// Load text processor
val textProcessor = UnicodeProcessor("$onnxDir/unicode_indexer.json")
return SupertonicTts(
config,
textProcessor,
dpSession,
textEncSession,
vectorEstSession,
vocoderSession
)
}
val dpSession = env.createSession("$onnxDir/duration_predictor.onnx", opts)
this line error:
onnxDir: /data/local/tmp/onnx/supertonic/model, voiceStylePath: /data/local/tmp/onnx/supertonic/voice_styles/F1.json
Access denied finding property "ro.hardware.chipname"
Using CPU for inference
Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x8a1a5a01 in tid 13162 (DefaultDispatch), pid 13121 (om.xc.ai.speech)
pid: 13121, tid: 13162, name: DefaultDispatch >>> com.xc.ai.speech <<<
Davey! duration=1014ms; Flags=1, IntendedVsync=71282317125394, Vsync=71282383792062, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=71282392596325, AnimationStart=71282392606017, PerformTraversalsStart=71282393168171, DrawStart=71283222251633, SyncQueued=71283274114633, SyncStart=71283278082094, IssueDrawCommandsStart=71283278260017, SwapBuffers=71283332787248, FrameCompleted=71283335112017, DequeueBufferDuration=0, QueueBufferDuration=1219077, GpuCompleted=0,
Skipped 59 frames! The application may be doing too much work on its main thread.
Davey! duration=999ms; Flags=0, IntendedVsync=71282400465839, Vsync=71283383799192, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=71283384832325, AnimationStart=71283384843248, PerformTraversalsStart=71283385476633, DrawStart=71283387435248, SyncQueued=71283396044094, SyncStart=71283397329094, IssueDrawCommandsStart=71283397662864, SwapBuffers=71283398792633, FrameCompleted=71283401234094, DequeueBufferDuration=0, QueueBufferDuration=1329154, GpuCompleted=0,
#00 pc 0072537a /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#01 pc 007232c7 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#02 pc 0070a093 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#03 pc 0070a46d /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#04 pc 0063e9df /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#05 pc 00641ee9 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#06 pc 006a468b /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#07 pc 0061b82f /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk!libonnxruntime.so (offset 0x2dac000) (BuildId: 6026dbd94a6ae117af217ef7f4c55aeff57a17bd)
#08 pc 00008a15 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk (offset 0x3b08000) (Java_ai_onnxruntime_OrtSession_createSession__JJLjava_lang_String_2J+60) (BuildId: 6f0e3fe1a572897f0731c4b6d690bbf5ae8260ef)
#17 pc 001830b2 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk (ai.onnxruntime.OrtSession.+22)
#20 pc 00180428 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk (ai.onnxruntime.OrtEnvironment.createSession+16)
#23 pc 00180444 /data/app/~~adbXtPb2VbvOmPCb-RUIOA==/com.xc.ai.speech-Nx4oX53dnPGN4D0HvMy-_w==/base.apk (ai.onnxruntime.OrtEnvironment.createSession+4)
I ask ai, ai say: ONNX uses 4-byte alignment, but my CPU uses 2-byte alignment, so the memory address allocated by the system is not a multiple of 4.
### To reproduce
run the model
### Urgency
_No response_
### Platform
Android
### OS Version
11
### ONNX Runtime Installation
Released Package
### Compiler Version (if 'Built from Source')
onnxruntimeAndroid = "latest.release"
### Package Name (if 'Released Package')
None
### ONNX Runtime Version or Commit ID
onnx version: 1.23.2
### ONNX Runtime API
C++/C
### Architecture
Armeabi-v7a
### Execution Provider
Default CPU
### Execution Provider Library Version
mediatek mt6761
Contributor guide
Assessment
This issue has not been assessed yet.