vcl/source/app/scheduler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit e215ab181639c8a51a1a3d1bf6f6874496b19cd7 Author: Miklos Vajna <[email protected]> AuthorDate: Wed Feb 4 08:53:01 2026 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Wed Feb 4 15:59:26 2026 +0100 vcl: log more info about a task that throws an exception vcl's scheduler assumes that tasks don't throw exceptions. Currently we log something like: > warn:vcl.schedule:3886322:2983641:vcl/source/app/scheduler.cxx:590: Uncaught com.sun.star.container.NoSuchElementException message: "Default Page Style" Which would be more usable if we know either the source location of that throw and the backtrace or at least the task name. The later seems to be available, so log it; hopefully next time this happens we'll know how to fix the actual problem. Change-Id: I56515c482a63916e69cddc8c0ae116298158f649 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198674 Tested-by: Jenkins Reviewed-by: Miklos Vajna <[email protected]> diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index cf7078e096d9..91d10f1133ee 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -618,7 +618,8 @@ void Scheduler::CallbackTaskScheduling() } catch (css::uno::Exception&) { - TOOLS_WARN_EXCEPTION("vcl.schedule", "Uncaught"); + TOOLS_WARN_EXCEPTION("vcl.schedule", + "Uncaught exception for task '" << pTask->GetDebugName() << "'"); std::abort(); } catch (std::exception& e)
