dicio-android icon indicating copy to clipboard operation
dicio-android copied to clipboard

Error when trying to call someone

Open Guarmanda opened this issue 8 months ago • 1 comments

It seems like the commands does not work at all on lineageos

Image

Exception

  • User action: Skill evaluation
  • App locale: fr_FR
  • Version: 3.1
  • OS: Linux Android 15 - 35
Crash log

java.lang.IllegalStateException: Attempting to launch an unregistered ActivityResultLauncher with contract dev.shreyaspatil.permissionFlow.contract.RequestPermissionsContract@57c9952 and input [Ljava.lang.String;@4307423. You must ensure the ActivityResultLauncher is registered before calling launch().
	at androidx.activity.result.ActivityResultRegistry$register$3.launch(ActivityResultRegistry.kt:184)
	at androidx.activity.compose.ActivityResultLauncherHolder.launch(ActivityResultRegistry.kt:150)
	at androidx.activity.compose.ManagedActivityResultLauncher.launch(ActivityResultRegistry.kt:139)
	at androidx.activity.result.ActivityResultLauncher.launch(ActivityResultLauncher.kt:37)
	at org.stypox.dicio.ui.home.HomeScreenKt.HomeScreen$requestPermissions(HomeScreen.kt:81)
	at org.stypox.dicio.ui.home.HomeScreenKt.access$HomeScreen$requestPermissions(HomeScreen.kt:1)
	at org.stypox.dicio.ui.home.HomeScreenKt$HomeScreen$1$1.invoke(HomeScreen.kt:88)
	at org.stypox.dicio.ui.home.HomeScreenKt$HomeScreen$1$1.invoke(HomeScreen.kt:88)
	at org.stypox.dicio.eval.SkillEvaluatorImpl.evaluateMatchingSkill(SkillEvaluator.kt:123)
	at org.stypox.dicio.eval.SkillEvaluatorImpl.suspendProcessInputEvent(SkillEvaluator.kt:77)
	at org.stypox.dicio.eval.SkillEvaluatorImpl.access$suspendProcessInputEvent(SkillEvaluator.kt:36)
	at org.stypox.dicio.eval.SkillEvaluatorImpl$processInputEvent$1.invokeSuspend(SkillEvaluator.kt:60)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)

Guarmanda avatar Apr 19 '25 22:04 Guarmanda

This is indeed a problem. It's caused by a hack I used to make it possible to request permissions from the business logic without having to pass through the UI layer, but apparently it does not work well... See https://github.com/Stypox/dicio-android/blob/2e88b1a834417ba8c98a5751bd20cff440128417/app/src/main/kotlin/org/stypox/dicio/di/ActivityForResultManager.kt

Stypox avatar Jul 04 '25 18:07 Stypox