Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.
Please direct questions that are Mac or Linux-specific (dealing with installation and OS integration) to the appropriate Linux or Mac board.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only. The main focus here is on Pale Moon on Windows. Please direct your questions that are specific for Linux and Mac to the dedicated boards for those operating systems.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Locked
metamorphosis

Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by metamorphosis » 2016-02-06, 01:48

I know there's probably a genuinely valid reason for this, but the fact is, pale moon takes a while to free itself from memory after it's closed.
If I close then remember something and reopen the browser 5-10 seconds later, I don't want to have to click on the 'ok' for the "pale moon is already loaded but is not responding" dialog, then wait another 10 seconds.
Just let it load a second instance?
Thanks,
Matt

lyceus

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by lyceus » 2016-02-06, 05:50

Hello Matt!

I think that this because Pale Moon just doesn't close instantly when you quit. But also it needs to clean the plugin container and RAM cache, so this time may vary depending of your session. That's it, if you see a palemoon.exe or plugin-container.exe for long time after you closed Pale Moon, then that is a hang and may need to be investigated.

User avatar
Pallid Planetoid
Knows the dark side
Knows the dark side
Posts: 3843
Joined: 2015-10-06, 16:59
Location: Los Angeles CA USA

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by Pallid Planetoid » 2016-02-06, 07:43

Other browsers will do the same thing, a certain amount of housekeeping has to be done when the browser is closed. :idea: (I recall FF generally taking longer actually)
Current Pale Moon(x86) Release | WIN10 | I5 CPU, 1.7 GHz, 6GB RAM, 500GB HD[20GB SSD]
Formerly user Pale Moon Rising - to provide context involving embedded reply threads.
Good judgment comes from experience and a lot of that comes from bad judgment. - Will Rogers
Knowing Pale Moon is indisputably #1 is defined by knowing the totality of browsers. - Pale Moon Rising

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by Moonchild » 2016-02-06, 10:58

"Just letting it load a second instance" isn't possible. You'd have 2 programs trying to read and write the same files at the same time in your profile.
If you close the browser only to immediately reopen it again, why did you close it in the first place? :)
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

metamorphosis

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by metamorphosis » 2016-02-07, 03:41

Of course it's possible - just have it poll until the second instance isn't detected. Simple as that.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8883
Joined: 2012-10-09, 19:37
Location: Seriphia Galaxy

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by New Tobin Paradigm » 2016-02-07, 08:45

metamorphosis wrote:Of course it's possible - just have it poll until the second instance isn't detected. Simple as that.
And risk profile corruption.. Nah.. RESOLVED INVALID
How far are you prepared to go? How much are you prepared to risk? How many people are you prepared to sacrifice for victory?
Are you willing to die friendless, alone, deserted by everyone? Because that's what may be required of you in the war that is to come.

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by Moonchild » 2016-02-07, 14:08

metamorphosis wrote:Of course it's possible - just have it poll until the second instance isn't detected. Simple as that.
If it's that simple according to you, feel free to experiment with your own builds -- and if you can find a robust way to:
  1. Determine what to poll (people may be having multiple instances running, having it running under a different user, etc.)
  2. Do this cross-platform
  3. Determine how and how often to poll
  4. Deal with disk cache latency after closing (locked files)
  5. Not leave the user "hanging" without feedback when profile cleanup maintenance takes longer than expected
then I'm very interested in seeing your patches :)
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

metamorphosis

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by metamorphosis » 2016-02-21, 22:13

Moonchild wrote:
metamorphosis wrote:Of course it's possible - just have it poll until the second instance isn't detected. Simple as that.
If it's that simple according to you, feel free to experiment with your own builds -- and if you can find a robust way to:
  1. Determine what to poll (people may be having multiple instances running, having it running under a different user, etc.)
  2. Do this cross-platform
  3. Determine how and how often to poll
  4. Deal with disk cache latency after closing (locked files)
  5. Not leave the user "hanging" without feedback when profile cleanup maintenance takes longer than expected
then I'm very interested in seeing your patches :)
Oh come now. You're already detecting that it's running or not running. That's why you're displaying that message. It's simply a matter of doing that, not displaying a message, waiting a second, doing the same detection, rinse and repeat until undetected. But at least don't be sarcastic please, it's unbecoming.
Last edited by metamorphosis on 2016-02-21, 22:29, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by Moonchild » 2016-02-21, 22:26

So your solution would be to leave the user hanging. Nope, sorry, not gonna happen.
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

metamorphosis

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by metamorphosis » 2016-02-21, 22:30

Moonchild wrote:So your solution would be to leave the user hanging. Nope, sorry, not gonna happen.
Yeah, that's what you're already doing, except the user has to repeatedly open and click your message and wait, whereas the program would do so automatically and waste less time. It's up to you, but don't be misleading about it.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29249
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Minor gripe: Please remove the "pale moon is already loaded but is not responding" hang

Post by Moonchild » 2016-02-21, 23:18

metamorphosis wrote:It's up to you, but don't be misleading about it.
I'm not being misleading about anything, so please don't make it personal. There is some actual logic behind doing it this way.

There are a few other options in a slow shutdown and user restart situation, all of which will interrupt the user one way or another.
Not closing the main window until everything has been cleaned up upon shutdown is one - people will think the program is unresponsive/hangs/has crashed.
Letting the user hang on startup (your proposal) - people will think the program fails to start, may even try to start a second copy; that may end up waiting for each other -- perfect race condition.
Attaching to the process already found running -- not a viable option because it's in a shutting-down state that cannot be cancelled.

So, informing the user that the process has been found in a still-running state is the sane thing to do. If this takes enough time in your case that you can make several attempts at launching the browser before it's done, then you may need to look into cleaning your history, session, extensions, and other factors that may influence the updating/cleanup of work files in your profile folder.

If you so rapidly want to exit and restart the browser in your workflow, then you should think of a different solution that doesn't actually shut down the browser at all avoiding your "minor gripe".
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

Locked