k2-fsa/sherpa-ncnn

Black screen

Closed this issue · 11 comments

linsui commented

I can only see a black screen and it quits after a while.

--------- beginning of main
07-25 13:43:29.441 29769 29769 I fsa.sherpa.ncnn: Late-enabling -Xcheck:jni
07-25 13:43:29.484 29769 29769 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10257; state: ENABLED
07-25 13:43:29.489 29769 29769 W ziparchive: Unable to open '/data/app/~~n4GLhF78b-zvgGK_O7c2_g==/com.k2fsa.sherpa.ncnn-7vxCM39spei-hfgNq5ljpQ==/base.dm': No such file or directory
07-25 13:43:29.489 29769 29769 W ziparchive: Unable to open '/data/app/~~n4GLhF78b-zvgGK_O7c2_g==/com.k2fsa.sherpa.ncnn-7vxCM39spei-hfgNq5ljpQ==/base.dm': No such file or directory
07-25 13:43:29.582 29769 29769 V GraphicsEnvironment: ANGLE Developer option for 'com.k2fsa.sherpa.ncnn' set to: 'default'
07-25 13:43:29.582 29769 29769 V GraphicsEnvironment: ANGLE GameManagerService for com.k2fsa.sherpa.ncnn: false
07-25 13:43:29.582 29769 29769 V GraphicsEnvironment: Updatable production driver is not supported on the device.
07-25 13:43:29.584 29769 29769 D NetworkSecurityConfig: No Network Security Config specified, using platform default
07-25 13:43:29.584 29769 29769 D NetworkSecurityConfig: No Network Security Config specified, using platform default
07-25 13:43:29.653 29769 29769 W fsa.sherpa.ncnn: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
07-25 13:43:29.653 29769 29769 W fsa.sherpa.ncnn: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
07-25 13:43:29.655 29769 29769 D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10257; state: DISABLED
07-25 13:43:29.655 29769 29769 D CompatibilityChangeReporter: Compat change id reported: 37756858; UID 10257; state: ENABLED
07-25 13:43:29.691 29769 29769 I sherpa-ncnn: Start to initialize model
07-25 13:43:29.696 29769 29769 W ncnn    : ------config------
07-25 13:43:29.696 29769 29769 W ncnn    : RecognizerConfig(feat_config=FeatureExtractorConfig(sampling_rate=16000, feature_dim=80), model_config=ModelConfig(encoder_param="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/encoder_jit_trace-pnnx.ncnn.param", encoder_bin="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/encoder_jit_trace-pnnx.ncnn.bin", decoder_param="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/decoder_jit_trace-pnnx.ncnn.param", decoder_bin="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/decoder_jit_trace-pnnx.ncnn.bin", joiner_param="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/joiner_jit_trace-pnnx.ncnn.param", joiner_bin="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/joiner_jit_trace-pnnx.ncnn.bin", tokens="sherpa-ncnn-streaming-zipformer-bilingual-zh-en-2023-02-13/tokens.txt", encoder num_threads=1, decoder num_threads=1, joiner num_threads=1), decoder_config=DecoderConfig(method="greedy_search", num_active_paths=4), endpoint_config=Endpoi
--------- beginning of crash
07-25 13:43:29.697 29769 29769 F libc    : Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xb4000070178c1000 in tid 29769 (fsa.sherpa.ncnn), pid 29769 (fsa.sherpa.ncnn)

Are there more error logs?

linsui commented

Both of them doesn't work for me. I can't get more logcat.

Both of them doesn't work for me. I can't get more logcat.

The above two APKs work perfectly on my Xiaomi 10 Android phone.

linsui commented

Yes, I know it works on some devices. But it doesn't work for me. 😢 If you have any idea I can help debug the problem.

I suggest that you follow
https://k2-fsa.github.io/sherpa/ncnn/android/index.html
to build the android app from source and try to get logs from logcat within android studio.

Yes, I know it works on some devices. But it doesn't work for me. 😢 If you have any idea I can help debug the problem.

@linsui Could you try #334

Do I need to build the apk or there is a apk available somewhere?

It works! Thanks!

好的。那就是这个问题了。