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

Black screen #239

Closed
linsui opened this issue Jul 25, 2023 · 11 comments
Closed

Black screen #239

linsui opened this issue Jul 25, 2023 · 11 comments

Comments

@linsui
Copy link

linsui commented Jul 25, 2023

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)
@csukuangfj
Copy link
Collaborator

Are there more error logs?

@linsui
Copy link
Author

linsui commented Jul 25, 2023

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

@csukuangfj
Copy link
Collaborator

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
Copy link
Author

linsui commented Jul 26, 2023

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.

@csukuangfj
Copy link
Collaborator

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.

@csukuangfj
Copy link
Collaborator

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

@linsui
Copy link
Author

linsui commented Jun 11, 2024

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

@csukuangfj
Copy link
Collaborator

@linsui
Copy link
Author

linsui commented Jun 11, 2024

It works! Thanks!

@csukuangfj
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants