Skip to content

Sometimes File search cannot be canceled #2571

@jukzi

Description

@jukzi

For example searching for * 1_000_000; in Platform workspace hangs in C:\Users\jkubitz\platform-2024-09-23\git\p2\bundles\org.eclipse.equinox.p2.tests\testData\sat4j\Bug247638.opb

image
image

"Worker-35: File Search Worker" #99 [12772] prio=5 os_prio=0 cpu=389687.50ms elapsed=451.11s tid=0x000002617d846680 nid=12772 runnable  [0x000000e371dfe000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Character.codePointAt([email protected]/Character.java:9320)
        at java.util.regex.Pattern$CharPropertyGreedy.match([email protected]/Pattern.java:4453)
        at java.util.regex.Pattern$Start.match([email protected]/Pattern.java:3787)
        at java.util.regex.Matcher.search([email protected]/Matcher.java:1767)
        at java.util.regex.Matcher.find([email protected]/Matcher.java:787)
        at org.eclipse.search.internal.core.text.TextSearchVisitor.locateMatches(TextSearchVisitor.java:485)
        at org.eclipse.search.internal.core.text.TextSearchVisitor$TextSearchJob.processFile(TextSearchVisitor.java:204)
        at org.eclipse.search.internal.core.text.TextSearchVisitor$TextSearchJob.run(TextSearchVisitor.java:172)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions