-
Notifications
You must be signed in to change notification settings - Fork 35
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
Upload hanging or Device or Resource Busy on Linux #52
Comments
closing as a duplicate of #45 |
I saw the other issue, however mine seems to be slightly different. Mine hangs midway through downloading, and I do have permissions, and there are no other processes that are running as far as I can tell (I ran lsof and tried to kill any other python scripts). |
Can you run |
🤔 you're on the develop branch now (instead of 3.1.3)? Just making sure we're on the same page |
I switched to the wireless upload branch to test that out, but the issue was the same on the master branch and the develop branch. |
I might be able to patch something for this log, but I'm still not sure why it failed half-way through as you originally posted since the log you attached shows it failed at an earlier stage. |
I've created a branch: hotfix/kusti8-debugging that has a potential patch for the log you sent. |
The point at which it fails is different every time, usually stopping earlier every time. I'll try out the fix, thanks. |
I noticed you ctrl+c'd it out. You did say it was hanging, which is odd because we set timeout to something like 1 second with 3 retries of the same command, so it should never hang for more 3-ish seconds. I assume it hangs for 10+ seconds? |
Yeah it hangs for 10+ seconds. I had to Ctrl+c it. |
Hi, the patch prevents it from hanging. It still says device or resource busy, so I have to run |
Glad to hear it works. I'll close this issue for now unless you can determine a consistent workflow that causes the "device or resource busy" error. We'd probably have to report that to upstream pyserial. |
Expected Behavior:
For pros to upload the project to the v5 brain.
Actual Behavior:
Sometimes, I get a Device or Resource Busy message or the upload just hangs at some random percentage and won't continue. Sometimes running
udevadm trigger
and unplugging and replugging works, but other times it just hangs.I am part of the dialout group and this only happens occasionally. If I spin up a Windows VM right after it hangs, and connect that to the USB device, then the upload works without issue. If I reboot and try again, the problem persists.
Steps to reproduce:
pros v5 u
.System information:
Operating System: Ubuntu
PROS Version: 3.1.3
Additional Information
Screenshots/Output Dumps/Stack Traces
After running
udevadm trigger
and replugging the wire, it hangsThe text was updated successfully, but these errors were encountered: