Azure-Samples / Azure-Samples/MipSDK-File-Java-Basic

SDK fails "silently" on Ubuntu 20.04

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
3
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

We're trying to get this SDK to work both on Windows 10 and Ubuntu 20.04.

The SDK seems to work OK on Windows, even though manually copying DLLs here and there is not ideal for anything other than a POC, but at least we can get it to label documents correctly.

After getting it to work on Windows we tried to get the exact same code (but with the mip_sdk_java_wrapper_ubuntu2004_1.11.72_preview.tar.gz files of course) to run on Linux. It compiles and runs but the Java app crashes when trying to execute `mipContext = MIP.createMipContext(mipConfiguration);`
No exception is thrown. When I decompile the java wrapper JAR file I can see that it's probably because it calls into the compiled C++ .so libs and presumably something goes wrong there. I am pasting below the logs from mip_sdk.miplog (logging at Trace level).

```
Info 2022-05-12 10:37:08.746 default_logger_delegate.cpp:162 java (128896) "Logger initialized with format:%level %datetime{%Y-%M-%d %H:%m:%s.%g} %fbase:%line %process ""%msg"" %func %thread" void mipns::DefaultLoggerDelegate::InitHelper(const string&) 139762585151232
Info 2022-05-12 10:37:08.800 default_logger_delegate.cpp:163 java (128896) "Log file:mip_data/mip/logs/mip_sdk.miplog" void mipns::DefaultLoggerDelegate::InitHelper(const string&) 139762585151232
Info 2022-05-12 10:37:08.800 default_logger_delegate.cpp:164 java (128896) "Machine name: [unknown-host], User name: [ubuntu]" void mipns::DefaultLoggerDelegate::InitHelper(const string&) 139762585151232
Trace 2022-05-12 10:37:08.800 diagnostic_factory.cpp:363 java (128896) "Initializing OneDS" std::shared_ptr mipns::CreateOneDSAriaHelper(const string&, const mipns::DiagnosticConfiguration&) 139762585151232
Trace 2022-05-12 10:37:08.801 oneds_helper.cpp:198 java (128896) "Initializing OneDS LogManager, fastShutdownEnabled: false" evt_handle_t mipns::OneDSHelper::InitLogManager(const string&, const mipns::DiagnosticConfiguration&, const string&) 139762585151232
Info 2022-05-12 10:37:08.801 oneds_helper.cpp:254 java (128896) "OneDS configuration: {""name"":""mip-sdk-for-cpp"",""maxTeardownUploadTimeInSec"":1,""stats"":{""interval"":0},""enableNetworkDetector"":true,""cacheFilePath"":""mip_data/mip/mip/telemetry"",""enableTrace"":false,""traceLevelMask"":4294967295,""minimumTraceLevel"":0}" evt_handle_t mipns::OneDSHelper::InitLogManager(const string&, const mipns::DiagnosticConfiguration&, const string&) 139762585151232
```

ANy ideas? Is Ubuntu 20.04 supported or not?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el ejemplo de Java en Ubuntu 20.04 en `MIP.createMipContext(mipConfiguration)` usando los archivos de `mip_sdk_java_wrapper_ubuntu2004_1.11.72_preview.tar.gz`. Revisa la salida generada de `mip_sdk.miplog` y las dependencias nativas de C++ de `.so` para determinar por qué la inicialización termina sin una excepción. Se considera terminado cuando se documente si Ubuntu 20.04 es compatible y se identifique el fallo o el diagnóstico necesario.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java, ubuntu
Área
operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.