Skip to content

Crash with Android x86 emulator and Microsoft CognitiveServices Speech Xamarin quickstart #3989

@jhakulin

Description

@jhakulin

Steps to Reproduce

  1. Download Microsoft.CognitiveServices.Speech SDK helloworld Xamarin quickstart from https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/quickstart/csharp/xamarin
  2. Build the solution and start debugging it on Android x86 emulator
  3. After app is launched, press "Enable Microphone" button and agree with consent and then press "Start Speech Recognition" button

Expected Behavior

App would start speech recognition and would not crash

Actual Behavior

App crashes based on my analysis in mono runtime, root cause is not known.

signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #00 pc 00061c1d /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mono_spill_global_vars+61): Routine mono_spill_global_vars at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/method-to-ir.c:11944
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #1 pc 0001f1b0 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mini_method_compile+8048): Routine mini_method_compile at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini.c:3791
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #2 pc 000208d0 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mono_jit_compile_method_inner+64): Routine mono_jit_compile_method_inner at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini.c:4036
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #3 pc 00024645 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mono_jit_compile_method_with_opt+2901): Routine mono_jit_compile_method_with_opt at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini-runtime.c:2434
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #4 pc 00023ae4 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mono_jit_compile_method+52): Routine mono_jit_compile_method at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini-runtime.c:2484
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #5 pc 000c2094 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (common_call_trampoline+1156): Routine common_call_trampoline at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini-trampolines.c:635
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #6 pc 000c1bb1 /data/app/com.companyname.helloworld-H1H87jywCueoKLIVJQIepQ==/lib/x86/libmonosgen-2.0.so (mono_magic_trampoline+97): Routine mono_magic_trampoline at /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/mono/mini/mini-trampolines.c:773
Stack frame 12-03 16:29:16.257 6686 6686 F DEBUG : #7 pc 00010187 anonymous:e7890000: Unable to open symbol file C:\Work\com.companyname.helloworld3\lib\x86/anonymous:e7890000. Error (22): Invalid argument

Version Information

Microsoft Visual Studio Enterprise 2019
Version 16.4.0
VisualStudio.16.Release/16.4.0+29519.181
Microsoft .NET Framework
Version 4.8.03752

Xamarin.Android SDK 10.1.0.30 (d16-4/5e2fd06)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: e1ef774
Java.Interop: xamarin/java.interop/d16-4@c4e569f
ProGuard: xamarin/proguard@905836d
SQLite: xamarin/sqlite@46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools/master@9f4ed4b

Log File

  1. Paste below this comment block
    -->

ndk-stack-dump.txt

logcat-crash.txt

Metadata

Metadata

Labels

Area: Mono RuntimeMono-related issues: BCL bugs, AOT issues, etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions