Out of memory errors for ApiQueryImageInfo
Open, HighPublic

Description

I saw a significant number of POST requests to http://commons.wikimedia.org/w/api.php causing out of memory errors on fluorine:

Fatal error: Allowed memory size of 220200960 bytes exhausted (tried to allocate 8208 bytes) at /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiQueryImageInfo.php on line 443

#0 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiQueryImageInfo.php(443): unserialize('a:35:{s:4:"Make...')
#1 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiQueryImageInfo.php(158): ApiQueryImageInfo::getInfo(Object(LocalFile), Array, Object(ApiResult), NULL, Array)
#2 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiQuery.php(278): ApiQueryImageInfo->execute()
#3 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiMain.php(862): ApiQuery->execute()
#4 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiMain.php(387): ApiMain->executeAction()
#5 /usr/local/apache/common-local/php-1.23wmf6/includes/api/ApiMain.php(358): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.23wmf6/api.php(76): ApiMain->execute()
#7 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
#8 {main}
[


Version: 1.23.0
Severity: normal

Details

Reference
bz58571
bzimport raised the priority of this task from to High.
bzimport set Reference to bz58571.
bzimport added a subscriber: Unknown Object (MLST).
Yurik created this task.Dec 17 2013, 10:04 AM

This might be related to Bug 30751

Or bug 53663.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Feb 19 2015, 7:12 PM