slavabarkov / tidy

Offline semantic Text-to-Image and Image-to-Image search on Android powered by quantized state-of-the-art vision-language pretrained CLIP model and ONNX Runtime inference engine
GNU General Public License v3.0
232 stars 15 forks source link

App crashes on first launch #28

Open pogue opened 2 months ago

pogue commented 2 months ago

I installed the app from F-Droid, version 1.1 and it starts to go through the scanning but immediately crashes. I manually gave the app permissions to Photos & Media before launching (why doesn't it pop up to prompt to request permissions?) and same problem. Uninstalled/reinstalled same problem.

Would saving a logcat output help?

I'm on a Samsung Galaxy S23+ OneUI 6.1 Android 14.

This app sounds like a great idea & I'd love to see it working. Screenshot_20240914_020002_Device care

AshwinSoni-01 commented 1 month ago

It's also crashing for me during file indexing at around 50%.

JorG941 commented 1 month ago

Happens the same to me (S21 FE Exynos, One UI 5.1, Android 13). It crashes at 96%.

Rudrajarvis commented 2 weeks ago

Experiencing same with my Redmi note 10S.

lone-faerie commented 1 week ago

I was having this issue too and this was the logcat message I was getting. I managed to work around it by deleting any pictures from my storage root directory (i.e. /storage/emulated/0) and now the app works.

FATAL EXCEPTION: main Process: com.slavabarkov.tidy, PID: 7008 java.lang.NullPointerException: it.getString(bucketColumn) must not be null at com.slavabarkov.tidy.viewmodels.ORTImageViewModel$generateIndex$1.invokeSuspend(ORTImageViewModel.kt:67) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7918) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@42aa86d, Dispatchers.Main]