zacharee/FabricateOverlay

App crashes when backspacing search term

Joristdh opened this issue · 0 comments

The app crashes when I backspace a character in the app or resource search pop-up.

Steps to reproduce :

  1. Add a new overlay.
  2. Enter some search term (e.g. "system").
  3. See that the results are filtered.
  4. Clear the search term.
    a. By quickly backspacing all the characters.
    b. By selecting the entire term and clearing it in one go.
  5. The app crashes.

This happens in both the app and resource search pop-up. My current workaround is just closing and reopening the pop-up to clear the search term.

I can provide the full logcat output if necessary, but these lines are printed at the beginning of the error:

null: ------- beginning of crash
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: tk.zwander.fabricateoverlay, PID: 31924 24.
AndroidRuntime: java.lang.IllegalStateException LayoutNode should be attached to an Owner
AndroidRuntime: at androidx.compose.ui.node.LayoutNode.kt requireOwner(LayoutNode.kt:1407)
AndroidRuntime: at androidx.compose.ui.node.ModifierLocalConsumerNode.notifyConsumerOfChanges(ModifierLocalConsumerNode.kt:42)