rdev breaks the app on key press #7839
|
I read this discussion but my problem is different. #7752 I am using MacOS and rdev 0.5.3, trying to listen to key press events. If I run the listen function in If I run the listener without async runtime, which will block setup function, the listener works for key presses and won't exit, but the tauri app is not usable as setup() never finishes. |
Replies: 5 comments 9 replies
|
I tried the same code on windows and Ubuntu 20.04, everything works fine. I also tried the code in a fresh MacOS VM but it quits whenever a key is pressed. Pretty sure it's some problem only on Mac. |
|
I have the same problem 😣,have you solved it? |
|
Same problem here, macos and rdev too |
|
I hit this same crash and this thread was one of the few places discussing it, so let me pay back with what I've learned since. The root cause was eventually tracked down by @AlexKnauth in Narsil/rdev#147: calling Also, if the reason you're listening for keys is a copy or clipboard workflow (it was for me), there's a way out that avoids rdev on macOS entirely: a listen-only |
@helbing Thanks!
I tried this it works on Mac.
If I use a tag from https://github.com/fufesou/rdev/tags 0.3.6 (latest tag in 2020), it still fails. Make sure to use the git url directly.