Skip to content

Lifecycle error catch hides underlying exception message #4

@mormj

Description

@mormj

Something in start() threw an exception when instantiating an object, but it was hard to find the underlying exception because it was caught and this was shown instead.

terminate called after throwing an instance of 'gr::exception'
  what():  scheduler gr::scheduler::Simple<(gr::scheduler::ExecutionPolicy)1, gr::profiling::null::Profiler>: throwing ignored exception 2025-01-13T22:26:28.537: ../code/subprojects/gnuradio4/core/include/gnuradio-4.0/Block.hpp:824:103: constexpr void gr::Block<Derived, Arguments>::requestStop() [with Derived = gr::digital::BitScrambler<unsigned char>; Arguments = {}]: Block 'gr::digital::BitScrambler<unsigned char>#0' invalid state transition in gr::digital::BitScrambler<unsigned char> from ERROR -> to REQUESTED_STOP in method: constexpr void gr::Block<Derived, Arguments>::requestStop() [with Derived = gr::digital::BitScrambler<unsigned char>; Arguments = {}] at ../code/subprojects/gnuradio4/core/include/gnuradio-4.0/Scheduler.hpp:165

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