Skip to content

Uncaught exception OC_PythonException #32

@ctpelok77

Description

@ctpelok77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions