XF suddenly stopped working... Fatal error: Exception thrown without a stack frame

RobParker

Well-known member
My test install of XF was working absolutely fine earlier today and no changes have been made to it but it's now broken.

I'm now getting either a blank screen or this error on every page: Fatal error: Exception thrown without a stack frame in Unknown on line 0

It is open for posting by my mods so new posts would be the only difference. No one else has access to any settings/files.
 
I had to switch to using filezilla on my mac to get around these issues. In the end I liked it more than Transmit anyways...it seems to be a more powerful client. Now only if I could find notepad++ for Mac and I'd be happy.
 
Just got this again.

Fatal error: Exception thrown without a stack frame in Unknown on line 0

if I keep F5ing I also get:

Fatal error: Class 'XenForo_Visitor' not found in /var/hsphere/local/home/www/site/library/XenForo/Session.php on line 229

or

An exception occurred: include(): Unable to allocate memory for pool. in /var/hsphere/local/home/www/site/library/XenForo/Autoloader.php on line 119
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload()
  4. spl_autoload_call()
  5. class_exists() in Zend/Db.php at line 248
  6. Zend_Db::factory() in XenForo/Application.php at line 542
  7. XenForo_Application->loadDb()
  8. call_user_func_array() in XenForo/Application.php at line 774
  9. XenForo_Application->lazyLoad() in XenForo/Application.php at line 804
  10. XenForo_Application::get() in XenForo/Model.php at line 161
  11. XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
  12. XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
  13. XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 134
  14. XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 125
  15. XenForo_FrontController->run() in /var/hsphere/local/home/www/site/index.php at line 13
or

Fatal error: Class 'Zend_Controller_Response_Http' not found in /var/hsphere/local/home/www/site/library/XenForo/FrontController.php on line 232

It seems to happen when our server is particularly busy (our VB site is hosted on the same server)
 
This line might provide some clues: An exception occurred: include(): Unable to allocate memory for pool

What is the load like when it happens, and the traffic on your vB site?
 
The load is 1.8 (so reasonablish) but the VB traffic is quite high, 1400 users online in last 15 mins. We get a lot of lunchtime/early afternoon visitors.

VB is still working though (at the minute!) so I wouldn't expect XF to choke.
 
Do you know the variable name by any chance?

Edit: Actually I don't think we have APC setup, although it does have an entry in the phpinfo file. My plan was to wait until we migrate to XF before getting our server guys to set it all up.

Then it sounds like APC is running with the default shared memory size, which is something like 16MB and nowhere near enough (ideal would be 200mb+)
 
Well APC is definately the cause.

Code:
Notice: Unknown: 1. h->opened_path=[null] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php] in Unknown on line 0

Notice: Unknown: apc_cache_find [8560710] in Unknown on line 0

Notice: Unknown: 2. h->opened_path=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php] in Unknown on line 0

Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php] in Unknown on line 0

Notice: Unknown: Inserting [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php] in Unknown on line 0

Notice: require() [function.require]: 1. h->opened_path=[null] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php on line 5

Notice: require() [function.require]: apc_cache_find [4279353] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php on line 5

Notice: require() [function.require]: 2. h->opened_path=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php on line 5

Notice: require() [function.require]: apc_cache_make_file_entry: entry->data.file.filename is [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php on line 5

Notice: require() [function.require]: Inserting [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/index.php on line 5

Notice: include() [function.include]: 1. h->opened_path=[null] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Application.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: apc_cache_find [4279352] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: 2. h->opened_path=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Application.php] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Application.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: apc_cache_make_file_entry: entry->data.file.filename is [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Application.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: Inserting [/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Application.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: 1. h->opened_path=[null] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/Zend/Registry.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: apc_cache_find [8495599] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Notice: include() [function.include]: 2. h->opened_path=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/Zend/Registry.php] h->filename=[/xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/Zend/Registry.php] in /xxx/xxx/xxxxx/xxxxxxxxx/p8ntballer.com/xen/library/XenForo/Autoloader.php on line 119

Fatal error: Exception thrown without a stack frame in Unknown on line 0

For now disabling APC fixes the issue untill I can look into it further to find out why its throwing these errors.
 
Just to update, I never had APC enabled when I was having this issue. My hosts enabled it and increased the memory size and since then I've not had any problems (though it's very hard to reproduce as it seems to be caused by the traffic to other sites on the server).
 
Top Bottom