PaleMoon hangs when closing on current master branch

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

User avatar
__Sandra__
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2022-05-16, 08:00
Location: Chernihiv, Ukraine

PaleMoon hangs when closing on current master branch

Unread post by __Sandra__ » 2024-10-27, 18:45

Run PaleMoon, open close several tabs, sites. Then close PaleMoon. When closing PaleMoon, the process does not end for a long time (visible in the task manager) and then an error appears. It also does not work about:support, shows an empty table.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36622
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PaleMoon hangs when closing on current master branch

Unread post by Moonchild » 2024-10-27, 20:30

What is the error?
Have you tried using Safe Mode/disabling extensions?
{{This headspace for lease}}
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
__Sandra__
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2022-05-16, 08:00
Location: Chernihiv, Ukraine

Re: PaleMoon hangs when closing on current master branch

Unread post by __Sandra__ » 2024-10-28, 07:19

This is on a clean profile too. Unfortunately, I cleaned the assembly tree, so the error message is not informative (not loaded PDB).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36622
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PaleMoon hangs when closing on current master branch

Unread post by Moonchild » 2024-10-28, 07:46

The "not closing for a long time" can happen if websites cause GC/CC hangups because shutdown of the browser is asynchronous (to ensure all parts of the browser are properly closed and everything in the profile is wrapped up to a safe state) and it tries to properly clean up and release all resources. After a timeout, the watchdog will kill the process in a harder way if shutdown doesn't happen. While this shutdown process is going on, the task manager will show Pale Moon's process still active but the application window is closed already. This is normal.

Which sites did you open?

I also cannot reproduce an issue with the troubleshooting information page. Have you tried clobbering and rebuilding from scratch?
{{This headspace for lease}}
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
__Sandra__
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2022-05-16, 08:00
Location: Chernihiv, Ukraine

Re: PaleMoon hangs when closing on current master branch

Unread post by __Sandra__ » 2024-10-28, 13:44

I think something is wrong with this commit https://repo.palemoon.org/MoonchildProd ... 4c72b874d5. The code works correctly before it, but they are already hanging with it.

The error message is not informative. This is MOZ_CRASH("Shutdown too long, probably frozen, causing a crash.");

Code: Select all

>	xul.dll!mozilla::`anonymous namespace'::RunWatchdog(void * arg) Строка 153	C++
 	nss3.dll!_PR_NativeRunThread(void * arg) Строка 421	C
 	nss3.dll!pr_root(void * arg) Строка 139	C
 	[Внешний код]	
 	ucrtbase.dll![Указанные ниже кадры могут быть неверны или отсутствовать, символы для ucrtbase.dll не загружены]	Нет данных

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36622
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PaleMoon hangs when closing on current master branch

Unread post by Moonchild » 2024-10-28, 13:50

__Sandra__ wrote:
2024-10-28, 13:44
I think something is wrong with this commit https://repo.palemoon.org/MoonchildProd ... 4c72b874d5. The code works correctly before it, but they are already hanging with it.
hmm. weird.
OK well I'll back that out then. I'm not sure why fixing type confusion would actually cause issues but it doesn't actually solve the problem I entered it for anyway, so... needs more research then.
{{This headspace for lease}}
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
__Sandra__
Apollo supporter
Apollo supporter
Posts: 32
Joined: 2022-05-16, 08:00
Location: Chernihiv, Ukraine

Re: PaleMoon hangs when closing on current master branch

Unread post by __Sandra__ » 2024-10-28, 14:07

Steps to Reproduce.

Delete the profile, start PaleMoon. Refuse the default browser. Open a new tab, open "www.google.com.ua" in it. Find something, for example "1". Open some youtube link video in the new tab, go to the tab and wait the full page loading, watch a little video (10-15 seconds). Go to the previous tab. In Google tools (9 dot), choose a "Maps". Wait for the full load, take a little over the map. Close all new tabs, wait 5-10 seconds and close PaleMoon.

Post Reply