Solved [Solved] Firefox won't load anything + system hangs

Hello,

I am having trouble getting www/firefox (version 31) to work. Actually, every version of Firefox I've tried is the same. It does not want to connect to anything and seems to cause the system to briefly hang or skip every few seconds as if it were bogging down the CPU. It only does this when trying to load a page. The times I've had it open and was not attempting to connect to anything it was fine. I suspect it is a bug rather than a misconfiguration of some sort. There were no complaints during installation and ports was up-to-date. I have looked for information on this but haven't been able to find anything addressing it. The closest thing I've found is this post which discusses a hanging issue but it appears to be quite dated. Suggestions to similar sounding problems I've found elsewhere included disabling IPv6 in Firefox network.dns.disableIPv6, disabling IPv6 system-wide, modifying the interval at which Firefox saves the session browser.sessionstore.interval, removing and re-installing, and the usual "have you tried turning it off and on again" -- none of these have helped. I have installed this both as a package via pkg install and compiling it from the ports collection and the results were the same.

I would guess it were something network related if it weren't for the hangs, though other programs including browsers such as Opera work perfectly fine. Does anyone have an idea of what might be the problem?

Here is the output of firefox --debug:

Code:
$ firefox --debug

(process:3494): GLib-CRITICAL **: void g_slice_set_config(GSliceConfig, gint64): assertion `sys_page_size == 0' failed
1410033742936	addons.xpi	WARN	Add-on is invalid: [Exception... "Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]"  nsresult: "0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: loadManifestFromRDF :: line 943"  data: no] Stack trace: loadManifestFromRDF()@resource://gre/modules/addons/XPIProvider.jsm:943 < loadManifestFromDir()@resource://gre/modules/addons/XPIProvider.jsm:993 < loadManifestFromFile()@resource://gre/modules/addons/XPIProvider.jsm:1080 < addMetadata()@resource://gre/modules/addons/XPIProvider.jsm:2981 < XPI_processFileChanges()@resource://gre/modules/addons/XPIProvider.jsm:3255 < XPI_checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3428 < XPI_startup()@resource://gre/modules/addons/XPIProvider.jsm:1884 < AMI_callProviders()@resource://gre/modules/AddonManager.jsm:869 < AMI_startup()@resource://gre/modules/AddonManager.jsm:745 < AMP_startup()@resource://gre/modules/AddonManager.jsm:2318 < AMC_observe()@resource://gre/components/addonManager.js:55 < <file:unknown>
1410033742937	addons.xpi	WARN	Could not uninstall invalid item from locked install location

I don't know if any of that is relevant as I haven't installed any add-ons.

Thanks.

** Edit, I am using FreeBSD10 for amd64 **
 
Re: Firefox won't load anything + system hangs

addons.xpi WARN Add-on is invalid

Restart Firefox with disabled addons. (In the menu Tools). And enable the addons one after another. You will find the broken addon.
 
Re: Firefox won't load anything + system hangs

Hi,

Unfortunately that didn't work. I do not have any add-ons installed so I am not sure what it is talking about. A post on another forum said to chown my home directory, so I did, and now the add-on message is gone. The main problem still exists.
 
Re: Firefox won't load anything + system hangs

Is the /home/ngorx/.mozilla/directory also "chowned" to the normal user ?
Another try will ist rm -rf /home/username/.mozilla/*and install firefox new. Maybe the profile is broken.
 
Re: Firefox won't load anything + system hangs

No luck there either. I tried tracing the execution with truss, here is some of the output that grabbed my attention:

Code:
recvmsg(0x4,0x7fffffffcb78,0x0,0x7fffffffcba8,0x8018ada00,0x6) ERR#35 'Resource temporarily unavailable'
poll({5/POLLIN 4/POLLIN 15/POLLIN 17/POLLIN 23/POLLIN},5,-1) = 1 (0x1)
recvmsg(0x4,0x7fffffffcb78,0x0,0x7fffffffcba8,0x8018ada00,0x6) = 32 (0x20)
recvmsg(0x4,0x7fffffffcb78,0x0,0x7fffffffcba8,0x77,0x6) ERR#35 'Resource temporarily unavailable'
recvmsg(0x4,0x7fffffffcb78,0x0,0x7fffffffcba8,0x8018ada00,0x6) ERR#35 'Resource temporarily unavailable'
_umtx_op(0x80063b098,0xf,0x0,0x18,0x7fffff1d7cb0,0x7fffff1d7cb0) ERR#60 'Operation timed out'
 
Re: Firefox won't load anything + system hangs

I originally left the options as-is, then attempted to play around with them. After realizing that it made no difference I did a make rmconfig. This is what it currently shows:

Code:
===> The following configuration options are available for firefox-31.0,1:
     DBUS=on: D-Bus IPC system support
     DEBUG=off: Build with debugging support
     DTRACE=off: Build with DTrace probes
     GCONF=off: GConf configuration backend support
     GIO=on: GIO for file I/O
     GNOMEUI=off: libgnomeui support module
     GNOMEVFS2=off: GnomeVFS2 (virtual file system) support
     GSTREAMER=on: Multimedia support via GStreamer
     LIBPROXY=off: Proxy support via libproxy
     LOGGING=on: Additional log messages
     OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
     PGO=off: Use Profile-Guided Optimization
     PROFILE=off: Build with profiling support
     TEST=off: Build and/or run tests
====> Options available for the multi AUDIO: you have to choose at least one of them
     ALSA=on: ALSA audio architecture support
     PULSEAUDIO=off: PulseAudio sound server support
===> Use 'make config' to modify these settings
 
Re: Firefox won't load anything + system hangs

I've added it now but there is no difference after rebooting.
 
Re: Firefox won't load anything + system hangs

I'm using the machine now to post this via Opera. Everything else that requires an Internet connection seems to be working, it's just Firefox that isn't.
 
Re: Firefox won't load anything + system hangs

In the moment no idea.

But it's something with the connection.

Code:
man recvmsg
The recvfrom() and recvmsg() system calls are used to receive messages
     from a socket, and may be used to receive data on a socket whether or not
     it is connection-oriented.
 
Re: Firefox won't load anything + system hangs

Is the port-tree updated ? You can try portmaster -f firefox (but that's more than 200 packkages).
 
Re: Firefox won't load anything + system hangs

Yes the port tree is updated, but that didn't work either. This is really weird.
 
Re: Firefox won't load anything + system hangs

Alright so pkg_libchk found nothing strange, but after the portmaster -f firefox I rebooted and it now works. Thanks for all the suggestions talsamon!
 
Back
Top