Hello,
I am using:  Joomla! 3.6.5 Stable, PHP 5.6 and CB 2.1.2. Users login with JMapMyLDAP.
The problem is, when a user tries to edit his profile and changes anything and saves, he gets following error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20972558 bytes) in /var/www/html/dev.sitetest.net/libraries/shmanic/ldap/event/debug.php on line 133
The memory usage before save button click when changing profile (Joomla Debug Console): 40.56 MB (42.530.720 Bytes)
On line 133 is:
Code:
		SHLog::add(
			JText::sprintf(
				'LIB_SHLDAPEVENTDEBUG_DEBUG_11951',
				preg_replace('/\s+/', ' ', var_export($user, true)),
				preg_replace('/\s+/', ' ', var_export($new, true))
			), 11951, JLog::DEBUG, 'ldap'
		);
 
Memory usage before this line: 53068656 b
Call stack:
Code:
"#0 [internal function]: SHLdapEventDebug->onUserBeforeSave(Array, false, Array) 
#1 /var/www/html/dev.sitetest.net/libraries/joomla/event/event.php(69): call_user_func_array(Array, Array) 
#2 /var/www/html/dev.sitetest.net/libraries/joomla/event/dispatcher.php(159): JEvent->update(Array) 
#3 /var/www/html/dev.sitetest.net/libraries/shmanic/ldap/helper.php(708): JEventDispatcher->trigger('onUserBeforeSav...', Array) 
#4 /var/www/html/dev.sitetest.net/libraries/shmanic/ldap/event/bouncer.php(259): SHLdapHelper::triggerEvent('onUserBeforeSav...', Array) 
#5 [internal function]: SHLdapEventBouncer->onUserBeforeSave(Array, false, Array) 
#6 /var/www/html/dev.sitetest.net/libraries/joomla/event/event.php(69): call_user_func_array(Array, Array) 
#7 /var/www/html/dev.sitetest.net/libraries/joomla/event/dispatcher.php(159): JEvent->update(Array) 
#8 /var/www/html/dev.sitetest.net/libraries/joomla/user/user.php(783): JEventDispatcher->trigger('onUserBeforeSav...', Array) 
#9 /var/www/html/dev.sitetest.net/libraries/CBLib/CB/Database/Table/UserTable.php(574): JUser->save() 
#10 /var/www/html/dev.sitetest.net/libraries/CBLib/CB/Database/Table/UserTable.php(1102): CB\Database\Table\UserTable->store() 
#11 /var/www/html/dev.sitetest.net/components/com_comprofiler/comprofiler.php(488): CB\Database\Table\UserTable->saveSafely(Array, 1, 'edit') 
#12 /var/www/html/dev.sitetest.net/components/com_comprofiler/comprofiler.php(102): userSave('com_comprofiler', 447) 
#13 /var/www/html/dev.sitetest.net/libraries/cms/component/helper.php(405): require_once('/var/www/html/d...') 
#14 /var/www/html/dev.sitetest.net/libraries/cms/component/helper.php(380): JComponentHelper::executeComponent('/var/www/html/d...') 
#15 /var/www/html/dev.sitetest.net/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_comprofiler') 
#16 /var/www/html/dev.sitetest.net/libraries/cms/application/site.php(230): JApplicationSite->dispatch() 
#17 /var/www/html/dev.sitetest.net/libraries/cms/application/cms.php(261): JApplicationSite->doExecute()
#18 /var/www/html/dev.sitetest.net/index.php(49): JApplicationCms->execute() #19 {main}" 	
 
Now if I delete this log line 133 I get the error on a totaly different place:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20972662 bytes) in /var/www/html/dev.sitetest.net/libraries/joomla/database/driver.php on line 1967.
Anyone has an idea what is going on?