Skip to content

Breakpoints with Oak-D C++ support #175

@bobdavies2000

Description

@bobdavies2000

All the example code provided with depthai-core (just downloaded) is working on my Windows 10 (latest). If I set a breakpoint anywhere, it correctly hits that breakpoint and I am able to inspect variables. I can even single step through the code. However, if I hit "Continue" the execution, it always fails. The error is below. It doesn't matter which example I choose to test with, hit a breakpoint and it is unable to continue execution.

Have you seen this before?

Bob Davies

Unhandled exception at 0x00007FFEC0A94ED9 in edge_detector.exe: Microsoft C++ exception: std::runtime_error at memory location 0x0000000B5C6FE5C8.

The location is here in DataQueue.hpp:

template <class T>
std::shared_ptr<T> get() {
    if(!running) throw std::runtime_error(exceptionMessage.c_str());   <<<<<<<<<<<<<<<<<<running is false so exception 
    std::shared_ptr<ADatatype> val = nullptr; <<<<<<<<< next instruction...
    if(!queue.waitAndPop(val)) {
        throw std::runtime_error(exceptionMessage.c_str());
        return nullptr;
    }
    return std::dynamic_pointer_cast<T>(val);
}

It also happens in tryGet, depending on the example app, with the same value for running (false.)

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