Skip to content

Instantly share code, notes, and snippets.

@breandan
Created July 21, 2022 22:42
Show Gist options
  • Save breandan/26281bce64085bb4d3e406a951c46b61 to your computer and use it in GitHub Desktop.
Save breandan/26281bce64085bb4d3e406a951c46b61 to your computer and use it in GitHub Desktop.
java.util.ServiceConfigurationError: org.jetbrains.kotlinx.multik.api.Engine: Provider org.jetbrains.kotlinx.multik.openblas.JvmNativeEngine could not be instantiated
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
at kotlin.collections.CollectionsKt___CollectionsKt.toCollection(_Collections.kt:1295)
at kotlin.collections.CollectionsKt___CollectionsKt.toMutableList(_Collections.kt:1328)
at kotlin.collections.CollectionsKt___CollectionsKt.toList(_Collections.kt:1319)
at org.jetbrains.kotlinx.multik.api.EngineKt.enginesProvider(Engine.kt:6)
at org.jetbrains.kotlinx.multik.api.Engine.<clinit>(Engine.kt:48)
at org.jetbrains.kotlinx.multik.api.Multik.getMath(Multik.kt:48)
at org.jetbrains.kotlinx.multik.ndarray.operations.IteratingNDArrayKt.sum(IteratingNDArray.kt:1242)
at ai.hypergraph.markovian.mcmc.MarkovChain$tt$2.invoke(MarkovChain.kt:95)
at ai.hypergraph.markovian.mcmc.MarkovChain$tt$2.invoke(MarkovChain.kt:85)
at ai.hypergraph.markovian.concurrency.ResettableLazy$makeInitBlock$1.invoke(ResettableLazy.kt:42)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at ai.hypergraph.markovian.concurrency.ResettableLazy.getValue(ResettableLazy.kt:34)
at ai.hypergraph.markovian.mcmc.MarkovChain.getTt(MarkovChain.kt:85)
at ai.hypergraph.markovian.mcmc.MarkovChain$sample$1.invoke(MarkovChain.kt:125)
at kotlin.sequences.GeneratorSequence$iterator$1.calcNext(Sequences.kt:591)
at kotlin.sequences.GeneratorSequence$iterator$1.hasNext(Sequences.kt:609)
at kotlin.sequences.TakeSequence$iterator$1.hasNext(Sequences.kt:421)
at kotlin.sequences.SequencesKt___SequencesKt.last(_Sequences.kt:243)
at ai.hypergraph.markovian.mcmc.MarkovChain$sample$5.invoke(MarkovChain.kt:166)
at ai.hypergraph.markovian.mcmc.MarkovChain$sample$5.invoke(MarkovChain.kt:166)
at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
at kotlin.sequences.TakeSequence$iterator$1.next(Sequences.kt:417)
at kotlin.sequences.SequencesKt___SequencesKt.joinTo(_Sequences.kt:2883)
at kotlin.sequences.SequencesKt___SequencesKt.joinToString(_Sequences.kt:2905)
at kotlin.sequences.SequencesKt___SequencesKt.joinToString$default(_Sequences.kt:2904)
at ai.hypergraph.markovian.mcmc.MarkovChainTest.testNumerical(MarkovChainTest.kt:44)
Caused by:
java.lang.UnsatisfiedLinkError: /tmp/jni_multik4436747837473776983/libmultik_jni-linuxX64.so: /tmp/jni_multik4436747837473776983/libmultik_jni-linuxX64.so: ELF load command address/offset not properly aligned
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at org.jetbrains.kotlinx.multik.openblas.JvmLoader.load(Loader.kt:72)
at org.jetbrains.kotlinx.multik.openblas.JvmNativeEngine.<init>(JvmNativeEngine.kt:7)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:789)
... 28 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment