linebender / linebender/druid

KeyEvent crashes on macOS.

Open
#1,720 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

crash shell/mac
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I am developing my app with druid and find the KeyEvent will crush my app. I thought I missed something so I run example/event_viewer with cargo run --example=event_viewer. It still crashes, but only happened when I don't select the interactive_area.

So, the behaviors are:

  1. run cargo run --example=event_viewer in my shell
  2. event_viewer window shows
    a. I click any keys now and app crashed
    b. I click interactive_area and press the keys. app runs normally.

My env:

  • macos 11.2.3
  • Intel CPU
  • rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run cargo run --example=event_viewer on macOS and reproduce the crash by pressing a key before selecting the interactive_area in druid/examples/event_viewer.rs around line 228. Trace the KeyEvent handling for the two focus states; done means key presses no longer crash the event_viewer window when the interactive area is not selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.