abhimanyu14 / compose-emoji-picker Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
In the alpha14 build, we are seeing this crash consistently. Can you please help us here?
Fatal Exception: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at emoji.core.emojiparser.EmojiParserImpl.parseEmojiData(EmojiParserImpl.java:53)
at emoji.core.emojiparser.EmojiParser$DefaultImpls.parseEmojiData$default(EmojiParser.java:6)
at emoji.core.emojifetcher.EmojiFetcherImpl$fetchEmojiData$1.onResponse(EmojiFetcherImpl.kt:77)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
I see that you are using disk caching to save the emojis to be working offline. even when the user is online, why not show the offline emojis first and then update the cache from the internet. This will be useful since it takes a while for users to see the emoji's and the user sees "Fetching Emoji's". if the user is offline, then it's super quick.
Please let me know if you need any clarifications on this issue. Thanks :)
Thanks for the great library. Can you please help me fix this crash that happens for few users? I want the app to not crash but show some error message a tleast.
Fatal Exception: java.io.IOException: Fetch failed: Read timed out
at emoji.core.datasource.EmojiDataSourceImpl$getAllEmojis$2$1.onFetchFailure(EmojiDataSourceImpl.java:38)
at emoji.core.emojifetcher.EmojiFetcherImpl$fetchEmojiData$1.onFailure(EmojiFetcherImpl.kt:45)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
gradle.properties
settings.gradle.kts
build.gradle.kts
com.android.application 8.3.1
org.jetbrains.kotlin.android 1.9.23
com.android.library 8.3.1
app/build.gradle.kts
composeOptions 1.5.11
androidx.core:core-ktx 1.12.0
androidx.activity:activity-compose 1.8.2
androidx.compose.ui:ui 1.6.4
androidx.compose.ui:ui-tooling-preview 1.6.4
androidx.compose.material3:material3 1.2.1
com.google.android.material:compose-theme-adapter 1.2.1
androidx.emoji2:emoji2 1.4.0
composeemojipicker/build.gradle.kts
org.jetbrains.kotlinx.binary-compatibility-validator 0.15.0-Beta.1
composeOptions 1.5.11
androidx.core:core-ktx 1.12.0
androidx.lifecycle:lifecycle-runtime-ktx 2.7.0
androidx.activity:activity-compose 1.8.2
androidx.compose.ui:ui 1.6.4
androidx.compose.material3:material3 1.2.1
androidx.emoji2:emoji2 1.4.0
com.github.Abhimanyu14:emoji-core 1.0.13
gradle/wrapper/gradle-wrapper.properties
gradle 8.7
We are getting the following crash in the app. Can you please help us fix this issue? we are using alpha11 version
implementation "com.github.Abhimanyu14:compose-emoji-picker:1.0.0-alpha11"
Fatal Exception: java.lang.IllegalArgumentException: Padding must be non-negative
at androidx.compose.foundation.layout.PaddingElement.<init>(Padding.kt:336)
at androidx.compose.foundation.layout.PaddingElement.<init>(Padding.kt:64)
at androidx.compose.foundation.layout.PaddingKt.padding-VpY3zN4(Padding.kt:85)
at androidx.compose.foundation.layout.AlignmentLineKt.paddingFrom-4j6BHR0(AlignmentLine.kt:82)
at androidx.compose.foundation.layout.PaddingKt.padding-VpY3zN4$default(Padding.kt:82)
at com.makeappssimple.abhimanyu.composeemojipicker.ComposeEmojiPickerBottomSheetUIKt$ComposeEmojiPickerBottomSheetUI$2$2$1$1$2$1.invoke(ComposeEmojiPickerBottomSheetUI.kt:308)
at com.makeappssimple.abhimanyu.composeemojipicker.ComposeEmojiPickerBottomSheetUIKt$ComposeEmojiPickerBottomSheetUI$2$2$1$1$2$1.invoke(ComposeEmojiPickerBottomSheetUI.kt:298)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:118)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.foundation.lazy.LazyListIntervalContent$item$3.invoke(LazyListIntervalContent.kt:59)
at androidx.compose.foundation.lazy.LazyListIntervalContent$item$3.invoke(LazyListIntervalContent.kt:59)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:139)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.foundation.lazy.LazyListItemProviderImpl$Item$1.invoke(LazyListItemProviderImpl.java:79)
at androidx.compose.foundation.lazy.LazyListItemProviderImpl$Item$1.invoke(LazyListItemProviderImpl.java:77)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:213)
at androidx.compose.foundation.lazy.layout.LazyLayoutPinnableItemKt.LazyLayoutPinnableItem(LazyLayoutPinnableItem.kt:58)
at androidx.compose.foundation.lazy.LazyListItemProviderImpl.Item(LazyListItemProvider.kt:77)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactoryKt$SkippableItem$1.invoke(LazyLayoutItemContentFactory.kt:135)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactoryKt$SkippableItem$1.invoke(LazyLayoutItemContentFactory.kt:134)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:213)
at androidx.compose.runtime.saveable.SaveableStateHolderImpl.SaveableStateProvider(SaveableStateHolder.kt:84)
at androidx.compose.foundation.lazy.layout.LazySaveableStateHolder.SaveableStateProvider(LazySaveableStateHolder.kt:85)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactoryKt.SkippableItem-JVlU9Rs(LazyLayoutItemContentFactory.kt:134)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactoryKt.access$SkippableItem-JVlU9Rs(LazyLayoutItemContentFactory.kt:1)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactory$CachedItemContent$createContentLambda$1.invoke(LazyLayoutItemContentFactory.kt:101)
at androidx.compose.foundation.lazy.layout.LazyLayoutItemContentFactory$CachedItemContent$createContentLambda$1.invoke(LazyLayoutItemContentFactory.java:91)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109)
at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35)
at androidx.compose.runtime.RecomposeScopeImpl.compose(RecomposeScopeImpl.java:192)
at androidx.compose.runtime.ComposerImpl.recomposeToGroupEnd(Composer.kt:2556)
at androidx.compose.runtime.ComposerImpl.skipCurrentGroup(Composer.kt:2827)
at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3314)
at androidx.compose.runtime.ComposerImpl.recompose$runtime_release(Composer.kt:3265)
at androidx.compose.runtime.CompositionImpl.recompose(Composition.kt:940)
at androidx.compose.runtime.Recomposer.performRecompose(Recomposer.kt:1155)
at androidx.compose.runtime.Recomposer.access$performRecompose(Recomposer.kt:127)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.kt:583)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$1.invoke(Recomposer.java:551)
at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.java:109)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch(AndroidUiDispatcher.java:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:69)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1341)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1352)
at android.view.Choreographer.doCallbacks(Choreographer.java:952)
at android.view.Choreographer.doFrame(Choreographer.java:878)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1326)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8248)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.