From e50032ecb55e84e28d0b61376f11c4ae9c65f905 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 11 Nov 2025 14:35:55 -0700 Subject: [PATCH] for debug builds, show stacktrace for TempoMap::fetch_condition() failure --- libs/temporal/tempo.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 1980fa8199..00a816ebd5 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -5444,5 +5444,11 @@ ScopedTempoMapOwner::end_local_tempo_map () bool TempoMap::fetch_condition () { - return !_tempo_map_p || !_tempo_map_p->scope_owner() || _tempo_map_p->scope_owner()->depth() == 0; + bool ret (!_tempo_map_p || !_tempo_map_p->scope_owner() || _tempo_map_p->scope_owner()->depth() == 0); +#ifndef NDEBUG + if (!ret) { + PBD::stacktrace (std::cerr, 29); + } +#endif + return ret; }