RESOLVED INVALID 18279
socket(PF_ROUTE) failed: Too many open files
https://bugs.webkit.org/show_bug.cgi?id=18279
Summary socket(PF_ROUTE) failed: Too many open files
Kevin Gale
Reported 2008-04-02 06:57:51 PDT
I am finding that Safari stops working after a period of time. It will not open any new windows and will not process any links. When I check the console I see the following: Apr 2 14:38:52 kevin-gales-computer /Applications/Safari.app/Contents/MacOS/Safari: socket(PF_ROUTE) failed: Too many open files***ntlmRand failed to open /dev/random It is then followed by errors such as the following: 2008-04-02 14:44:27.091 WebKit[2255] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-02 14:44:27.092 WebKit[2255] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-02 14:44:27.093 WebKit[2255] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-02 14:44:27.095 WebKit[2255] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. The only way to solve the problem is to quit Safari (sometimes force quit) and re-launch. This occurs in Safari 3.1 and the WebKit Nightly build I downloaded a few days ago (31388?). Not sure if this helps but I am currently building a web application so i'm performing alot of HTTP POST's. Kev.
Attachments
lsof | grep Safari output 3rd April 2008 (23.65 KB, application/octet-stream)
2008-04-03 06:59 PDT, Kevin Gale
no flags
lsof | grep Safari output 5th April 2008 (43.86 KB, application/octet-stream)
2008-04-05 07:26 PDT, Kevin Gale
no flags
Alexey Proskuryakov
Comment 1 2008-04-03 06:26:31 PDT
>Not sure if this helps but I am currently building a web application so i'm > performing alot of HTTP POST's. Yes, this may be related, as this code sometimes uses temporary files. Could you please attach an output of the following command? lsof | grep Safari
Kevin Gale
Comment 2 2008-04-03 06:59:26 PDT
Created attachment 20311 [details] lsof | grep Safari output 3rd April 2008 This is the current output from Safari as requested. Our DNS is not behaving itself so the 'jonm_laptop.ncs.local' is actually my computer (keving). Safari was working okay when I ran the command so let me know if you want me to run it the next time Safari stops working. Kev.
Alexey Proskuryakov
Comment 3 2008-04-03 10:13:15 PDT
Yes, output from a non-working Safari would help a lot. The many closed, but lurking connections make me suspect that the issue is somehow network-related though, and not necessarily a WebKit fault - these all count against the limit of simultaneously open files.
Kevin Gale
Comment 4 2008-04-05 07:26:05 PDT
Created attachment 20351 [details] lsof | grep Safari output 5th April 2008 I have attached a file with the requested output from when Safari stops responding. The console also contained the following: 2008-04-05 13:56:13.077 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:13.077 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:13.078 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:13.079 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:13.714 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:13.714 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:13.714 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:13.720 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:14.132 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:14.132 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:14.133 WebKit[367] Cannot load Interface Builder file '/System/Library/Frameworks/AppKit.framework/Resources/English.lproj/NSAlertPanel.nib' 2008-04-05 13:56:14.134 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.604 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.605 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.606 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.606 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.606 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:36.606 WebKit[367] -[BrowserWindowController loadWindow]: failed to load window nib file '/Applications/Safari.app/Contents/Resources/English.lproj/Browser.nib'. 2008-04-05 13:56:37.109 WebKit[367] *** WebKit discarded an uncaught exception in the webView:didFailProvisionalLoadWithError:forFrame: delegate: <NSInvalidArgumentException> *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument 2008-04-05 13:56:38.765 WebKit[367] *** WebKit discarded an uncaught exception in the webView:didFailProvisionalLoadWithError:forFrame: delegate: <NSInvalidArgumentException> *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument 2008-04-05 13:56:42.516 WebKit[367] *** WebKit discarded an uncaught exception in the webView:didFailProvisionalLoadWithError:forFrame: delegate: <NSInvalidArgumentException> *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument Regards, Kev.
Alexey Proskuryakov
Comment 5 2008-04-06 23:29:38 PDT
In the non-working case, there are many more open sockets, so I think that it's indeed a problem with a proxy. Not sure if there is a client-side bug, too, but if there is, it's definitely in lower level OS code, not in WebKit. Would you be willing to file a bug at <http://bugreport.apple.com> (free registration required) for Apple engineers working on lower levels of network stack to take a look? If not, I can move this bug myself, but there will be less opportunities for them to communicate with you then.
Kevin Gale
Comment 6 2008-04-08 04:54:14 PDT
Just had a another crash and I also noticed the following in the console: ntlmRand failed to open /dev/random Not sure if this is related or not. I'll file a bug report and point them at this for more information. Kev.
Kevin Gale
Comment 7 2008-04-08 05:02:13 PDT
Bug now reported at http://bugreport.apple.com ID: 5848679
Alexey Proskuryakov
Comment 8 2008-04-08 05:24:06 PDT
Thank you! Now closing as INVALID to indicate that this is not a WebKit issue; it will continue to be tracked by Apple internally.
Note You need to log in before you can comment on or make changes to this bug.