buckwheat icon indicating copy to clipboard operation
buckwheat copied to clipboard

Crash clicking checkmark when writing comment

Open chefexperte opened this issue 1 year ago • 3 comments

Describe the bug When adding a new comment in the app, the app crashes when clicking on the checkmark. If I click somewhere else on the screen to close the input field, it does not crash.

To Reproduce Steps to reproduce the behavior:

  1. Open App
  2. Click on Comment
  3. Click Checkmark
  4. Crash

However, I am not able to reproduce this every time. It only happens sometimes. I hope the crashlog is somewhat useful.

Expected behavior The comment should be saved

Screenshots Screenshot_20230923-143541_Buckwheat

Please complete the following information:

  • Device: Pocophone F1
  • OS: Android13
  • Version 3.16.0

Additional context

time: 1695472090114
msg: java.lang.IllegalStateException: Event can't be processed because we do not have an active focus target.
stacktrace: java.lang.IllegalStateException: Event can't be processed because we do not have an active focus target.
	at androidx.compose.ui.platform.AndroidComposeView.dispatchKeyEvent(Unknown Source:661)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1965)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1965)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1965)
	at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1965)
	at com.android.internal.policy.DecorView.superDispatchKeyEvent(DecorView.java:488)
	at com.android.internal.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1906)
	at android.app.Activity.dispatchKeyEvent(Activity.java:4277)
	at et.dispatchKeyEvent(Unknown Source:24)
	at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:402)
	at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6713)
	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6579)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6034)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6091)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6057)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6222)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6065)
	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6279)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6038)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6091)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6057)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6065)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6038)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6091)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6057)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6255)
	at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:6435)
	at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3651)
	at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:3171)
	at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:3162)
	at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3628)
	at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:154)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:335)
	at android.os.Looper.loopOnce(Looper.java:161)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7936)
	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:854)

chefexperte avatar Sep 23 '23 12:09 chefexperte

Hi, I was not able to quickly reproduce this bug, but I roughly understand where it is happening. I'll try to reproduce it later and fix it, thanks

danilkinkin avatar Sep 25 '23 18:09 danilkinkin

Yeah, as I said, I also was not able to reproduce it with success, but I thought it might still be worth looking at.

chefexperte avatar Oct 01 '23 12:10 chefexperte

I believe I get the same crash when hitting enter (in the emulator) after writing a comment.

danielyrovas avatar Oct 25 '23 21:10 danielyrovas