support icon indicating copy to clipboard operation
support copied to clipboard

Pybricksdev regularly gets stuck while uploading program

Open thomasbrus opened this issue 1 year ago • 4 comments

Well first of all, for PacketLogger to work on Mac OS X one needs to install a Bluetooth logging profile now so that took me a little while to figure out.

The Bluetooth logging profile is now required on macOS to use PacketLogger (same as iOS). This first started in recent macOS 14.5 seeds.

Please install the Bluetooth logging profile from: https://developer.apple.com/bug-reporting/profiles-and-logs/?platform=macos&name=bluetooth and try this again.

https://forums.developer.apple.com/forums/thread/750801?answerId=786523022#786523022

I'm on Mac OS X (intel Sonoma 14.5), using pybricksdev version v1.0.0a50 and Python 3.10.14. It regularly happens happens that it gets stuck uploading ( pybricksdev run ble main.py --name "<hub name>"). The larger the program the more often it seems to occur (makes sense since they take longer to upload I suppose).

It doesn't seem to make a difference whether I turn off bluetooth on nearby devices or not, it seems quite random. I attached two logs, the first one got stuck at 4% and the other one at 2%, but it also happens further along sometimes.

swerve_drive.log swerve_drive_2.log

thomasbrus avatar Aug 01 '24 18:08 thomasbrus

Well first of all, for PacketLogger to work on Mac OS X one needs to install a Bluetooth logging profile now so that took me a little while to figure out.

Thanks for the tip. I updated the Bleak troubleshooting docs with this extra step.

it seems quite random.

Thanks for the logs. It looks like we have a bug in the firmware.

image

The Technic hub is not sending a response to one of the write requests.

dlech avatar Aug 10 '24 18:08 dlech

Ok, do let me know if you need any other information

thomasbrus avatar Aug 11 '24 18:08 thomasbrus

@dlech it works a lot better already now that I have an M3 macbook, no issues at all so far.

thomasbrus avatar Sep 29 '24 19:09 thomasbrus

It looks like we have a bug in the firmware.

Hey David,

is this Bug fixed?

cu, Markus

grawuli avatar Nov 01 '24 21:11 grawuli