vcl/source/app/scheduler.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f08f5f00ad9718666a1422eb67d3c6040da1a8d9
Author:     Miklos Vajna <[email protected]>
AuthorDate: Wed Feb 4 08:53:01 2026 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Wed Feb 25 08:43:13 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.
    
    (cherry picked from commit e215ab181639c8a51a1a3d1bf6f6874496b19cd7)
    
    Change-Id: I56515c482a63916e69cddc8c0ae116298158f649
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200202
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    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)

Reply via email to