MM2-0 / Kvaesitso

A search-focused Android launcher
https://kvaesitso.mm20.de/
GNU General Public License v3.0
2.51k stars 86 forks source link

Crash on editing favourites #954

Closed Jabster28 closed 4 months ago

Jabster28 commented 4 months ago

Description

Please provide as many information about the crash as possible (What did you do before the crash happened? Steps to reproduce?)

I had an app shortcut in my favourites menu that was removed when i freezed the app with Hail. I tried to add the shortcut back after unfreezing the app, which worked, but now the launcher crashes whenever I press the editor button in the favourites list in the app drawer.

Strack trace

org.json.JSONException: No value for image
    at org.json.JSONObject.get(JSONObject.java:398)
    at org.json.JSONObject.getString(JSONObject.java:559)
    at de.mm20.launcher2.websites.WebsiteDeserializer.deserialize(WebsiteSerialization.kt:40)
    at de.mm20.launcher2.searchable.SavableSearchableRepositoryImpl.access$fromDatabaseEntity(SavableSearchableRepository.kt:151)
    at de.mm20.launcher2.searchable.SavableSearchableRepositoryImpl$get$$inlined$map$1$2.emit(Emitters.kt:111)
    at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:5)
    at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:17)
    at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:1)
    at kotlinx.coroutines.flow.FlowKt__ChannelsKt.emitAllImpl$FlowKt__ChannelsKt(Channels.kt:129)
    at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt:12)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:111)
    at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:24)
    at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:3)
[10 lines truncated]

Device info

APP.VERSION : 1.31.1
APP.VERSIONCODE : 2024070100
APP.SIGNATURE : rx1fSnL7r5/OMoFC0e1KPqTndXQ=
LAUNCHER.APP : android
TIMEZONE : Europe/London
VERSION.RELEASE : 14
VERSION.INCREMENTAL : 11860263
VERSION.SDK.NUMBER : 34
BOARD : oriole
BOOTLOADER : slider-14.5-11677881
BRAND : google
CPU_ABI : arm64-v8a
CPU_ABI2 :
DISPLAY : AP2A.240605.024
FINGERPRINT : google/oriole/oriole:14/AP2A.240605.024/11860263:user/release-keys
HARDWARE : oriole
HOST : r-82b05a39f2cf359a-4258
ID : AP2A.240605.024
MANUFACTURER : Google
MODEL : Pixel 6
PRODUCT : oriole
TAGS : release-keys
TIME : 1716016311000
TYPE : user

MM2-0 commented 4 months ago

Outdated version, fixed in 1.31.2