-
Notifications
You must be signed in to change notification settings - Fork 87
pcscd: auto exit when not in use #18767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty commit body, no explanation of why the change is being made.
Jenkins BuildsClick to see older builds (25)
|
ce3ebd1
to
b885a0c
Compare
fixes `libusb` being busy when app is closed and started again. ``` starting pcscd with /tmp/.mount_StatusKDpnfI/usr/bin/pcscd -f & 00000000 [136864157226944] ccid_usb.c:672:OpenUSBByName() Can't claim interface 3/5: LIBUSB_ERROR_BUSY 00000172 [136864157226944] ifdhandler.c:160:CreateChannelByNameOrChannel() failed 00000003 [136864157226944] ../src/readerfactory.c:1132:RFInitializeReader() Open Port 0x200000 Failed (usb:058f/9540:libudev:0:/dev/bus/usb/003/005) 00000003 [136864157226944] ../src/readerfactory.c:371:RFAddReader() Alcor Micro AU9540 init failed. 00000043 [136864157226944] ../src/hotplug_libudev.c:517:HPAddDevice() Failed adding USB device: Alcor Micro AU9540 qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter ``` https://man.freebsd.org/cgi/man.cgi?query=pcscd&sektion=8&manpath=freebsd-release-ports#end <img width="713" height="153" alt="Screenshot 2025-09-04 at 12 11 18 PM" src="https://github.com/user-attachments/assets/78aa1104-7791-4e6e-9a7f-391466b089d2" /> fixes: #18635
b885a0c
to
686892d
Compare
@siddarthkay is it possible that this is missing the previous fix or that the docker cache wasn't refreshed? Because I see the first issue:
|
@jrainville : its possible, let me purge docker cache in all CI hosts |
@siddarthkay I just tested. I restarted my PC for a clean state. First run was ok, but closing and then reopening, same problem |
Same problem, though while restarting my main release app, I found something interesting. If I run the app, login, then quit, on the next app start, the reader works. So maybe you change needs to be applied for before login too? |
Hmm interesting @jrainville : Thanks for testing! I'll mark this PR as draft and test with my linux PC tomorrow! |
Summary
fixes
libusb
being busy when app is closed and started again.https://man.freebsd.org/cgi/man.cgi?query=pcscd&sektion=8&manpath=freebsd-release-ports#end
fixes: #18635