Open claybridges opened 3 years ago
I cannot reproduce this issue.
Are there any error messages in /var/log/karabiner/virtual_hid_device_service.log
?
Just retried. Here's the log:
virtual_hid_device_service.log
And here's the command line:
$ make run
sudo ./build/Release/virtual-hid-device-service-client
Password:
Press control+c to quit.
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
^Cconnect_failed asio.system:61
Different asio error this time... ¯\_(ツ)_/¯
.
Test #2/more info:
.xcodeproj
into XcodeAnd it works fine. Still fails via make run
.
Thank you for your confirmation! It seems Karabiner-DriverKit-VirtualHIDDevice services works well on your machine. So I guess this issue is caused by version mismatch of example code.
Although I try to avoid it, incompatible changes are sometimes made in the client libraries. v1.16.0 changed the file name of the UNIX domain socket used for communication. Due to this change, previous example code cannot communicate with the v1.22.0 driver.
Please upgrade to your repository and build examples again.
I always run the repo code vs. the correct package (per the commit tag), E.g. commit tag v1.22.0
vs. dist/Karabiner-DriverKit-VirtualHIDDevice-1.22.0.pkg
.
This session is present master
branch vs. 1.22.0, which should be OK, right?:
$ git show
commit 88d989a2cf0e4594f88fe995d7d74e3f958afe58 (HEAD -> master, upstream/master, upstream/HEAD, origin/master)
Merge: 39b1fca 682f76e
Author: Takayama Fumihiko <tekezo@pqrs.org>
Date: Sun Apr 25 13:45:49 2021 +0900
Merge pull request #16 from claybridges/claybridges-docs-add-xcodegen
Fix README by adding `brew install xcodegen`
$ pwd
/Users/clay/dev/exo/Karabiner-DriverKit-VirtualHIDDevice/examples/virtual-hid-device-service-client
$ defaults read /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/Info.plist CFBundleVersion
1.22.0
$ make
/usr/bin/python3 ../../scripts/update-version.py
xcodegen generate
⚙️ Generating plists...
⚙️ Generating project...
⚙️ Writing project...
Created project at /Users/clay/dev/exo/Karabiner-DriverKit-VirtualHIDDevice/examples/virtual-hid-device-service-client/virtual-hid-device-service-client.xcodeproj
xcodebuild -configuration Release -alltargets SYMROOT="/Users/clay/dev/exo/Karabiner-DriverKit-VirtualHIDDevice/examples/virtual-hid-device-service-client/build"
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release -alltargets SYMROOT=/Users/clay/dev/exo/Karabiner-DriverKit-VirtualHIDDevice/examples/virtual-hid-device-service-client/build
Build settings from command line:
SYMROOT = /Users/clay/dev/exo/Karabiner-DriverKit-VirtualHIDDevice/examples/virtual-hid-device-service-client/build
note: Using new build system
note: Planning build
note: Constructing build description
** BUILD SUCCEEDED ** [1.178 sec]
$ make run
sudo ./build/Release/virtual-hid-device-service-client
Press control+c to quit.
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
connect_failed asio.system:61
^C
Logs from this run:
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] virtual_hid_device_service_clients_manager (pointing) client is removed (size: 0)
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] terminate_virtual_hid_pointing_io_service_client
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] driver_version_ is changed: std::nullopt
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] virtual_hid_pointing_ready_ is changed: std::nullopt
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] virtual_hid_device_service_clients_manager (keyboard) client is removed (size: 0)
[2021-04-25 13:21:09.630] [info] [virtual_hid_device_service] terminate_virtual_hid_keyboard_io_service_client
[2021-04-25 13:21:09.631] [info] [virtual_hid_device_service] driver_version_ is changed: std::nullopt
[2021-04-25 13:21:09.631] [info] [virtual_hid_device_service] virtual_hid_keyboard_ready_ is changed: std::nullopt
Thank you for detailed information!
Hmm, it seems the binary is not rebuilded.
Does executing make clean
before make
solves this issue?
make clean
make
make run
On Big Sur 11.2.3.
Steps to reproduce:
Follow instructions in README to uninstall existing.
Follow instructions in README to install
1.22.0.pkg
, basically like this:Follow instructions in Usage section to test, basically like this:
Expected results: Test works Actual results:
Have confirmed tests work with pkg 1.15.0 and checked out at tag
v1.15.0
.