Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Window Manager Hung...Urgent!

Window Manager Hung...Urgent!
Thread Tools
Junior Member
Join Date: Dec 2001
Location: England
Status: Offline
Reply With Quote
Aug 30, 2003, 11:47 AM
 
Hey Guys,

I've been working all day on my machine and suddenly everything has frozen. The machine hasn't crashed as I can still ssh in but the mouse pointer doesn't move, the keyboard doesn't type.

I think that the Window Manager has crashed - does anyone have any idea as to how I can give it a kick? I have a TextEdit document open with an entire days work in which I stupidly haven't been saving that I can't afford to lose.

If anyone can help I would appreciate it. As another thought can I use an applescript executed remotely to tell TextEdit to save its changes? The file already has a name and all it would need is the equivalent of an Apple+S!

Thanks,

Phil.
PowerMac G4 MDD Dual 867 256MB
PowerBook 12" Revision C 768MB
     
Banned
Join Date: Nov 2002
Location: Hell
Status: Offline
Reply With Quote
Aug 30, 2003, 03:12 PM
 
Open script editor on whatever machine you're sshing in from and paste the following script:

tell application "TextEdit"
save front document
end tell

Then save it as an application, run only. (DON'T CHECK SHOW STARUP SCREEN!)

You can't FTP the file in so you'll have to use AFP because it supports resource forks (the script won't run without it. Then, navigate to wherever you put the script, type: open <script-name> and press return and wait. Check through AFP if the file is saved. If not, I'm very sorry, that's my best shot. Good luck.
     
Banned
Join Date: Nov 2002
Location: Hell
Status: Offline
Reply With Quote
Aug 30, 2003, 03:14 PM
 
Oh, sometimes I have trouble executing scripts remotely, try pulling a "chmod 755" on the script or running open with sudo.
     
Mac Elite
Join Date: Sep 2002
Status: Offline
Reply With Quote
Aug 30, 2003, 04:48 PM
 
I couldn't get the applescript to work, but ZackS works.

ssh into the hung mac.

cd to your home dir

'pico textsave' <return>

type in ZackS applescript.

'tell application "TextEdit"
save front document
end tell'

<control-o> then <control-x>

'osascript textsave' <return>

you should then be able to kill the window manager, that'll spit you out at the login window.
     
Mac Elite
Join Date: Jan 2000
Location: Columbus, OH
Status: Offline
Reply With Quote
Aug 30, 2003, 04:54 PM
 
I wonder if you're having a USB problem.

Maybe you could just try unplugging and plugging in the keyboard and mouse?
HyperNova Software, LLC
     
Mac Elite
Join Date: Aug 2001
Location: Madison, WI
Status: Offline
Reply With Quote
Aug 30, 2003, 05:11 PM
 
Originally posted by msuper69:
I wonder if you're having a USB problem.

Maybe you could just try unplugging and plugging in the keyboard and mouse?
I've had the same thing happen to me in OS X- it's running, takes remote logins, but I can't do anything with the GUI. A USB out/in wouldn't do it for me.

I even used to have a problem that once in a while, I'd wake my cube from sleep, and NO MATTER WHAT I DID, I COULD ONLY TYPE IN ALL CAPS. That's just an annoying, stupid bug, but I haven't seen it for quite some time. Musta got fixed in one of the X.2.something upgrades.

I just tried XI's version, and that works. Only change I'd make is ctl-x and return is all that's needed to save the file.
OS X: Where software installation doesn't require wizards with shields.
     
Junior Member
Join Date: Dec 2001
Location: England
Status: Offline
Reply With Quote
Aug 30, 2003, 05:42 PM
 
You guys are great, but unfortunately OS X decided to "fix it" for me. Just as I was going to do what you described the window manager restarted and all my apps quit out.

*Poof*

All my work gone.

<Sigh>, anyone know where / if TextEdit stores backup files???

Phil.
PowerMac G4 MDD Dual 867 256MB
PowerBook 12" Revision C 768MB
     
Senior User
Join Date: Aug 2002
Location: Oxford, England
Status: Offline
Reply With Quote
Aug 30, 2003, 06:58 PM
 
This happened to me a few Panther builds ago..just ended up restarting.
Luke
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:16 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2