Last modified: 2013-12-13 20:17:16 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 T59707, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57707 - exception invalidtoken from Util.tokensToString for list starting with <onlyinclude>
exception invalidtoken from Util.tokensToString for list starting with <onlyi...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Highest normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-28 11:25 UTC by Ariel T. Glenn
Modified: 2013-12-13 20:17 UTC (History)
4 users (show)

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


Attachments

Description Ariel T. Glenn 2013-11-28 11:25:28 UTC
see sample log at wtp1007:/var/lib/parsoid/nohup.out

these entries are 20k lines per exception so I'll just give the start and end of one here:

Util.tokensToString, invalid token: undefined  tokens: [ '<onlyinclude>',
  { dataAttribs: { tsr: [Object] } },
  undefined,
  { dataAttribs: { tsr: [Object] } },
  undefined,
  '  ',
  undefined,
  undefined,
  ' kbt ',
  undefined,
  undefined,
  ' ',
  undefined,
  'Abadi',
  { name: 'a', attribs: [], dataAttribs: {} },
  ' ',
  undefined,
  undefined,
  '  ',
  undefined,
  undefined,
  ' Levend ',
  undefined,
  undefined,
  ' 4300',
  undefined,

...

  'Zweeds',
  { name: 'a', attribs: [], dataAttribs: {} },
  ' ',
  undefined,
  undefined,
  '  ',
  undefined,
  undefined,
  '  ',
  undefined,
  undefined,
  undefined,
  { dataAttribs: { tsr: [Object] } },
  undefined,
  { dataAttribs: { tsr: [Object] } },
  undefined,
  undefined,
  '</onlyinclude>' ]
Trace
    at Object.Util.tokensToString (/srv/deployment/parsoid/Parsoid/js/lib/mediawiki.Util.js:346:13)
    at stripMetaTags (/srv/deployment/parsoid/Parsoid/js/lib/ext.core.AttributeExpander.js:77:18)
    at AttributeExpander._returnAttributes (/srv/deployment/parsoid/Parsoid/js/lib/ext.core.AttributeExpander.js:164:17)
    at AttributeTransformManager.process (/srv/deployment/parsoid/Parsoid/js/lib/mediawiki.TokenTransformManager.js:1077:8)
    at AttributeExpander.onToken (/srv/deployment/parsoid/Parsoid/js/lib/ext.core.AttributeExpander.js:125:6)
    at AsyncTokenTransformManager.transformTokens (/srv/deployment/parsoid/Parsoid/js/lib/mediawiki.TokenTransformManager.js:611:17)
    at AsyncTokenTransformManager.onChunk (/srv/deployment/parsoid/Parsoid/js/lib/mediawiki.TokenTransformManager.js:395:17)
    at SyncTokenTransformManager.EventEmitter.emit (events.js:88:17)
    at SyncTokenTransformManager.onChunk (/srv/deployment/parsoid/Parsoid/js/lib/mediawiki.TokenTransformManager.js:955:7)
    at PegTokenizer.EventEmitter.emit (events.js:88:17)

The logs were filling with these at about 1 gb in 10 minutes or so, logging is temporarily turned off for now.
Comment 1 Gerrit Notification Bot 2013-12-04 02:52:56 UTC
Change 99022 had a related patch set uploaded by GWicke:
Bug 57707: Hotfix, don't push undefined onto wikitext array

https://gerrit.wikimedia.org/r/99022
Comment 2 Gerrit Notification Bot 2013-12-04 03:04:40 UTC
Change 99022 merged by jenkins-bot:
Bug 57707: Hotfix, don't push undefined onto wikitext array

https://gerrit.wikimedia.org/r/99022
Comment 3 ssastry 2013-12-04 03:07:26 UTC
We still have to investigate the source of the problem. The hotfix only prevents crashers and should prevents logs from filling up.
Comment 4 Arlo Breault 2013-12-04 07:18:16 UTC
This doesn't appear to be a regression. The above trace seems to be coming from,

https://nl.wikipedia.org/wiki/Lijst_van_talen_van_de_wereld

If I checkout a commit from 8 months back, it spits out the same errors. A minimal test case that can be gleamed from that page is,

{|
|-<onlyinclude>
|-
</onlyinclude>|}
Comment 5 ssastry 2013-12-04 13:22:32 UTC
Oooh .. a test case .. just what was needed! How did you find a failing page?? :-)
Comment 6 Ariel T. Glenn 2013-12-04 14:15:24 UTC
google search for zweeds abadi levend  ;-)

reminder that there are logs in /var/lib/parsoid on wtp1007 which you can look at to see what was being parsed before that error, some of those pages may be candidates.
Comment 7 ssastry 2013-12-04 14:52:43 UTC
Ah yes, indeed ... Gabriel and I both missed got distracted by the zillion 'undefined' entries in that log and missed the google keywords there! :-) Gabriel said he looked at the logs and couldn't find the source. In any case, this test case should be sufficient to debug and fix the problem.
Comment 8 Gerrit Notification Bot 2013-12-04 15:35:26 UTC
Change 99096 had a related patch set uploaded by Subramanya Sastry:
(Bug 57707) Clean up dead code (that was the source of exceptions)

https://gerrit.wikimedia.org/r/99096
Comment 9 Gerrit Notification Bot 2013-12-04 18:56:59 UTC
Change 99096 merged by jenkins-bot:
(Bug 57707) Clean up dead code (that was the source of exceptions)

https://gerrit.wikimedia.org/r/99096
Comment 10 Gabriel Wicke 2013-12-04 21:29:29 UTC
Deployed now.
Comment 11 Gerrit Notification Bot 2013-12-13 19:54:09 UTC
Change 101279 had a related patch set uploaded by GWicke:
Merge "Bug 57707: Hotfix, don't push undefined onto wikitext array"

https://gerrit.wikimedia.org/r/101279
Comment 12 Gerrit Notification Bot 2013-12-13 19:54:15 UTC
Change 101282 had a related patch set uploaded by GWicke:
Merge "(Bug 57707) Clean up dead code (that was the source of exceptions)"

https://gerrit.wikimedia.org/r/101282
Comment 13 Gerrit Notification Bot 2013-12-13 19:55:35 UTC
Change 101331 had a related patch set uploaded by GWicke:
Bug 57707: Hotfix, don't push undefined onto wikitext array

https://gerrit.wikimedia.org/r/101331
Comment 14 Gerrit Notification Bot 2013-12-13 19:55:45 UTC
Change 101334 had a related patch set uploaded by GWicke:
(Bug 57707) Clean up dead code (that was the source of exceptions)

https://gerrit.wikimedia.org/r/101334
Comment 15 Gerrit Notification Bot 2013-12-13 19:56:48 UTC
Change 101282 merged by GWicke:
Merge "(Bug 57707) Clean up dead code (that was the source of exceptions)"

https://gerrit.wikimedia.org/r/101282
Comment 16 Gerrit Notification Bot 2013-12-13 19:56:53 UTC
Change 101334 merged by GWicke:
(Bug 57707) Clean up dead code (that was the source of exceptions)

https://gerrit.wikimedia.org/r/101334
Comment 17 Gerrit Notification Bot 2013-12-13 19:56:58 UTC
Change 101279 merged by GWicke:
Merge "Bug 57707: Hotfix, don't push undefined onto wikitext array"

https://gerrit.wikimedia.org/r/101279
Comment 18 Gerrit Notification Bot 2013-12-13 19:57:01 UTC
Change 101331 merged by GWicke:
Bug 57707: Hotfix, don't push undefined onto wikitext array

https://gerrit.wikimedia.org/r/101331

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


Navigation
Links