Last modified: 2014-11-11 10:54:31 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 T50807, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48807 - Transcluding Special:LanguageStats sometimes corrupts parser state
Transcluding Special:LanguageStats sometimes corrupts parser state
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-25 12:11 UTC by Sam Reed (reedy)
Modified: 2014-11-11 10:54 UTC (History)
12 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-05-25 12:11:44 UTC
[25-May-2013 11:48:27] Fatal error: Call to a member function pauseUsageTimer() on a non-object at /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaCommon/LuaCommon.php on line 405
Server: mw1029
Method: GET
URL: http://meta.wikimedia.org/wiki/User:Yerpo
Backtrace:
#0 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(405): Scribunto_LuaEngine::getExpandedArgument()
#1 [internal function]: Scribunto_LuaEngine->getExpandedArgument('parent', 'group2')
#2 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaSandbox/Engine.php(237): call_user_func_array(Array, Array)
#3 [internal function]: Scribunto_LuaSandboxCallback->__call('getExpandedArgu...', Array)
#4 [internal function]: Scribunto_LuaSandboxCallback->getExpandedArgument('parent', 'group2')
#5 [internal function]: LuaSandboxFunction->call(Object(LuaSandboxFunction))
#6 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaSandbox/Engine.php(158): call_user_func_array(Array, Array)
#7 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(186): Scribunto_LuaSandboxInterpreter->callFunction(Object(LuaSandboxFunction), Object(LuaSandboxFunction))
#8 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(643): Scribunto_LuaEngine->executeFunctionChunk(Object(LuaSandboxFunction), Object(PPTemplateFrame_DOM))
#9 /usr/local/apache/common-local/php-1.22wmf4/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke('navbox', Object(PPTemplateFrame_DOM))
#10 [internal function]: ScribuntoHooks::invokeHook(Object(Parser), Object(PPTemplateFrame_DOM), Array)
Comment 1 Sam Reed (reedy) 2013-05-25 12:13:44 UTC
https://meta.wikimedia.org/wiki/User:Yerpo?action=edit
Comment 2 Rohan Verma 2013-05-25 13:18:45 UTC
Hello Sam,
I was investigating your bug and managed to recreate it when emitting your user page. I also tried to narrow down what part of your page was causing the error. However before I completed this it seems I can no longer reproduce the crash. Is this the same for you?
Comment 3 Brad Jorsch 2013-05-25 13:55:32 UTC
I suspect that the order of events was something like this:
* Page calls Module:Navbox, where list1 contains a transclusion of Special:LanguageStats/sl
* Scribunto expands the list1 arg, from the loop at lines 347–350.
* Something related to the transclusion of Special:LanguageStats/sl manages to somehow corrupt the Scribunto state. Not sure how. But the result is that the engine's interface is some non-object (probably null).
* Then when Scribunto tries to expand the next arg (group2 on the next iteration of the loop), it runs into that null interface, and boom.
* And then at some point, whatever it was about the data behind Special:LanguageStats/sl that was making it screw up the Scribunto state changed so it doesn't do it anymore.

Which makes this extremely difficult to reproduce and debug. Ugh.
Comment 4 Sam Reed (reedy) 2013-08-29 20:15:21 UTC
Quite a few of these currently happening on wmf14
Comment 5 Brad Jorsch 2013-08-29 21:04:07 UTC
I've confirmed that it's Special:LanguageStats/sl: I created a module on meta that just returns the values of two parameters, and if I passed {{Special:LanguageStats/sl}} for the first one then this error occurred. Again, the error stopped occurring after a short time.

I also noted that page title on page preview of a page containing only {{Special:LanguageStats/sl}} (no Scribunto invocation at all) was being reported as "MediaWiki:Centralnotice-template-B13 0822 form newspacing left dr enYY" instead of "User:Anomie/Sandbox2" while the bug was occurring.

Other than the corrupt title, I also note the following differences between the output when the bug was occurring and when it wasn't:
* Group rows (the ones with [expand]/[collapse]) have "..." in the value columns instead of actual numbers. A number of the value rows do too, although the row for "MediaWiki:Centralnotice-template-B13 0822 form newspacing left dr enYY" is not among these.
* A bolded row for "Fundraising 2012" was present, with state "In Progress". There is another "In Progress" (but non-bolded) row in the non-bugged output, however.
* A bolded row for "WMF Blog Posts" was present, with empty state.
* The total row at the end also has "...".
Comment 6 Andre Klapper 2013-12-12 13:10:08 UTC
(In reply to comment #4 by Reedy)
> Quite a few of these currently happening on wmf14

Can this still be seen in logs recently?
Comment 7 Andre Klapper 2014-02-27 16:28:43 UTC
(In reply to comment #4 by Reedy)
> Quite a few of these currently happening on wmf14

Reedy: Can this still be seen in logs recently?
Comment 8 Andre Klapper 2014-05-12 21:07:11 UTC
(In reply to comment #4 by Reedy)
> Quite a few of these currently happening on wmf14

Reedy: Can this still be seen in logs recently?
Comment 9 Andre Klapper 2014-11-11 10:54:31 UTC
Has anybody seen this in logs recently? Is this still an issue?

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


Navigation
Links