Crash when opening duden.de page
Moderator: trava90
Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.
Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
- Newbie
- Posts: 3
- Joined: 2020-07-27, 18:02
Crash when opening duden.de page
Hi PaleMoon Team,
I found PaleMoon 29.3 is crashing when opening a duden.de page like https://www.duden.de/rechtschreibung/Haus
It's consuming more an more memory while on high cpu load.
The script busy error reports line 2113 which contains:
let b = <unique_prefix>__base.getBoundingClientRect();
There is a <unique_prefix>__init function which is called from multiple observers including a MutationObserver.
BR Lexx
I found PaleMoon 29.3 is crashing when opening a duden.de page like https://www.duden.de/rechtschreibung/Haus
It's consuming more an more memory while on high cpu load.
The script busy error reports line 2113 which contains:
let b = <unique_prefix>__base.getBoundingClientRect();
There is a <unique_prefix>__init function which is called from multiple observers including a MutationObserver.
BR Lexx
-
- Board Warrior
- Posts: 1138
- Joined: 2019-04-24, 09:38
Re: Crash when opening duden.de page
As I know it is caused by Google's WebComponents scripts that are in use there.
The profile picture shows my Maico EC30 E ceiling fan.
-
- Hobby Astronomer
- Posts: 23
- Joined: 2021-05-15, 11:44
Re: Crash when opening duden.de page
i just tried to go to duden.de and disable JavaScript in uBlock Origin for that site. Now it seems to work.
Re: Crash when opening duden.de page
If it "crashed" how did you get an a message from the js watchdog that a script is unresponsive?
What was the crash exception code? How is this web compat when it is a crash?
Do you even know what a crash is?
What was the crash exception code? How is this web compat when it is a crash?
Do you even know what a crash is?
-
- Lunatic
- Posts: 399
- Joined: 2016-12-27, 00:12
Re: Crash when opening duden.de page
When open than site, PM freeze. I decided to wait.
After 3-4 minutes, I had a window that I never saw: "Not enough system memory, close other programs in order to prevent data loss"
(PM ate 3,7gb of memory and fell)
... also, the browser Vivaldi fell where I watched a video on yt:
It's something strange ... very strange
SfMBE
After 3-4 minutes, I had a window that I never saw: "Not enough system memory, close other programs in order to prevent data loss"
(PM ate 3,7gb of memory and fell)
... also, the browser Vivaldi fell where I watched a video on yt:
It's something strange ... very strange
SfMBE
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Crash when opening duden.de page
So you have a problem on your system then, not the browser.
Download a better computer.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Crash when opening duden.de page
To the OP: problem seems to be an in-line script on duden's website that does some juggling with adding observers then (likely recursively) calling itself. This is a webmaster error; since it's an in-line script there's also not much we can do about it.
Please contact the site owners and ask them to look into it.
For the record, the script on the URL posted in this topic sits at line 2119 and surrounding, and is manipulating "laminashanalikala" elements, whatever that may be.
Please contact the site owners and ask them to look into it.
For the record, the script on the URL posted in this topic sits at line 2119 and surrounding, and is manipulating "laminashanalikala" elements, whatever that may be.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Board Warrior
- Posts: 1878
- Joined: 2015-09-30, 23:02
- Location: uk.
Re: Crash when opening duden.de page
No crashing here on linux...
user of multiple puppy linuxes..upup,fossapup.scpup,xenialpup.....
Pale moon 29.4.1
Pale moon 29.4.1
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Crash when opening duden.de page
Crashing only happens if you run out of memory. That may take a long while depending on your architecture and amount of available ram
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Newbie
- Posts: 3
- Joined: 2020-07-27, 18:02
Re: Crash when opening duden.de page
Hi again,
I think the duden and chaturbate crashes have the same root cause. I saw both change style in the MutationObserver. It seems that chromium based browsers just ignore changes within a MutationObserver, but palemoon dies.
I've created a small standalone html (see attachment for full html), that triggers the problem (by enforcing a size change inside of the observer):
Since there is no console output in Chromium I suppose they just ignore changes from within an MutationObserver-callback.
Hope that helps to fix the issue.
BR Lexx
BTW: Using and AddOn is not a fix, it's just a workaround.
I think the duden and chaturbate crashes have the same root cause. I saw both change style in the MutationObserver. It seems that chromium based browsers just ignore changes within a MutationObserver, but palemoon dies.
I've created a small standalone html (see attachment for full html), that triggers the problem (by enforcing a size change inside of the observer):
Code: Select all
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
target.style.width=.. // Setting to some different value KILLS PALEMOON
});
});
Hope that helps to fix the issue.
BR Lexx
BTW: Using and AddOn is not a fix, it's just a workaround.
You do not have the required permissions to view the files attached to this post.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Crash when opening duden.de page
I already tried to indicate the cause of this. It's a recursive call of the observer.
The problem is that by setting the style attribute inside a mutationobserver without checking first if the style needs to be changed (and bailing if not), you are causing a mutation to the object which triggers the observer, which sets the style, which changes the object which triggers the observer, which... See what I'm getting at?
Of course it'd be desirable to at least not hang, so I'll look into that, but ultimately this kind of a construct is webmaster error, IMO.
The problem is that by setting the style attribute inside a mutationobserver without checking first if the style needs to be changed (and bailing if not), you are causing a mutation to the object which triggers the observer, which sets the style, which changes the object which triggers the observer, which... See what I'm getting at?
Of course it'd be desirable to at least not hang, so I'll look into that, but ultimately this kind of a construct is webmaster error, IMO.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Newbie
- Posts: 3
- Joined: 2020-07-27, 18:02
Re: Crash when opening duden.de page
Well, I understand this.
IMO it's a conceptual error to have an interface like this. Especially when considering that every item may have slightly different sizes on each browser. So any Not-The-Big-Players-Browser is fucked up. By doing this "recursion" fixes, those player are actively supporting badly written code, finally I would blame the Chromium world to be the root cause of this problem.
Anyway I'm happy that you're looking at it. Thanks a lot.
IMO it's a conceptual error to have an interface like this. Especially when considering that every item may have slightly different sizes on each browser. So any Not-The-Big-Players-Browser is fucked up. By doing this "recursion" fixes, those player are actively supporting badly written code, finally I would blame the Chromium world to be the root cause of this problem.
Anyway I'm happy that you're looking at it. Thanks a lot.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Crash when opening duden.de page
I've looked into this some more and we can't easily solve this on the browser side because the actual callback processing in JS is not in any way related to the mutationobserver.
What anyone who wants to observe a style change and then change that style in the callback should do to prevent issues (this has been a problem for all browsers, actually, and depending on what engine is used it may still be a problem) without needing to redesign their code is to simply make sure to immediately process the style changes and clear the observer queue by issuing an observer.takeRecords() after changing the style in the callback. This is a minimal, perfectly-safe change to website code that effectively stops falling into a recursion trap.
What anyone who wants to observe a style change and then change that style in the callback should do to prevent issues (this has been a problem for all browsers, actually, and depending on what engine is used it may still be a problem) without needing to redesign their code is to simply make sure to immediately process the style changes and clear the observer queue by issuing an observer.takeRecords() after changing the style in the callback. This is a minimal, perfectly-safe change to website code that effectively stops falling into a recursion trap.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite