-
Notifications
You must be signed in to change notification settings - Fork 4
Pale Moon freezing on / search #2
Comments
Using Palemoon 27.3.0 and Pentadactyl 1.2pre-pm-3 release (XPI from palemoon.org), with all JS enabled (NoScript disabled), I cannot replicate this issue. Interestingly, and possibly related, I DO get a different bug. Namely, when I press 'n' the search only switches between the first match (the string "Search bugs: proxy") and the textbox and back again. When matching the first match, pressing 'N' will take me to the last one. Continuing to press 'N' will backwards match until it gets to the text box. Then, the next 'N' will jump back to the last match again. It would seem matching the textbox somehow forgets the search position. NOTE: I haven't tried any of this with GIT master yet (not sure if that's different from the XPI on palemoon.org). |
I forgot to add, this is www-client/palemoon-bin-27.3.0 from the palemoon overlay with Pentadactyl 1.2pre-pm-3. I tried again with a fresh PM profile and --new-instance, then installed a fresh Pentadactyl 1.2pre-pm-3 from the PM addon site. I'm still able to reproduce the issue:
PM is frozen, you cannot scroll anymore. I guess I have too few debug symbols, taking a short look inside strace:
|
I can reproduce the issue on:
Freezes occur when you search for a word that is also present within a text input box on the page. I found the same issue reported upstream 5digits#206, so it is not specific to PaleMoon port. This kind of issue requires deep knowledge of Pentadactyl's implementation, thus we should wait for upstream maintainers to handle it. I labelled it accordingly in this repo, and leave it open until there is a fix upstream. |
See here for a workaround while it's not fixed. |
Hi, this bug is very annoying as it requires to kill my whole browser session. |
@Massimo-B, I worked around it like this: common/modules/finder.jsm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm
index 90745ee0..fbc8b24a 100644
--- a/common/modules/finder.jsm
+++ b/common/modules/finder.jsm
@@ -533,7 +533,7 @@ var RangeFind = Class("RangeFind", {
let regexp = this.regexp && word != util.regexp.escape(word);
this.lastRange = null;
this.regexp = false;
- if (regexp) {
+ if (true || regexp) {
let re = RegExp(word, "gm" + this.flags);
for (this.range of this.ranges) {
for (let match of util.regexp.iterate(re, DOM.stringify(this.range.range, true))) { Which gives the behaviour described by @krayon above. The issue seems to happen if some text field matches the pattern. I didn't really get how it works and why it hangs though, have no idea even how to properly debug it. |
See issues: * 5digits/dactyl#206 (comment) * madand/pentadactyl-pm#2 The `RangeFinder.highlight()` function from `finder.jsm` gets stuck in an infinite loop when the search term matches input field text. Rebind `/` and `?` to first hide all input fields, then search. In case the input fields are required again, `<C-?>` unhides them.
Still unstable as commented here. I have the .pentadactylrc from troyp, however I don't have the patch from xaizek, testing this now... No, added the patch, rebuild the xpi, reinstalled to Palemoon 28, still freezing. |
Going to https://sourceforge.net/p/gsoap2/bugs/search/?q=proxy&page=1 and starting a / search with "proxy" makes my Pale Moon freezing with high cpu usage. Can anyone reproduce that?
The text was updated successfully, but these errors were encountered: