Skip to content

SDK fails "silently" on Ubuntu 20.04 #10

@georgechr

Description

@georgechr

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::OneDSAriaHelper> 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?

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