ubergeek42 / weechat-android

Simple Weechat-Relay Android Client
524 stars 103 forks source link

EmojiCompat raises exception in logcat every few seconds #561

Open tatokis opened 1 year ago

tatokis commented 1 year ago

Running stock LineageOS 18.1, and I observe the following printed in logcat every time a message is received, whether the app is in focus or in the background.

02-07 08:11:04.735 22040 22610 W System.err: java.lang.IllegalStateException: Not initialized yet
02-07 08:11:04.736 22040 22610 W System.err:    at androidx.emoji2.text.EmojiCompat.process(SourceFile:33)
02-07 08:11:04.736 22040 22610 W System.err:    at androidx.emoji2.text.EmojiCompat.process(SourceFile:34)
02-07 08:11:04.736 22040 22610 W System.err:    at com.ubergeek42.WeechatAndroid.relay.Line.ensureSpannable(SourceFile:380)
02-07 08:11:04.736 22040 22610 W System.err:    at com.ubergeek42.WeechatAndroid.relay.BufferList$$ExternalSyntheticLambda1.handleMessage(SourceFile:344)
02-07 08:11:04.736 22040 22610 W System.err:    at com.ubergeek42.weechat.relay.connection.RelayConnection$$ExternalSyntheticLambda4.run(SourceFile:96)
02-07 08:11:04.736 22040 22610 W System.err:    at androidx.core.app.ActivityCompat$$ExternalSyntheticLambda0.run(SourceFile:538)
02-07 08:11:04.736 22040 22610 W System.err:    at com.ubergeek42.weechat.relay.connection.Utils$FriendlyThread.run(Unknown Source:7)

According to https://developer.android.com/reference/androidx/emoji/text/EmojiCompat#process(java.lang.CharSequence,int,int,int,int) process() throws IllegalStateException because init() has not been called.