Leading wildcards on certain search terms cause 100% CPU, freezing browser
See original GitHub issueSee the following example: https://jsfiddle.net/8s0dzp2c/22/
Something about the amazon URL being stored in this url
field causes the browser to freeze and become unresponsive when searching by a wildcard query
.
https://www.amazon.com/ap/signin?_encoding=utf8&openid.assoc_handle=usflex&openid.claimed_id=http%3a%2f%2fspecs.openid.net%2fauth%2f2.0%2fidentifier_select&openid.identity=http%3a%2f%2fspecs.openid.net%2fauth%2f2.0%2fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3a%2f%2fspecs.openid.net%2fauth%2f2.0&openid.ns.pape=http%3a%2f%2fspecs.openid.net%2fextensions%2fpape%2f1.0&openid.pape.max_auth_age=0&openid.return_to=https%3a%2f%2fwww.amazon.com%2f%3fref_%3dnav_custrec_signin
If I trim the URL to something like https://www.amazon.com
, there is no issue. See here: https://jsfiddle.net/8s0dzp2c/24/
Also, if I remove the wildcard altogether, it doesn’t freeze anymore.
Is there some character in the URL that is causing things to bug out or something?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Windows 10 Freezing With 100% CPU Usage
Recently it began freezing without warning at random times. It's weird when it freezes, because some things still work.
Read more >Critical Issues Addressed in PAN-OS Releases
Bugs Affected Platform(if any). /Affected Version Description (release note)
PAN‑92564 8.0.0‑8.0‑8, 8.1.0
PAN‑86882 8.0.0‑8.0.7. and all older Mainlines
PAN‑81990 PA‑5220,PA‑5250. /. 8.0.4 Multiple DP restarts by...
Read more >Elasticsearch Search Latency - Opster
Handle search traffic and reduce latency with Opster's search gateway · 1. Optimizing your queries · 2. Avoid using scripts · 3. Avoid...
Read more >How to Troubleshoot Browser Content Redirection
This article describes the Citrix policies required to configure Browser Content Redirection feature, and provides general troubleshooting guidelines.
Read more >Set Chrome policies for users or browsers - Google Support
Enrolled browsers to enforce policies when users open Chrome browser on managed Microsoft Windows, Apple Mac, or Linux computers. Signing in is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just published 2.3.3 which includes a fix for this issue. Let me know if it works for you, thanks.
So, I did a bit of digging and I found this. I cannot remember why it was there in the first place, plus the TODO comment seems to imply that at some point in the past I was also unsure about it. All the current tests pass without it, plus, the particular case you mention in this issue is no longer a problem. The performance for all wildcard matching also improves (slightly) without it.
It seems like removing it should be fine, but I’m a bit cautious. I need to convince myself that it isn’t serving any purpose. I’m going to write some more tests and try and trace through the implementation to try and remember what I was thinking 3 years ago when adding that code!