Page MenuHomePhabricator

"Undefined offset" error in `DifferentialHunkParser`
Closed, DuplicatePublic

Description

I've noticed a few of these popping up in our PHP error logs:

[11-Jun-2014 07:07:29 UTC] [2014-06-11 17:07:29] ERROR 8: Undefined offset: 185 at [/usr/src/phabricator/src/applications/differential/parser/DifferentialHunkParser.php:9
9]
[11-Jun-2014 07:07:29 UTC]   #0 DifferentialHunkParser::setOldLineTypeMap(Array of size 184 starting with: { 1 => null }) called at [/usr/src/phabricator/src/applications
/differential/parser/DifferentialChangesetParser.php:539]
[11-Jun-2014 07:07:29 UTC]   #1 DifferentialChangesetParser::process() called at [/usr/src/phabricator/src/applications/differential/parser/DifferentialChangesetParser.ph
p:469]
[11-Jun-2014 07:07:29 UTC]   #2 DifferentialChangesetParser::tryCacheStuff() called at [/usr/src/phabricator/src/applications/differential/parser/DifferentialChangesetPar
ser.php:680]
[11-Jun-2014 07:07:29 UTC]   #3 DifferentialChangesetParser::render(null, null, Array ) called at [/usr/src/phabricator/src/applications/differential/controller/Different
ialChangesetViewController.php:215]
[11-Jun-2014 07:07:29 UTC]   #4 DifferentialChangesetViewController::processRequest() called at [/usr/src/phabricator/webroot/index.php:95]
[11-Jun-2014 07:07:29 UTC] [2014-06-11 17:07:29] ERROR 8: Undefined offset: 185 at [/usr/src/phabricator/src/applications/differential/parser/DifferentialHunkParser.php:1
20]
[11-Jun-2014 07:07:29 UTC]   #0 DifferentialHunkParser::setNewLineTypeMap(Array of size 184 starting with: { 1 => null }) called at [/usr/src/phabricator/src/applications
/differential/parser/DifferentialChangesetParser.php:540]
[11-Jun-2014 07:07:29 UTC]   #1 DifferentialChangesetParser::process() called at [/usr/src/phabricator/src/applications/differential/parser/DifferentialChangesetParser.ph
p:469]
[11-Jun-2014 07:07:29 UTC]   #2 DifferentialChangesetParser::tryCacheStuff() called at [/usr/src/phabricator/src/applications/differential/parser/DifferentialChangesetPar
ser.php:680]
[11-Jun-2014 07:07:29 UTC]   #3 DifferentialChangesetParser::render(null, null, Array ) called at [/usr/src/phabricator/src/applications/differential/controller/Different
ialChangesetViewController.php:215]
[11-Jun-2014 07:07:29 UTC]   #4 DifferentialChangesetViewController::processRequest() called at [/usr/src/phabricator/webroot/index.php:95]

Event Timeline

joshuaspence assigned this task to epriestley.
joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Differential.
joshuaspence added a subscriber: joshuaspence.