ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-7013) .NET: Ignite does not start on macOS
Date Mon, 27 Nov 2017 12:30:01 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-7013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266734#comment-16266734
] 

Pavel Tupitsyn commented on IGNITE-7013:
----------------------------------------

{{LoadLibrary}} + {{DllImport}} combo does not work on macOs (where {{LoadLibrary}} is called
with a full path, and {{DllImport}} uses simple name).

We have to switch to {{dlopen}} + {{dlsym}} and manual delegate creation.

> .NET: Ignite does not start on macOS
> ------------------------------------
>
>                 Key: IGNITE-7013
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7013
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.4
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>              Labels: .NET, xplat
>             Fix For: 2.4
>
>
> Looks like dlopen code is incorrect for macOS:
> {code}
> Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libcoreclr.so':
The specified module or one of its dependencies could not be found.
>  (Exception from HRESULT: 0x8007007E)
>    at Apache.Ignite.Core.Impl.Unmanaged.DllLoader.NativeMethodsCore.dlopen(String filename,
Int32 flags)
>    at Apache.Ignite.Core.Impl.Unmanaged.DllLoader.Load(String dllPath)
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDll(String filePath, String simpleName)
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadJvmDll(String configJvmDllPath, ILogger
log)
>    at Apache.Ignite.Core.Impl.IgniteUtils.LoadDlls(String configJvmDllPath, ILogger log)
>    at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
>    at ignite_nuget_test.Program.Main(String[] args) in /Users/vveider/Development/VCS/Git/ignite-dotnetcore-demo/Program.cs:line
17
> {code}
> Steps to reproduce:
> {code}
> git clone https://github.com/ptupitsyn/ignite-dotnetcore-demo.git
> cd ignite-dotnetcore-demo
> dotnet run
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message