⚓ T306003 Wikimedia\Assert\InvariantException: Invariant failed: Bad UTF-8 at end of string (2 byte sequence)
Page Menu
Phabricator
Create Task
Maniphest
T306003
Wikimedia\Assert\InvariantException: Invariant failed: Bad UTF-8 at end of string (2 byte sequence)
Closed, Resolved
Public
PRODUCTION ERROR
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
ssastry
Authored By
ssastry
Apr 13 2022, 6:56 AM
2022-04-13 06:56:20 (UTC+0)
Tags
Wikimedia-production-error
(Apr 2022)
Parsoid
(Bugs & Crashers)
Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid)
(Code Review)
MW-1.40-notes (1.40.0-wmf.8; 2022-10-31)
Content-Transform-Team-WIP
(To Verify)
Referenced Files
None
Subscribers
Aklapper
ssastry
Description
Error
mwversion:
1.39.0-wmf.6
reqId:
88ec81aa-5293-4693-b9e6-b97261e98d18
Find reqId in Logstash
normalized_message
[{reqId}] {exception_url} Wikimedia\Assert\InvariantException: Invariant failed: Bad UTF-8 at end of string (2 byte sequence)
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/assert/src/Assert.php(231)
#0 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Utils/PHPUtils.php(198): Wikimedia\Assert\Assert::invariant(boolean, string)
#1 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/DOMRangeBuilder.php(974): Wikimedia\Parsoid\Utils\PHPUtils::safeSubstr(string, integer, integer)
#2 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/DOMRangeBuilder.php(1273): Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder->encapsulateTemplates(array)
#3 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/PP/Processors/WrapTemplates.php(21): Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder->execute(Wikimedia\Parsoid\DOM\Element)
#4 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(158): Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapTemplates->run(Wikimedia\Parsoid\Config\Env, Wikimedia\Parsoid\DOM\Element, array, boolean)
#5 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(848): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->Wikimedia\Parsoid\Wt2Html\{closure}(Wikimedia\Parsoid\DOM\Element, array, boolean)
#6 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(889): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->doPostProcess(Wikimedia\Parsoid\DOM\Element)
#7 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/DOMPostProcessor.php(907): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->process(Wikimedia\Parsoid\DOM\Element)
#8 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipeline.php(180): Wikimedia\Parsoid\Wt2Html\DOMPostProcessor->processChunkily(string, array)
#9 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wt2Html/ParserPipelineFactory.php(308): Wikimedia\Parsoid\Wt2Html\ParserPipeline->parseChunkily(string, array)
#10 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Wikitext/ContentModelHandler.php(122): Wikimedia\Parsoid\Wt2Html\ParserPipelineFactory->parse(string)
#11 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Parsoid.php(172): Wikimedia\Parsoid\Wikitext\ContentModelHandler->toDOM(Wikimedia\Parsoid\Ext\ParsoidExtensionAPI)
#12 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/src/Parsoid.php(210): Wikimedia\Parsoid\Parsoid->parseWikitext(MediaWiki\Parser\Parsoid\Config\PageConfig, ParserOutput, array)
#13 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/extension/src/Rest/Handler/ParsoidHandler.php(587): Wikimedia\Parsoid\Parsoid->wikitext2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array, NULL, ParserOutput)
#14 /srv/mediawiki/php-1.39.0-wmf.6/vendor/wikimedia/parsoid/extension/src/Rest/Handler/PageHandler.php(88): MWParsoid\Rest\Handler\ParsoidHandler->wt2html(MediaWiki\Parser\Parsoid\Config\PageConfig, array)
#15 /srv/mediawiki/php-1.39.0-wmf.6/includes/Rest/Router.php(414): MWParsoid\Rest\Handler\PageHandler->execute()
#16 /srv/mediawiki/php-1.39.0-wmf.6/includes/Rest/Router.php(338): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\PageHandler)
#17 /srv/mediawiki/php-1.39.0-wmf.6/includes/Rest/EntryPoint.php(166): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#18 /srv/mediawiki/php-1.39.0-wmf.6/includes/Rest/EntryPoint.php(131): MediaWiki\Rest\EntryPoint->execute()
#19 /srv/mediawiki/php-1.39.0-wmf.6/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#20 /srv/mediawiki/w/rest.php(3): require(string)
#21 {main}
Impact
Notes
Details
Request URL
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
Bump parsoid to 0.17.0-a5
mediawiki/vendor
master
+285
-82
Improve hoisting of template meta tags
mediawiki/services/parsoid
master
+139
-33
Customize query in gerrit
Event Timeline
ssastry
created this task.
Apr 13 2022, 6:56 AM
2022-04-13 06:56:20 (UTC+0)
Restricted Application
added a subscriber:
Aklapper
View Herald Transcript
Apr 13 2022, 6:56 AM
2022-04-13 06:56:21 (UTC+0)
ssastry
added a comment.
Apr 13 2022, 6:57 AM
2022-04-13 06:57:40 (UTC+0)
Comment Actions
is another example of a crasher on the same line.
Krinkle
moved this task from
Untriaged
to
Apr 2022
on the
Wikimedia-production-error
board.
Apr 14 2022, 3:15 PM
2022-04-14 15:15:48 (UTC+0)
Arlolra
triaged this task as
Medium
priority.
Apr 26 2022, 10:26 PM
2022-04-26 22:26:01 (UTC+0)
Arlolra
moved this task from
Needs Triage
to
Bugs & Crashers
on the
Parsoid
board.
gerritbot
added a comment.
Oct 8 2022, 7:23 PM
2022-10-08 19:23:37 (UTC+0)
Comment Actions
Change 840334 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):
[mediawiki/services/parsoid@master] WIP: Improve accuracy of DSR computation
gerritbot
added a project:
Patch-For-Review
Oct 8 2022, 7:23 PM
2022-10-08 19:23:37 (UTC+0)
ssastry
claimed this task.
Oct 8 2022, 7:24 PM
2022-10-08 19:24:42 (UTC+0)
ssastry
added a project:
Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid)
ssastry
moved this task from
Backlog
to
Code Review
on the
Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid)
board.
Oct 12 2022, 2:12 AM
2022-10-12 02:12:43 (UTC+0)
gerritbot
added a comment.
Oct 24 2022, 6:24 PM
2022-10-24 18:24:05 (UTC+0)
Comment Actions
Change 840334
merged
by jenkins-bot:
[mediawiki/services/parsoid@master] Improve hoisting of template meta tags
Maintenance_bot
removed a project:
Patch-For-Review
Oct 24 2022, 6:30 PM
2022-10-24 18:30:26 (UTC+0)
gerritbot
added a comment.
Oct 31 2022, 10:16 PM
2022-10-31 22:16:31 (UTC+0)
Comment Actions
Change 851140 had a related patch set uploaded (by Arlolra; author: Arlolra):
[mediawiki/vendor@master] Bump parsoid to 0.17.0-a5
gerritbot
added a project:
Patch-For-Review
Oct 31 2022, 10:16 PM
2022-10-31 22:16:31 (UTC+0)
gerritbot
added a comment.
Oct 31 2022, 10:35 PM
2022-10-31 22:35:50 (UTC+0)
Comment Actions
Change 851140
merged
by jenkins-bot:
[mediawiki/vendor@master] Bump parsoid to 0.17.0-a5
ReleaseTaggerBot
added a project:
MW-1.40-notes (1.40.0-wmf.8; 2022-10-31)
Oct 31 2022, 11:00 PM
2022-10-31 23:00:43 (UTC+0)
Maintenance_bot
removed a project:
Patch-For-Review
Oct 31 2022, 11:30 PM
2022-10-31 23:30:21 (UTC+0)
ssastry
added a project:
Content-Transform-Team-WIP
Nov 7 2022, 4:24 PM
2022-11-07 16:24:33 (UTC+0)
ssastry
moved this task from
Backlog
to
To Verify
on the
Content-Transform-Team-WIP
board.
ssastry
closed this task as
Resolved
Nov 10 2022, 10:43 PM
2022-11-10 22:43:30 (UTC+0)
Comment Actions
I am going to resolve this instance of the phab task. There are now instances that purport to be on main pages of ruwiki, bewiki, ukwiki .. which I'll look at separately but they may be parses for posted wikitext vs page wikitext. It is a bit hard to track those without logging the posted wikitext.
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits
US