Closed Bug 402975 Opened 19 years ago Closed 18 years ago

[10.5] Under Leopard, browser becomes unresponsive and consumes 100% CPU

Categories

(Core :: Widget: Cocoa, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kinetik, Assigned: jaas)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 The browser becomes unresponsive and consumes 100% CPU after running for some time. There doesn't seem to be a particular pattern to when this happens except that it might be related to the machine being heavily loaded when the problem begins. The browser is usually been idle and unfocused when this problem begins. Once the browser becomes unresponsive it does not recover. It is not absolutely unresponsive, for example Apple-Q to quit brings up the quit dialog and allows you to quit gracefully, but selecting menus or switching tabs does not respond within a few minutes. Note that the OS does not consider the browser to have hung (e.g. the beachball of death does not appear when the window is focused). This may be a duplicate of bug #402362, but that was reported against Camino and it sounds like the browser is completely hung in that case, so I'm not convinced this is exactly the same problem. Reproducible: Sometimes Steps to Reproduce: I don't have a reliable recipe to reproduce this.
Attaching the Sampler performance tool to an unresponsive browser process and viewing running sample times, the only thread doing work is the main thread. Sampler reports the "heaviest stack trace" for this thread as: 0 libSystem.B.dylib 654 mach_msg_trap 1 CoreFoundation 686 CFRunLoopWakeUp 2 HIToolbox 1068 PostEventToQueueInternal 3 HIToolbox 1085 PostEventToQueue 4 HIToolbox 1196 PostUpdateEvent 5 HIToolbox 1543 ValidateWindowRgn(OpaqueWindowPtr*, OpaqueRgnHandle*, unsigned char) 6 firefox-bin 5277 nsWindow::CalcWindowRegions() 7 firefox-bin 5457 nsMacWindow::WindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) 8 HIToolbox 6456 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) 9 HIToolbox 6632 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) 10 HIToolbox 6640 SendEventToEventTargetWithOptions 11 HIToolbox 6763 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) 12 HIToolbox 6828 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) 13 HIToolbox 6852 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) 14 HIToolbox 6923 SendEventToEventTarget 15 HIToolbox 6923 ToolboxEventDispatcher 16 HIToolbox 10436 RunApplicationEventLoop 17 firefox-bin 10444 nsAppShell::~nsAppShell() 18 firefox-bin 10444 nsAppStartup::DestroyExitEvent(PLEvent*) 19 firefox-bin 10444 XRE_main 20 firefox-bin 10444 main 21 firefox-bin 10444 start 22 firefox-bin 10444 start 23 10444 Thread 0x6803 : Main Thread :0 I'm not sure if this trace makes a lot of sense. I'll rebuild 2.0.0.9 from source with debug symbols and try to reproduce the problem.
I haven't been able to reproduce this yet with a debug (--disable-optimize, --enable-debug) or optimized debug (--enable-optimize, --disable-debug) build of the firefox-2.0.0.9-source.tar.bz.
(In reply to comment #2) > optimized debug (--enable-optimize, --disable-debug) build I meant --enable optimize, --enable-debug.
Assignee: nobody → joshmoz
Component: General → Widget: Cocoa
Product: Firefox → Core
QA Contact: general → cocoa
I haven't seen this again recently, even after switching back to official release binaries. One major thing that changed during this time period was an upgrade to OS X 10.5.1, but I don't know if this is related. Resolving as WORKSFORME.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.