The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   TextEdit freezing and related issues (http://hintsforums.macworld.com/showthread.php?t=100839)

Mikey-San 04-28-2009 03:58 PM

Quote:

Originally Posted by lguerb (Post 530648)
Activity Monitor doesn't give me any information. When TextEdit is working fine (e.g. before saving), I look at the monitor, then pres save in TextEdit and everything remains the same (except for the ¨Not responding¨label on the corresponding process).

I said sample the hung app with Activity Monitor.

http://img530.imageshack.us/img530/3...cture2b.th.png

The sample log may be revealing.

lguerb 04-28-2009 04:18 PM

Ok, I don't know anything about this, but the log (I sample the process when it is not responding) is the following.

Code:

Sampling process 175 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling TextEdit (pid 175) every 1 millisecond
Call graph:
    417 Thread_2507
      417 0x1df6
        417 NSApplicationMain
          417 -[NSApplication run]
            417 -[NSApplication sendEvent:]
              417 -[NSWindow sendEvent:]
                417 -[NSControl mouseDown:]
                  417 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]
                    417 -[NSCell trackMouse:inRect:ofView:untilMouseUp:]
                      417 -[NSCell _sendActionFrom:]
                        417 -[NSControl sendAction:to:]
                          417 -[NSApplication sendAction:to:from:]
                            417 -[NSSavePanel(NSSavePanelRuntime) ok:]
                              417 -[NSSavePanel(NSSavePanelRuntime) dismissWindow:]
                                417 -[NSApplication endSheet:returnCode:]
                                  417 -[NSSavePanel(NSSavePanelRuntime) _didEndSheet:returnCode:contextInfo:]
                                    417 -[NSDocument _savePanelWasPresented:withResult:inContext:]
                                      417 -[NSDocument saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:]
                                        417 -[NSDocument _saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:]
                                          417 0x8927
                                            417 -[NSDocument saveToURL:ofType:forSaveOperation:error:]
                                              417 -[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:]
                                                417 -[NSDocument _writeSafelyToURL:ofType:forSaveOperation:error:]
                                                  417 -[NSDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:]
                                                    417 0x8b51
                                                      417 0x8fe1
                                                        417 0x9a59
                                                          417 -[NSPrintInfo paperSize]
                                                            417 -[NSPrintInfo(NSManagedAttributes) _objectForAttributeKey:]
                                                              417 -[NSPrintInfo(NSInternal) _pageFormatForGetting]
                                                                417 -[NSPrintInfo(NSInternal) _createDefaultOrUnflattenPageFormatIfNecessary]
                                                                  417 -[NSPrintInfo(NSInternal) _printSessionForGetting]
                                                                    417 PMCreateSession
                                                                      417 PJCCreateSession(OpaquePMPrintSession**)
                                                                        417 OpaquePMPrintSession::OpaquePMPrintSession(OpaquePMPrintSession*)
                                                                          417 OpaquePMPrintSession::SetCurrentPrinter()
                                                                            417 PJCGetCurrentPrinter
                                                                              417 CUPSPrinter::CUPSPrinter()
                                                                                417 OpaquePMPrinter::OpaquePMPrinter()
                                                                                  417 CPLCopyDefaultPrinterName
                                                                                    417 cachedCupsGetDests(cups_dest_s**)
                                                                                      417 cupsGetDests
                                                                                        417 httpConnectEncrypt
                                                                                          417 httpReconnect
                                                                                            417 connect$UNIX2003
                                                                                              417 connect$UNIX2003
    417 Thread_2603
      417 thread_start
        417 _pthread_start
          417 PrivateMPEntryPoint
            417 TSystemNotificationTask::SystemNotificationTaskProc(void*)
              417 CFRunLoopRun
                417 CFRunLoopRunSpecific
                  417 mach_msg
                    417 mach_msg_trap
                      417 mach_msg_trap
    417 Thread_2703
      417 thread_start
        417 _pthread_start
          417 PrivateMPEntryPoint
            417 TFSEventsNotificationTask::FSEventsNotificationTaskProc(void*)
              417 CFRunLoopRun
                417 CFRunLoopRunSpecific
                  417 mach_msg
                    417 mach_msg_trap
                      417 mach_msg_trap
    417 Thread_2803
      417 thread_start
        417 _pthread_start
          417 PrivateMPEntryPoint
            417 TNodeSyncTask::SyncTaskProc(void*)
              417 MPWaitOnQueue
                417 TSWaitOnConditionTimedRelative
                  417 TSWaitOnCondition
                    417 pthread_cond_wait$UNIX2003
                      417 __semwait_signal
                        417 __semwait_signal
    417 Thread_2903
      417 thread_start
        417 _pthread_start
          417 kevent
            417 kevent
    417 Thread_2a03
      417 thread_start
        417 _pthread_start
          417 select$DARWIN_EXTSN
            417 select$DARWIN_EXTSN
    417 Thread_2c03
      417 thread_start
        417 _pthread_start
          417 __NSThread__main__
            417 -[NSThread main]
              417 -[NSUIHeartBeat _heartBeatThread:]
                415 usleep$UNIX2003
                  415 __semwait_signal
                    415 __semwait_signal
                1 -[NSUIHeartBeat _heartBeatThread:]
                1 objc_msgSend
                  1 objc_msgSend
    408 Thread_2b03
      408 thread_start
        408 _pthread_start
          408 PrivateMPEntryPoint
            408 TFolderSizeTask::FolderSizeTaskProc(void*)
              408 MPWaitOnQueue
                408 TSWaitOnConditionTimedRelative
                  408 pthread_cond_timedwait_relative_np
                    408 _pthread_cond_wait
                      408 semaphore_timedwait_signal_trap
                        408 semaphore_timedwait_signal_trap

Total number in stack (recursive counted multiple, when >=5):
        7      _pthread_start
        7      thread_start

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        834
        __semwait_signal        832
        connect$UNIX2003        417
        kevent        417
        select$DARWIN_EXTSN        417
        semaphore_timedwait_signal_trap        408
Sample analysis of process 175 written to file /dev/stdout


Mikey-San 04-28-2009 04:23 PM

Did you take that while opening a file?

lguerb 04-28-2009 04:43 PM

No, that was trying to save a new file with one word in it. The log for opening a file is the following.

Code:

Sampling process 231 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling TextEdit (pid 231) every 1 millisecond
Call graph:
    651 Thread_2507
      651 0x1df6
        651 NSApplicationMain
          651 -[NSApplication run]
            651 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
              651 _DPSNextEvent
                651 AEProcessAppleEvent
                  651 aeProcessAppleEvent
                    651 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
                      651 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
                        651 _NSAppleEventManagerGenericHandler
                          651 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
                            651 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
                              651 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocuments:]
                                651 -[NSApplication _doOpenFiles:]
                                  651 -[NSApplication _doOpenFile:ok:tryTemp:]
                                    651 -[NSDocumentController(NSInternal) _openFile:]
                                      651 0x9e04
                                        651 -[NSDocumentController openDocumentWithContentsOfURL:display:error:]
                                          651 -[NSDocumentController makeDocumentWithContentsOfURL:ofType:error:]
                                            651 -[NSDocument initWithContentsOfURL:ofType:error:]
                                              651 0xa07c
                                                651 0xac35
                                                  651 0xb039
                                                    651 -[NSPrintInfo paperSize]
                                                      651 -[NSPrintInfo(NSManagedAttributes) _objectForAttributeKey:]
                                                        651 -[NSPrintInfo(NSInternal) _pageFormatForGetting]
                                                          651 -[NSPrintInfo(NSInternal) _createDefaultOrUnflattenPageFormatIfNecessary]
                                                            651 -[NSPrintInfo(NSInternal) _printSessionForGetting]
                                                              651 PMCreateSession
                                                                651 PJCCreateSession(OpaquePMPrintSession**)
                                                                  651 OpaquePMPrintSession::OpaquePMPrintSession(OpaquePMPrintSession*)
                                                                    651 OpaquePMPrintSession::SetCurrentPrinter()
                                                                      651 PJCGetCurrentPrinter
                                                                        651 CUPSPrinter::CUPSPrinter()
                                                                          651 OpaquePMPrinter::OpaquePMPrinter()
                                                                            651 CPLCopyDefaultPrinterName
                                                                              651 cachedCupsGetDests(cups_dest_s**)
                                                                                651 cupsGetDests
                                                                                  651 httpConnectEncrypt
                                                                                    651 httpReconnect
                                                                                      651 connect$UNIX2003
                                                                                        651 connect$UNIX2003

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        connect$UNIX2003        651
Sample analysis of process 231 written to file /dev/stdout


Mikey-San 04-28-2009 04:51 PM

The document system that TextEdit is based on (which some other apps also use) is attempting to contact a printer and waiting for that to finish. Do you have a printer/printers set up? How are they configured? Connected at all? Reachable? Someone with more patience for printers (I have none anymore) might be able to help here. :)

lguerb 04-28-2009 05:01 PM

Well, thanks Mikey-San!

I think I know what happens now. I had a bunch of printers configured some time ago, because I used the computer at job. Now I changed my job location, so those printers are no longer available. That must be the problem.

However, in System Preferences, no printers are configured, and it also freezes for some minutes before showing the Printers section :)

Edit: Solved. Just removed the file in /etc/cups.conf containing the printers server.

Mikey-San 04-28-2009 05:04 PM

Try removing those printers, restarting, and opening a problematic document in TextEdit.


All times are GMT -5. The time now is 03:44 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.