Skip to content

Missing Dependencies on Linux x64 with Box64 on Ubuntu #2884

Open
@CameronVetter

Description

@CameronVetter

IN ORDER TO ASSIST YOU, PLEASE PROVIDE THE FOLLOWING:

  • Speech SDK log taken from a run that exhibits the reported issue.

Crashes before log is taken

Describe the bug

I'm installing on an unsupported platform. I'm running a Unity App (6.x) on Ubnutu 20.x on a Raspberry Pi (Arm64) running on top of Box64. To be clear I understand this is not a supported scenario. This same app runs fine on many other platforms.

To Reproduce

The problem I'm having is that my app crashes as soon as I instantiate the cognitive services sdk, this line is a great example:

microphone = AudioConfig.FromDefaultMicrophoneInput(); 

The crash is happening because of the following missing dependencies, which I can not find anywhere:
libcarbon-mock.so
libcore2-mocks.so
libcarbon-tts-mock.so
libMicrosoft.CognitiveServices.Speech.extension.vad.so
libMicrosoft.CognitiveServices.Speech.extension.customcommands.so

If you could document where these can be found I can handle getting this to work, but I can find no reference to any of these in any documentation. I will attach logs to show in more detail what is going on.

Version of the Cognitive Services Speech SDK

v1.44

Platform, Operating System, and Programming Language

  • OS: Ubuntu 20.x
  • Hardware - Raspberry Pi 4 (Arm64) but running Linux X64 via box64
  • Programming language: C# Unity

Additional context

Processor: Box64 on Cortex-A72 @1.80 GHz, 4 core(s) @ 1800 MHz
Available Memory: 1844 MB
Linux Kernel and distribution: Linux 5.15 Ubuntu 22.04 64bit
System Language: en_US
Keyboard Layout: us
[BOX64] Using native(wrapped) libdbus-1.so.3
[BOX64] Using native(wrapped) libX11.so.6
[BOX64] Using native(wrapped) libxcb.so.1
[BOX64] Using native(wrapped) libXau.so.6
[BOX64] Using native(wrapped) libXdmcp.so.6
[BOX64] Using native(wrapped) libXext.so.6
[BOX64] Using native(wrapped) libXcursor.so.1
[BOX64] Using native(wrapped) libXfixes.so.3
[BOX64] Using native(wrapped) libXrender.so.1
[BOX64] Using native(wrapped) libXinerama.so.1
[BOX64] Using native(wrapped) libXi.so.6
[BOX64] Using native(wrapped) libXrandr.so.2
[BOX64] Using native(wrapped) libXss.so.1
[BOX64] Using native(wrapped) libXxf86vm.so.1
[BOX64] Using native(wrapped) libudev.so.1
Selected window backend: x11
[BOX64] Using emulated /home/cameron/emily/emily_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so
[BOX64] MonoBleedingEdge detected, disable Dynarec BigBlock and enable Dynarec StrongMem
[BOX64] BOX64ENV: Variables overridden:
        BOX64_ALLOWMISSINGLIBS=1
        BOX64_DYNAREC_BIGBLOCK=0
        BOX64_DYNAREC_STRONGMEM=1
        BOX64_EMULATED_LIBS=libsqlite3.so.0
        BOX64_PREFER_EMULATED=0
[BOX64] Using native(wrapped) libz.so.1
Mono path[0] = '/home/cameron/emily/emily_Data/Managed'
Mono config path = '/home/cameron/emily/emily_Data/MonoBleedingEdge/etc'
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.core.so
[BOX64] Using native(wrapped) libuuid.so.1
[BOX64] Using emulated /usr/lib/box64-x86_64-linux-gnu/libstdc++.so.6
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.audio.sys.so
[BOX64] Using native(wrapped) libasound.so.2
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.codec.so
[BOX64] Using native(wrapped) libgstreamer-1.0.so.0
[BOX64] Using native(wrapped) libgtk-3.so.0
[BOX64] Using native(wrapped) libgdk-3.so.0
[BOX64] Using native(wrapped) libgobject-2.0.so.0
[BOX64] Using native(wrapped) libglib-2.0.so.0
[BOX64] Using native(wrapped) libgio-2.0.so.0
[BOX64] Using native(wrapped) libgmodule-2.0.so.0
[BOX64] Using native(wrapped) libgdk_pixbuf-2.0.so.0
[BOX64] Using native(wrapped) libpangocairo-1.0.so.0
[BOX64] Using native(wrapped) libpango-1.0.so.0
[BOX64] Using native(wrapped) libcairo.so.2
[BOX64] Using native(wrapped) libgstbase-1.0.so.0
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.embedded.sr.runtime.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.onnxruntime.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.embedded.sr.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.embedded.tts.runtime.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.embedded.tts.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.kws.ort.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.kws.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.lu.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.mas.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libMicrosoft.CognitiveServices.Speech.extension.telemetry.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libsqlite3.so.0
[BOX64] Using native(wrapped) libcurl.so.4
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libpal_azure_c_shared.so
[BOX64] Using emulated /home/cameron/emily/emily_Data/Plugins/libpal_azure_c_shared_openssl3.so
Found 1 interfaces on host : 0) 192.168.0.80
...MANY LINES SNIPPED RELATED TO THE GAME ENGINE...
[BOX64] Error loading needed lib libcarbon-mock.so
[BOX64] Warning: Cannot dlopen("libcarbon-mock.so"/0x3950e2b0, 1)
[BOX64] Error loading needed lib libcore2-mocks.so
[BOX64] Warning: Cannot dlopen("libcore2-mocks.so"/0x3950e2b0, 1)
[BOX64] Error loading needed lib libcarbon-tts-mock.so
[BOX64] Warning: Cannot dlopen("libcarbon-tts-mock.so"/0x3950e2b0, 1)
[BOX64] Error loading needed lib libMicrosoft.CognitiveServices.Speech.extension.vad.so
[BOX64] Warning: Cannot dlopen("libMicrosoft.CognitiveServices.Speech.extension.vad.so"/0x39517b70, 1)
[BOX64] Error loading needed lib libMicrosoft.CognitiveServices.Speech.extension.customcommands.so
[BOX64] Warning: Cannot dlopen("libMicrosoft.CognitiveServices.Speech.extension.customcommands.so"/0x3950d600, 1)
[BOX64] Using native(wrapped) libssl.so.3
[BOX64] Using native(wrapped) libcrypto.so.3
terminate called after throwing an instance of 'Microsoft::CognitiveServices::Speech::Impl::ExceptionWithCallStack'
  what():  Runtime error: Failed to initialize platform (azure-c-shared). Error: 2176
[BOX64] NativeBT: /usr/local/bin/box64() [0x34a50e6c]
[BOX64] NativeBT: /usr/local/bin/box64() [0x34a8a830]
[BOX64] NativeBT: linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xffff923d77dc]
[BOX64] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(+0x7f1f0) [0xffff9225f1f0]
[BOX64] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(raise+0x1c) [0xffff9221a67c]
[BOX64] NativeBT: /lib/aarch64-linux-gnu/libc.so.6(abort+0xe4) [0xffff92207130]
[BOX64] NativeBT: [0xffff3ba0a864]
[BOX64] EmulatedBT: box64(abort+0) [0x30030080]
[BOX64] 23452|SIGABRT @0xffff9225f1f0 (???(/lib/aarch64-linux-gnu/libc.so.6+0x7f1f0)) (x64pc=0x30030080/"???", rsp=0xffff920cd158, stack=0xffff918d0000:>
RSP-0x20:0x00007fff090af274 RSP-0x18:0x0000000000000167 RSP-0x10:0x0000000037543c30 RSP-0x08:0x0000000000000078
RSP+0x00:0x00007fff090a09db RSP+0x08:0x0000ffff920cd1f0 RSP+0x10:0x00000000395181d0 RSP+0x18:0x0000000039518230
RAX:0x0000000037267418 RCX:0x0000ffff9237c4f8 RDX:0x0000000000000001 RBX:0x0000000039525448
RSP:0x0000ffff920cd158 RBP:0x0000ffff9237c6b8 RSI:0x0000000035d12e80 RDI:0x00000000395181e0
 R8:0x00000000ffffffff  R9:0x0000ffff920ccbe0 R10:0x00007fff06023220 R11:0x0000ffff920cc9a0
R12:0x0000000039512050 R13:0x0000ffff920cd258 R14:0x0000ffff920cd538 R15:0x0000ffff920cd530
ES:0x002b CS:0x0033 SS:0x002b DS:0x002b FS:0x0043 GS:0x0053

=================================================================
        Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
        Native stacktrace:
=================================================================
        0x7fff07115346 - /home/cameron/emily/emily_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so : mono_breakpoint_clean_code
        0x7fff070bde7a - /home/cameron/emily/emily_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so : mono_unity_backtrace_from_context

=================================================================
        Telemetry Dumper:
=================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions