PythonEditor icon indicating copy to clipboard operation
PythonEditor copied to clipboard

Issue using webUSB/serial in chrome 75 Mac

Open microbit-mark opened this issue 5 years ago • 3 comments

Clicking on Serial should open the REPL, this doesn't appear to be the case, though the micro:bit does say it's connected. Recording of trying to connect Screen Recording 2019-07-02 at 02 19 pm

If I try to flash the device I get "Error: Bad response for 17 -> 131 Please restart your micro:bit and try again" Screenshot 2019-07-02 at 18 07 09

Here is the console output Screenshot 2019-07-02 at 18 04 48 Screenshot 2019-07-02 at 18 04 33

Have tested this with a micro:bit running 0249 and 0254 on Chrome 75 Mac

DETAILS TXT:

DAPLink Firmware - see https://mbed.com/daplink

Unique ID: 9900000031634e45006e40020000005e0000000097969901 HIC ID: 97969901 Auto Reset: 1 Automation allowed: 0 Overflow detection: 0 Daplink Mode: Interface Interface Version: 0249 Git SHA: 9c5fd81e6545d00b7f7c21ca9d8577dbd6a5fed2 Local Mods: 0 USB Interfaces: MSD, CDC, HID, WebUSB Interface CRC: 0xcdb7b2a3 Remount count: 0 URL: https://microbit.org/device/?id=9900&v=0249

cc @microbit-carlos

microbit-mark avatar Jul 02 '19 17:07 microbit-mark

Do you have this setting set in Chrome? https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document

~Master (or a PR against master)~ Latest WebUSB replaces localStorage with a temporary variable so should fix this

https://github.com/bbcmicrobit/PythonEditor/pull/159

microbit-sam avatar Jul 02 '19 18:07 microbit-sam

Not quite that, but I was disallowing cookies from *.microbit.org, so I updated the settings and I can nowaccess serial Screenshot 2019-07-03 at 08 40 15 but the REPL doesn't appear on click/ctrl+c. The console gives me Screenshot 2019-07-03 at 08 41 22

If this is all fixed in #159 that's fine.

microbit-mark avatar Jul 03 '19 07:07 microbit-mark

Sorry, slippery finger, I didn't mean to close this ticket.

Even if cookies are blocked the editor should open the serial terminal. Is blocking cookies a good way to replicate this problem? If so, then we should test again as soon as the next beta is released, and see if #159 fixes the issue or not.

That last error is likely related to https://github.com/bbcmicrobit/PythonEditor/issues/109, however I've never seen it with small packets like sending the Ctrl+C. If you pressed the editor button multiple times did it eventually execute?

microbit-carlos avatar Jul 03 '19 08:07 microbit-carlos