Last modified: 2012-10-15 16:09:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42804, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40804 - Possible memory leak
Possible memory leak
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-05 15:44 UTC by jeblad
Modified: 2012-10-15 16:09 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description jeblad 2012-10-05 15:44:19 UTC
There is a possible memory leak, initiated with empty descriptions, or some labels, or some sitelinks, or empty aliases.


> Hey so also wenn ich folgende api anfrage stelle:
>
> http://wikidata-test-repo.wikimedia.de/w/api.php?format=json&clear=&bot=1&summary=importing+interwiki+from+dewiki+%28testing%29&token=5e8d513f36714711e4a3d91b0541af59%2B\&action=wbsetitem&data={%22descriptions%22%3A+[]%2C+%22labels%22%3A+[{%22language%22%3A+%22el%22%2C+%22value%22%3A+%22635+%CE%92%CE%BF%CF%85%CE%BD%CF%84%CE%AF%CE%B1%22}%2C+{%22language%22%3A+%22eo%22%2C+%22value%22%3A+%22635+Vuntio%22}%2C+{%22language%22%3A+%22en%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22zh%22%2C+%22value%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F635%22}%2C+{%22language%22%3A+%22yo%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22vi%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22de%22%2C+%22value%22%3A+%22%28635%29+Vundtia%22}%2C+{%22language%22%3A+%22it%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22hu%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22fr%22%2C+%22value%22%3A+%22%28635%29+Vundtia%22}%2C+{%22language%22%3A+%22fa%22%2C+%22value%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B3%DB%B5%22}%2C+{%22language%22%3A+%22eu%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22et%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22ja%22%2C+%22value%22%3A+%22%E3%83%95%E3%83%B3%E3%83%86%E3%82%A3%E3%82%A2+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22}%2C+{%22language%22%3A+%22es%22%2C+%22value%22%3A+%22%28635%29+Vundtia%22}%2C+{%22language%22%3A+%22pt%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22nn%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22no%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22sr%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22la%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22sk%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22tl%22%2C+%22value%22%3A+%22635+Vundtia%22}%2C+{%22language%22%3A+%22uk%22%2C+%22value%22%3A+%22635+%D0%92%D1%83%D0%BD%D0%B4%D1%82%D1%96%D1%8F%22}%2C+{%22language%22%3A+%22pl%22%2C+%22value%22%3A+%22635+Vundtia%22}]%2C+%22sitelinks%22%3A+[{%22site%22%3A+%22etwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22eowiki%22%2C+%22title%22%3A+%22635+Vuntio%22}%2C+{%22site%22%3A+%22zhwiki%22%2C+%22title%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F635%22}%2C+{%22site%22%3A+%22yowiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22fawiki%22%2C+%22title%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B3%DB%B5%22}%2C+{%22site%22%3A+%22nowiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22frwiki%22%2C+%22title%22%3A+%22%28635%29+Vundtia%22}%2C+{%22site%22%3A+%22plwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22huwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22viwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22tlwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22ukwiki%22%2C+%22title%22%3A+%22635+%D0%92%D1%83%D0%BD%D0%B4%D1%82%D1%96%D1%8F%22}%2C+{%22site%22%3A+%22elwiki%22%2C+%22title%22%3A+%22635+%CE%92%CE%BF%CF%85%CE%BD%CF%84%CE%AF%CE%B1%22}%2C+{%22site%22%3A+%22jawiki%22%2C+%22title%22%3A+%22%E3%83%95%E3%83%B3%E3%83%86%E3%82%A3%E3%82%A2+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22}%2C+{%22site%22%3A+%22nnwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22euwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22dewiki%22%2C+%22title%22%3A+%22%28635%29+Vundtia%22}%2C+{%22site%22%3A+%22eswiki%22%2C+%22title%22%3A+%22%28635%29+Vundtia%22}%2C+{%22site%22%3A+%22skwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22srwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22enwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22itwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22lawiki%22%2C+%22title%22%3A+%22635+Vundtia%22}%2C+{%22site%22%3A+%22ptwiki%22%2C+%22title%22%3A+%22635+Vundtia%22}]%2C+%22aliases%22%3A+[]}
>
> Bekomme ich folgende Fehlermeldung zurück: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/wikidata-test-repo.wikimedia.de/w/includes/db/DatabaseMysql.php on line 204+
>
> Mein bot schmeißt mir bisher den fehler: "No JSON object could be decoded" noch raus den ich heute schon häufiger gesehen habe. Zum teil hat es funktioniert die sachen ein zweites mal durch den Bot laufen zu lassen und zu speichern, wobei ich nicht sagen kann ob dabei die api anfrage 100% die selbe war oder ob in reihenfolge etc.. sich irgend etwas geändert hat.
>
> Grüße Severin Wünsch aka Sk!d


Noch ein paar weitere API anfragen die (beim ersten aufrufen) nicht
funktionieren... (kann gerne auch noch mehr schicken)

http://wikidata-test-repo.wikimedia.de/w/api.php?format=json&clear=&bot=1&summary=importing+interwiki+from+dewiki+%28testing%29&token=4f372c66552aef8ddabe721202d0ac73%2B%5C&action=wbsetitem&data=%7B%22descriptions%22%3A+%5B%5D%2C+%22labels%22%3A+%5B%7B%22language%22%3A+%22el%22%2C+%22value%22%3A+%22684+%CE%A7%CE%AF%CE%BB%CE%BD%CF%84%CE%BC%CF%80%CE%BF%CF%85%CF%81%CE%B3%CE%BA%22%7D%2C+%7B%22language%22%3A+%22eo%22%2C+%22value%22%3A+%22684+Hildburgo%22%7D%2C+%7B%22language%22%3A+%22en%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22zh%22%2C+%22value%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F684%22%7D%2C+%7B%22language%22%3A+%22yo%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22vi%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22de%22%2C+%22value%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22language%22%3A+%22it%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22hu%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22fr%22%2C+%22value%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22language%22%3A+%22fa%22%2C+%22value%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B8%DB%B4%22%7D%2C+%7B%22language%22%3A+%22eu%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22ja%22%2C+%22value%22%3A+%22%E3%83%92%E3%83%AB%E3%83%89%E3%83%96%E3%83%AB%E3%82%AF+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22%7D%2C+%7B%22language%22%3A+%22es%22%2C+%22value%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22language%22%3A+%22pt%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22nn%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22no%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22sr%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22la%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22sk%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22tl%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%2C+%7B%22language%22%3A+%22uk%22%2C+%22value%22%3A+%22684+%D0%93%D1%96%D0%BB%D1%8C%D0%B4%D0%B1%D1%83%D1%80%D2%91%22%7D%2C+%7B%22language%22%3A+%22pl%22%2C+%22value%22%3A+%22684+Hildburg%22%7D%5D%2C+%22sitelinks%22%3A+%5B%7B%22site%22%3A+%22eowiki%22%2C+%22title%22%3A+%22684+Hildburgo%22%7D%2C+%7B%22site%22%3A+%22zhwiki%22%2C+%22title%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F684%22%7D%2C+%7B%22site%22%3A+%22yowiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22fawiki%22%2C+%22title%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B8%DB%B4%22%7D%2C+%7B%22site%22%3A+%22nowiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22frwiki%22%2C+%22title%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22site%22%3A+%22plwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22huwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22viwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22tlwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22ukwiki%22%2C+%22title%22%3A+%22684+%D0%93%D1%96%D0%BB%D1%8C%D0%B4%D0%B1%D1%83%D1%80%D2%91%22%7D%2C+%7B%22site%22%3A+%22elwiki%22%2C+%22title%22%3A+%22684+%CE%A7%CE%AF%CE%BB%CE%BD%CF%84%CE%BC%CF%80%CE%BF%CF%85%CF%81%CE%B3%CE%BA%22%7D%2C+%7B%22site%22%3A+%22jawiki%22%2C+%22title%22%3A+%22%E3%83%92%E3%83%AB%E3%83%89%E3%83%96%E3%83%AB%E3%82%AF+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22%7D%2C+%7B%22site%22%3A+%22nnwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22euwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22dewiki%22%2C+%22title%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22site%22%3A+%22eswiki%22%2C+%22title%22%3A+%22%28684%29+Hildburg%22%7D%2C+%7B%22site%22%3A+%22skwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22srwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22enwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22itwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22lawiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%2C+%7B%22site%22%3A+%22ptwiki%22%2C+%22title%22%3A+%22684+Hildburg%22%7D%5D%2C+%22aliases%22%3A+%5B%5D%7D

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 32 bytes) in
/var/www/wikidata-test-repo.wikimedia.de/w/includes/db/DatabaseMysql.php
on line 204

--

http://wikidata-test-repo.wikimedia.de/w/api.php?format=json&clear=&bot=1&summary=importing+interwiki+from+dewiki+%28testing%29&token=7ad0f400325d3f1d58d9a5dfff3cf28b%2B%5C&action=wbsetitem&data=%7B%22descriptions%22%3A+%5B%5D%2C+%22labels%22%3A+%5B%7B%22language%22%3A+%22el%22%2C+%22value%22%3A+%22698+%CE%95%CF%81%CE%BD%CE%B5%CF%83%CF%84%CE%AF%CE%BD%CE%B1%22%7D%2C+%7B%22language%22%3A+%22eo%22%2C+%22value%22%3A+%22698+Ernestino%22%7D%2C+%7B%22language%22%3A+%22en%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22zh%22%2C+%22value%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F698%22%7D%2C+%7B%22language%22%3A+%22yo%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22vi%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22de%22%2C+%22value%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22language%22%3A+%22it%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22hu%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22fr%22%2C+%22value%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22language%22%3A+%22fa%22%2C+%22value%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B9%DB%B8%22%7D%2C+%7B%22language%22%3A+%22eu%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22ja%22%2C+%22value%22%3A+%22%E3%82%A8%E3%83%AB%E3%83%8D%E3%82%B9%E3%83%86%E3%82%A3%E3%83%8A+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22%7D%2C+%7B%22language%22%3A+%22es%22%2C+%22value%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22language%22%3A+%22pt%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22nn%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22no%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22sr%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22la%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22sk%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22tl%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%2C+%7B%22language%22%3A+%22uk%22%2C+%22value%22%3A+%22698+%D0%95%D1%80%D0%BD%D0%B5%D1%81%D1%82%D1%96%D0%BD%D0%B0%22%7D%2C+%7B%22language%22%3A+%22pl%22%2C+%22value%22%3A+%22698+Ernestina%22%7D%5D%2C+%22sitelinks%22%3A+%5B%7B%22site%22%3A+%22eowiki%22%2C+%22title%22%3A+%22698+Ernestino%22%7D%2C+%7B%22site%22%3A+%22zhwiki%22%2C+%22title%22%3A+%22%E5%B0%8F%E8%A1%8C%E6%98%9F698%22%7D%2C+%7B%22site%22%3A+%22yowiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22fawiki%22%2C+%22title%22%3A+%22%D8%B3%DB%8C%D8%A7%D8%B1%DA%A9+%DB%B6%DB%B9%DB%B8%22%7D%2C+%7B%22site%22%3A+%22nowiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22frwiki%22%2C+%22title%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22site%22%3A+%22plwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22huwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22viwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22tlwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22ukwiki%22%2C+%22title%22%3A+%22698+%D0%95%D1%80%D0%BD%D0%B5%D1%81%D1%82%D1%96%D0%BD%D0%B0%22%7D%2C+%7B%22site%22%3A+%22elwiki%22%2C+%22title%22%3A+%22698+%CE%95%CF%81%CE%BD%CE%B5%CF%83%CF%84%CE%AF%CE%BD%CE%B1%22%7D%2C+%7B%22site%22%3A+%22jawiki%22%2C+%22title%22%3A+%22%E3%82%A8%E3%83%AB%E3%83%8D%E3%82%B9%E3%83%86%E3%82%A3%E3%83%8A+%28%E5%B0%8F%E6%83%91%E6%98%9F%29%22%7D%2C+%7B%22site%22%3A+%22nnwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22euwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22dewiki%22%2C+%22title%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22site%22%3A+%22eswiki%22%2C+%22title%22%3A+%22%28698%29+Ernestina%22%7D%2C+%7B%22site%22%3A+%22skwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22srwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22enwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22itwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22lawiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%2C+%7B%22site%22%3A+%22ptwiki%22%2C+%22title%22%3A+%22698+Ernestina%22%7D%5D%2C+%22aliases%22%3A+%5B%5D%7D


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 72 bytes) in
/var/www/wikidata-test-repo.wikimedia.de/w/includes/db/DatabaseMysql.php
on line 204

----

wobei ich noch hinzufügen muss das es beim wiederholten aufrufen der
api anfrage es gelingen kann das item ohne fehler zu erstellen.


First request have the following data block

{"descriptions": [], "labels": [{"language": "el", "value": "635 Βουντία"}, {"language": "eo", "value": "635 Vuntio"}, {"language": "en", "value": "635 Vundtia"}, {"language": "zh", "value": "小行星635"}, {"language": "yo", "value": "635 Vundtia"}, {"language": "vi", "value": "635 Vundtia"}, {"language": "de", "value": "(635) Vundtia"}, {"language": "it", "value": "635 Vundtia"}, {"language": "hu", "value": "635 Vundtia"}, {"language": "fr", "value": "(635) Vundtia"}, {"language": "fa", "value": "سیارک ۶۳۵"}, {"language": "eu", "value": "635 Vundtia"}, {"language": "et", "value": "635 Vundtia"}, {"language": "ja", "value": "フンティア (小惑星)"}, {"language": "es", "value": "(635) Vundtia"}, {"language": "pt", "value": "635 Vundtia"}, {"language": "nn", "value": "635 Vundtia"}, {"language": "no", "value": "635 Vundtia"}, {"language": "sr", "value": "635 Vundtia"}, {"language": "la", "value": "635 Vundtia"}, {"language": "sk", "value": "635 Vundtia"}, {"language": "tl", "value": "635 Vundtia"}, {"language": "uk", "value": "635 Вундтія"}, {"language": "pl", "value": "635 Vundtia"}], "sitelinks": [{"site": "etwiki", "title": "635 Vundtia"}, {"site": "eowiki", "title": "635 Vuntio"}, {"site": "zhwiki", "title": "小行星635"}, {"site": "yowiki", "title": "635 Vundtia"}, {"site": "fawiki", "title": "سیارک ۶۳۵"}, {"site": "nowiki", "title": "635 Vundtia"}, {"site": "frwiki", "title": "(635) Vundtia"}, {"site": "plwiki", "title": "635 Vundtia"}, {"site": "huwiki", "title": "635 Vundtia"}, {"site": "viwiki", "title": "635 Vundtia"}, {"site": "tlwiki", "title": "635 Vundtia"}, {"site": "ukwiki", "title": "635 Вундтія"}, {"site": "elwiki", "title": "635 Βουντία"}, {"site": "jawiki", "title": "フンティア (小惑星)"}, {"site": "nnwiki", "title": "635 Vundtia"}, {"site": "euwiki", "title": "635 Vundtia"}, {"site": "dewiki", "title": "(635) Vundtia"}, {"site": "eswiki", "title": "(635) Vundtia"}, {"site": "skwiki", "title": "635 Vundtia"}, {"site": "srwiki", "title": "635 Vundtia"}, {"site": "enwiki", "title": "635 Vundtia"}, {"site": "itwiki", "title": "635 Vundtia"}, {"site": "lawiki", "title": "635 Vundtia"}, {"site": "ptwiki", "title": "635 Vundtia"}], "aliases": []}

Second have the following datablock

{"descriptions": [], "labels": [{"language": "el", "value": "684 Χίλντμπουργκ"}, {"language": "eo", "value": "684 Hildburgo"}, {"language": "en", "value": "684 Hildburg"}, {"language": "zh", "value": "小行星684"}, {"language": "yo", "value": "684 Hildburg"}, {"language": "vi", "value": "684 Hildburg"}, {"language": "de", "value": "(684) Hildburg"}, {"language": "it", "value": "684 Hildburg"}, {"language": "hu", "value": "684 Hildburg"}, {"language": "fr", "value": "(684) Hildburg"}, {"language": "fa", "value": "سیارک ۶۸۴"}, {"language": "eu", "value": "684 Hildburg"}, {"language": "ja", "value": "ヒルドブルク (小惑星)"}, {"language": "es", "value": "(684) Hildburg"}, {"language": "pt", "value": "684 Hildburg"}, {"language": "nn", "value": "684 Hildburg"}, {"language": "no", "value": "684 Hildburg"}, {"language": "sr", "value": "684 Hildburg"}, {"language": "la", "value": "684 Hildburg"}, {"language": "sk", "value": "684 Hildburg"}, {"language": "tl", "value": "684 Hildburg"}, {"language": "uk", "value": "684 Гільдбурґ"}, {"language": "pl", "value": "684 Hildburg"}], "sitelinks": [{"site": "eowiki", "title": "684 Hildburgo"}, {"site": "zhwiki", "title": "小行星684"}, {"site": "yowiki", "title": "684 Hildburg"}, {"site": "fawiki", "title": "سیارک ۶۸۴"}, {"site": "nowiki", "title": "684 Hildburg"}, {"site": "frwiki", "title": "(684) Hildburg"}, {"site": "plwiki", "title": "684 Hildburg"}, {"site": "huwiki", "title": "684 Hildburg"}, {"site": "viwiki", "title": "684 Hildburg"}, {"site": "tlwiki", "title": "684 Hildburg"}, {"site": "ukwiki", "title": "684 Гільдбурґ"}, {"site": "elwiki", "title": "684 Χίλντμπουργκ"}, {"site": "jawiki", "title": "ヒルドブルク (小惑星)"}, {"site": "nnwiki", "title": "684 Hildburg"}, {"site": "euwiki", "title": "684 Hildburg"}, {"site": "dewiki", "title": "(684) Hildburg"}, {"site": "eswiki", "title": "(684) Hildburg"}, {"site": "skwiki", "title": "684 Hildburg"}, {"site": "srwiki", "title": "684 Hildburg"}, {"site": "enwiki", "title": "684 Hildburg"}, {"site": "itwiki", "title": "684 Hildburg"}, {"site": "lawiki", "title": "684 Hildburg"}, {"site": "ptwiki", "title": "684 Hildburg"}], "aliases": []}

Third have the following datablock

{"descriptions": [], "labels": [{"language": "el", "value": "698 Ερνεστίνα"}, {"language": "eo", "value": "698 Ernestino"}, {"language": "en", "value": "698 Ernestina"}, {"language": "zh", "value": "小行星698"}, {"language": "yo", "value": "698 Ernestina"}, {"language": "vi", "value": "698 Ernestina"}, {"language": "de", "value": "(698) Ernestina"}, {"language": "it", "value": "698 Ernestina"}, {"language": "hu", "value": "698 Ernestina"}, {"language": "fr", "value": "(698) Ernestina"}, {"language": "fa", "value": "سیارک ۶۹۸"}, {"language": "eu", "value": "698 Ernestina"}, {"language": "ja", "value": "エルネスティナ (小惑星)"}, {"language": "es", "value": "(698) Ernestina"}, {"language": "pt", "value": "698 Ernestina"}, {"language": "nn", "value": "698 Ernestina"}, {"language": "no", "value": "698 Ernestina"}, {"language": "sr", "value": "698 Ernestina"}, {"language": "la", "value": "698 Ernestina"}, {"language": "sk", "value": "698 Ernestina"}, {"language": "tl", "value": "698 Ernestina"}, {"language": "uk", "value": "698 Ернестіна"}, {"language": "pl", "value": "698 Ernestina"}], "sitelinks": [{"site": "eowiki", "title": "698 Ernestino"}, {"site": "zhwiki", "title": "小行星698"}, {"site": "yowiki", "title": "698 Ernestina"}, {"site": "fawiki", "title": "سیارک ۶۹۸"}, {"site": "nowiki", "title": "698 Ernestina"}, {"site": "frwiki", "title": "(698) Ernestina"}, {"site": "plwiki", "title": "698 Ernestina"}, {"site": "huwiki", "title": "698 Ernestina"}, {"site": "viwiki", "title": "698 Ernestina"}, {"site": "tlwiki", "title": "698 Ernestina"}, {"site": "ukwiki", "title": "698 Ернестіна"}, {"site": "elwiki", "title": "698 Ερνεστίνα"}, {"site": "jawiki", "title": "エルネスティナ (小惑星)"}, {"site": "nnwiki", "title": "698 Ernestina"}, {"site": "euwiki", "title": "698 Ernestina"}, {"site": "dewiki", "title": "(698) Ernestina"}, {"site": "eswiki", "title": "(698) Ernestina"}, {"site": "skwiki", "title": "698 Ernestina"}, {"site": "srwiki", "title": "698 Ernestina"}, {"site": "enwiki", "title": "698 Ernestina"}, {"site": "itwiki", "title": "698 Ernestina"}, {"site": "lawiki", "title": "698 Ernestina"}, {"site": "ptwiki", "title": "698 Ernestina"}], "aliases": []}


They are validated with http://jsonlint.com/
Comment 1 jeblad 2012-10-05 18:06:14 UTC
This bug does not reproduce in my localhost. It will probably (?) reproduce in the beta branch.
Comment 2 jeblad 2012-10-05 18:24:25 UTC
The resoning for this blocking the beta branch is that this bug is present on the Wikidata Test repo, which is updated as of 28th september. We branched 29th of september with some later updates. That would imply that the bug present at our test repo might be present in the beta branch.
Comment 3 swuensch 2012-10-06 11:35:55 UTC
Enother Error message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/wikidata-test-repo.wikimedia.de/w/extensions/Wikibase/repo/includes/content/ItemContent.php on line 176
Comment 4 Daniel Kinzler 2012-10-07 00:38:23 UTC
Sk1d suggested on IRC that this problem may occur especially for pages containing Umlauts, pointing to some issue with unicode normalization:

[19:00] <Sk1d> hm ja also wie gesagt fehler tritt erst seit 2-3 tagen auf davor lief alles reibungslos
[19:13] <Sk1d> ah und wenn ich mir die erfolgreichen einträge ansehe fällt eindeutig auf das diese nur Seiten beinhaltet bei denen alle Lemmas in ASCII sind, also liegt wohl der fehler an den Umlauten etc...
[19:15] <Sk1d> ich schaff es auch nicht manuell seiten mit umlauten zu speichern und bekomme immer folgende fehler: Beim Versuch zu speichern ist ein Verbindungsfehler aufgetreten. Diese  Änderungen konnten daher nicht fertig durchgeführt werden. Die  Internetverbindung sollte überprüft werden.
Comment 5 swuensch 2012-10-07 01:52:24 UTC
Therefor see also BUG 40823.

https://bugzilla.wikimedia.org/show_bug.cgi?id=40823
Comment 6 jeblad 2012-10-15 15:09:46 UTC
It doesn't really seem to leak in the ApiSetItem::modifyEntity and that should be the place where it should be leaking the most. That is, this call encapsulates most of the expensive calls. In all it seems like the first of the troublesome API-calls listed in the first post cost about 2MB. In the outer execute method in ApiModifyEntity there is the lines 227-233

// Do the actual save, or if it don't exist yet create it.
// There will be exceptions but we just leak them out ;)
$status = $editEntity->attemptSave(
	Autocomment::formatTotalSummary( $comment, $summary, $lang ),
	$this->flags,
	( $this->needsToken() ? $params['token'] : false )
);

and those eats about 15-16MB.

Note that my setup, and also the test repo, are using the Apache MPM Prefork model.
Comment 7 jeblad 2012-10-15 15:13:24 UTC
At exit my server reports approx 44MB in total for the call on the first troublesome API-call.
Comment 8 jeblad 2012-10-15 15:24:50 UTC
Wikipedia is also using the prefork model, so there should be no surprises there.
Comment 9 jeblad 2012-10-15 16:09:19 UTC
Memory limit on test repo is now 512MB, while Wikipedia uses 128MB. I have been testing with 128MB.

Memory use seems to be well-behaved and predictable, even if PHPs garbage collector could use a couple of visits by a foot...

It does not seem like the reported bug is there anymore.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links