Kotlin / Kotlin/multik

combination of android sharedUserId and multik leading to crashes

Open
#203 3 comments 1 reaction 0 assignees View on GitHub
api bug platform:android
Dominant language
Kotlin
Stars
734
Forks
51
Avg merge
9h 52m
Merged PRs (30d)
6

Description

Hi, there is some weird error when using android:sharedUserId="android.uid.system" and importing multik-core + multik-kotlin
* android:sharedUserId="android.uid.system" with keys and other android or kmp libs works
* multik also works fine, while there is no android:sharedUserId defined in manifest

Exception in runtime when using .dot
```
Caused by java.lang.IllegalStateException: Fail to find engine. Consider to add one of the following dependencies:
- multik-default
- multik-kotlin
- multik-openblas
at org.jetbrains.kotlinx.multik.api.EngineKt.enginesProvider(Engine.kt:13)
at org.jetbrains.kotlinx.multik.api.Engine.(Engine.kt:68)
at org.jetbrains.kotlinx.multik.api.Multik.getLinalg(Multik.kt:49)
at org.jetbrains.kotlinx.multik.api.linalg._linalgKt.dotDefMMNumber(_linalg.kt:21)
...
```

found in both version 0.2.2 and version 0.2.3, happens with sample android project adding just uid + signingConfigs and multik

what do you think could be the cause of such an error?

Contributor guide

Open the contributing guide

Research direction

Reproduce the crash in the sample Android project using android:sharedUserId="android.uid.system", signingConfigs, and multik-core plus multik-kotlin. Start with the EngineKt.enginesProvider and Engine initialization frames in Engine.kt, then compare dependency discovery with and without sharedUserId; done means identifying the cause and defining a reproducible fix or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.