Fail full shutdown

User Help for Seamonkey and Mozilla Suite
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Fail full shutdown

Post by Diamanti »

Very often Seamonkey not full shutdown in Window.
I have start other Seamonkey that close previous.
How to investigate it?
Last edited by Diamanti on January 21st, 2022, 1:58 pm, edited 3 times in total.
User avatar
DanRaisch
Moderator
Posts: 127185
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Fail full shutdown

Post by DanRaisch »

How are you shutting down SeaMonkey? Are you using File->Exit?
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: Fail full shutdown

Post by Diamanti »

I use often:
Cc["@mozilla.org/toolkit/app-startup;1"].getService(appStartup).quit(appStartup.eRestart | appStartup.eAttemptQuit);
and sometimes click the close button in the window.
I restart, window close but not restart. Then I start new SM that warning profiled locked, I click OK and start.
But not always, only a few times. It is not reproducible. It usually happens after a long use.
User avatar
therube
Posts: 21698
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Fail full shutdown (Linux)

Post by therube »

Maybe that code is no longer relevant or no longer fully relevant?

The thing to do, IMO, is to quit by using File | Exit & see if your issues persist.

And if they do not, then look at that code...
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
LinuxUserSince1991
Posts: 337
Joined: February 2nd, 2007, 5:03 pm
Location: Los Angeles area

Re: Fail full shutdown

Post by LinuxUserSince1991 »

Diamanti wrote:I use often:
Cc["@mozilla.org/toolkit/app-startup;1"].getService(appStartup).quit(appStartup.eRestart | appStartup.eAttemptQuit);
and sometimes click the close button in the window.
I restart, window close but not restart. Then I start new SM that warning profiled locked, I click OK and start.
But not always, only a few times. It is not reproducible. It usually happens after a long use.
I've been using "File | Quit" for decades, and have had no problems. Is there a reason you're not doing that?

If SM fails to close completely, you can always 'kill' its process at a command line. That happens to me on rare occasions, like when SM crashes and I tell it to restart, but when it tries, it says SM is already running and fails to restart. Like it just gets stuck in memory! But those incidents are few and far between. "File | Quit" should be all you need as a general rule.
User avatar
James
Moderator
Posts: 27999
Joined: June 18th, 2003, 3:07 pm
Location: Made in Canada

Re: Fail full shutdown (Linux)

Post by James »

Diamanti, closing with the window close button only closes that one window and not SeaMonky unless that was the Only window open. The File > Quit will close SeaMonky as said.
User avatar
ElTxolo
Posts: 2806
Joined: July 30th, 2007, 9:35 am
Location: Localhost

Re: Fail full shutdown

Post by ElTxolo »

Diamanti wrote:I use often:
Cc["@mozilla.org/toolkit/app-startup;1"].getService(appStartup).quit(appStartup.eRestart | appStartup.eAttemptQuit);

[....]
  • Image Cut the frills, and use what everyone else does: File => Quit (Ctrl-Q)
How to Ask Questions The Smart Way - How to Report Bugs Effectively ;)
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20240109 SeaMonkey/2.53.18.1
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20240324 SeaMonkey/2.53.19 :lildevil:

~
frg
Posts: 1361
Joined: December 15th, 2015, 1:20 pm

Re: Fail full shutdown (Linux)

Post by frg »

Hmm wonder if appStartup.eForceQuit | appStartup.eRestart are valid with the above code.

Try:
ChromeUtils.import("resource://gre/modules/Services.jsm");

const appStartup = Services.startup;

appStartup.quit(appStartup.eForceQuit | appStartup.eRestart);

or
ChromeUtils.import("resource://gre/modules/Services.jsm");

Services.startup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);

or
Cc["@mozilla.org/toolkit/app-startup;1"].getService(appStartup).quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);

or
let appStartup = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup);
appStartup.quit(Ci.nsIAppStartup.eAttemptQuit | Ci.nsIAppStartup.eRestart);
User avatar
LinuxUserSince1991
Posts: 337
Joined: February 2nd, 2007, 5:03 pm
Location: Los Angeles area

Re: Fail full shutdown

Post by LinuxUserSince1991 »

ElTxolo wrote:
Diamanti wrote:I use often:
Cc["@mozilla.org/toolkit/app-startup;1"].getService(appStartup).quit(appStartup.eRestart | appStartup.eAttemptQuit);

[....]
  • Image Cut the frills, and use what everyone else does: File => Quit (Ctrl-Q)
Exactly! I'm a geek, I mean an old, long-time, love-my-command-line, raised-on-UNIX, coding-is-fun geek, but even I don't go around reinventing the wheel when there's absolutely no reason to! I'm trying hard to understand why the OP isn't just using the obvious "File | Quit" like the rest of us....
Rob_S
Posts: 809
Joined: December 13th, 2007, 8:54 am
Location: Vancouver Island BC
Contact:

Re: Fail full shutdown (Linux)

Post by Rob_S »

On windows recent versions we have another easy option.

Right-click the Seamonkey icon on the windows taskbar, and select at the bottom, "close all windows"

This always works for me.
User avatar
ElTxolo
Posts: 2806
Joined: July 30th, 2007, 9:35 am
Location: Localhost

Re: Fail full shutdown

Post by ElTxolo »

LinuxUserSince1991 wrote: Exactly! I'm a geek, I mean an old, long-time, love-my-command-line, raised-on-UNIX, coding-is-fun geek, but even I don't go around reinventing the wheel when there's absolutely no reason to! I'm trying hard to understand why the OP isn't just using the obvious "File | Quit" like the rest of us....
  • Totally agree!!! :D
    I've always liked the simplicity, and the KISS principle. Image










    Cheers!! Image
How to Ask Questions The Smart Way - How to Report Bugs Effectively ;)
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20240109 SeaMonkey/2.53.18.1
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20240324 SeaMonkey/2.53.19 :lildevil:

~
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: Fail full shutdown

Post by Diamanti »

LinuxUserSince1991 wrote:I'm trying hard to understand why the OP isn't just using the obvious "File | Quit" like the rest of us....
I can explain that I prefer a single click to a button in toolbat that open menu, select item, exit, open windows taskbar, reopen SM.
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: Fail full shutdown (Linux)

Post by Diamanti »

Remain the SeaMonkey.exe process with this class windows:
MailBiffNotificationMessageWindow
OleDdeWndClass
MSCTFIME UI
IME

same problem also if I use File->Exit
Diamanti
Posts: 778
Joined: June 12th, 2008, 9:02 am

Re: Fail full shutdown

Post by Diamanti »

I'm experiencing that the problem occurs when you exceed a certain memory consumption.
Is there no developer that deals with this case?
TPR75
Posts: 1352
Joined: July 25th, 2011, 8:11 am
Location: Poland

Re: Fail full shutdown

Post by TPR75 »

Diamanti wrote:I'm experiencing that the problem occurs when you exceed a certain memory consumption.
Check if you if you have "cache in memory" or on disk:
http://forums.mozillazine.org/viewtopic ... #p14894004

Maybe it'll help to save/lower RAM consumption.
--
Post Reply