-
Notifications
You must be signed in to change notification settings - Fork 534
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
Crash with Android x86 emulator and Microsoft CognitiveServices Speech Xamarin quickstart #3989
Comments
I was able to reproduce this with d16-4 after creating a new Android 9.0 x86 emulator:
|
The crash in OP suggests it's an issue with the Mono JIT. |
@BrzVlad - please take a look at this one since you are already investigating other Android related bugs |
Another snippet of information. I have two apps trying to use SpeechConfig.FromSubscription() - one is a Xamarin Forms app and another one is a Xamarin Android app. The Xamarin Android one crashes on an x86 Oreo 8.1 emulator
But The Xamarin Forms one does not crash on the same emulator (and indeed, successfully produces the output I expect)
in case that helps ... |
Any updates on this ? |
@jhakulin This issue is caused by stack misalignment, caused most likely by incorrect code generated by the mono runtime. Haven't been able to find the root source of the misalignment today, but I'll figure it out next week. |
This does not look like mono issue. All pinvokes in the |
Steps to Reproduce
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
-->
ndk-stack-dump.txt
logcat-crash.txt
The text was updated successfully, but these errors were encountered: