-
Notifications
You must be signed in to change notification settings - Fork 28
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
Uncaught exception OC_PythonException #32
Comments
Getting possibly identical error with python3.8.8 & running OS 13.4, did you bold those two lines ('forwarding' & 'CFRUNLOOP...') yourself? Also I'm generating this error kind of every time I run 01_hello_world.py, whether the Dash is on, off, or if I have bluetooth turned on or off (on my mac, having just toggled it to test). First time I ran the script it asked for permission for Terminal to use Bluetooth, no other permission clues. This is getting into stuff I have no experience in, but seems like a WonderPy-talking-to-Mac-OS-Bluetooth stack issue? Would be interested if anybody knows of any other workarounds/alternate bindings! % python3 01_hello_world.py |
Got past the above error message from following this discussion: #2 BUT! Just hit more weird errors. Nothing insurmountable, but was over my head in the details. Then found this, https://github.com/IlyaSukhanov/morseapi. |
If you guys want to try my fork of a fork from morse ~ https://github.com/mewmix/bleak-dash Still a work in progress getting everything converted to async, but atleast you can use python 3 |
Will check it out! |
Was able to connect my apple-chip and intel-chip macs! Great instructions, was super easy on both machines |
Great news. Thank you for testing. I am working on porting over the sensors now so we can hook into different states like "Dash is on his side" or "Dash picked up" , or the holy grail, "is something infront of dash?" :) |
When running the example on Mac 11.6.1 with python 3.8.2, the following exception occurs the moment Dash is switched on.
$ python 01_hello_world.py
Disconnecting any connected robots..
Searching for robot types: (all) with names: (any).
matching robots: 0 non-matching robots: 0 .......... 2022-02-26 15:50:21.182 python[60257:22632289] *** Terminating app due to uncaught exception 'OC_PythonException', reason: '<class 'AssertionError'>: <memory at 0x10f2d9400>'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff205d71db __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20310d92 objc_exception_throw + 48
2 _objc.cpython-38-darwin.so 0x0000000104ce8a60 PyObjC_FreeCArray + 0
3 _objc.cpython-38-darwin.so 0x0000000104ce233d -[OC_PythonObject forwardInvocation:] + 733
4 CoreFoundation 0x00007fff2053efd6 forwarding + 819
5 CoreFoundation 0x00007fff2053ec18 _CF_forwarding_prep_0 + 120
6 CoreBluetooth 0x00007fff309e5271 -[CBCentralManager handlePeripheralDiscovered:] + 1703
7 CoreBluetooth 0x00007fff309e7048 -[CBCentralManager handleMsg:args:] + 811
8 CoreBluetooth 0x00007fff309d9037 -[CBManager xpcConnectionDidReceiveMsg:args:] + 177
9 CoreBluetooth 0x00007fff309d8f73 __30-[CBXpcConnection _handleMsg:]_block_invoke + 66
10 libdispatch.dylib 0x00007fff202ba623 _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x00007fff202bb806 _dispatch_client_callout + 8
12 libdispatch.dylib 0x00007fff202c15ea _dispatch_lane_serial_drain + 606
13 libdispatch.dylib 0x00007fff202c20e0 _dispatch_lane_invoke + 417
14 libdispatch.dylib 0x00007fff202c7a08 _dispatch_main_queue_callback_4CF + 613
15 CoreFoundation 0x00007fff20599f18 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
16 CoreFoundation 0x00007fff2055c112 __CFRunLoopRun + 2755
17 CoreFoundation 0x00007fff2055af8c CFRunLoopRunSpecific + 563
18 Foundation 0x00007fff212ec607 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
19 libffi.dylib 0x00007fff2da458f5 ffi_call_unix64 + 85
20 ??? 0x000000011060b750 0x0 + 4569741136
)
libc++abi: terminating with uncaught exception of type NSException
Abort trap: 6
The text was updated successfully, but these errors were encountered: