Page 1 of 1

wurfl-updater fatal error: allowed memory size exhausted

Posted: Tue Jan 17, 2017 3:07 pm
by chris_loftus
I am trying to use the evaluation version (1.8.2.1) with as many defaults as possible. I ran:

composer install --optimize-autoloader --no-dev

and then:

php wurfl-updater -c config/config.php.example

WARNING: This configuration is using the default setting for the storage path: /Users/chrisloftus/Documents/modules/m2220/trunk/mobile-web/wurfl/wurfl-php-1.8.2.1-evaluation/storage
Please specify a value for "wurfl_storage_path" in the configuration file,
since data saved in the default storage path could be removed on APIs upgrade.


WARNING: Loading the evaluation data file


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 240 bytes) in /Users/chrisloftus/Documents/modules/m2220/trunk/mobile-web/wurfl/wurfl-php-1.8.2.1-evaluation/src/Repositories/AspectRepository.php on line 586

I am running on a MacBook Air OSX 10.11.6

Does anyone have any advice on how to solve this?
Thanks

Re: wurfl-updater fatal error: allowed memory size exhausted

Posted: Tue Jan 17, 2017 3:22 pm
by aaronp
Hi Chris,

Thanks for reaching out to us. Are you able check your php.ini file to see what the memory_limit is set at? The default memory_limit for PHP is set at 128 M and the error message indicates you have exceeded your set limit. Once you have accessed the php.ini file, try increasing the memory_limit.

Thanks,

Aaron

Re: wurfl-updater fatal error: allowed memory size exhausted

Posted: Tue Jan 17, 2017 3:35 pm
by kamermans
Hi Chris,

To build on Aaron's comments, we are also filing a bug report internally to have the memory limit automatically increased during the update process.

Re: wurfl-updater fatal error: allowed memory size exhausted

Posted: Wed Jan 18, 2017 3:43 am
by chris_loftus
Thanks all. The wurfl-updater now builds the database correctly and the demo app seems to work correctly.
Chris