Skip to content

**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Start a fresh processing budget for each search** #520

Description

@mberrys

P1 Badge Start a fresh processing budget for each search

When the document has been open for more than the default two-minute maxElapsed, searching a content stream with at least 256 operations fails immediately because this reuses the session budget whose timer began at session construction; PDFPageContentProcessor periodically calls checkElapsed() and rethrows PDFBudgetExceededException, while QuickDocumentModel::search() does not catch it. Reset or create an operation-scoped budget before searching, and convert exhaustion into a failed/incomplete search result instead of letting the exception escape the QML-triggered call.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #516 (comment)

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