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)
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;PDFPageContentProcessorperiodically callscheckElapsed()and rethrowsPDFBudgetExceededException, whileQuickDocumentModel::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)