Fact with Unhandled Exception ("TypeError")

Expected

Could see any Fact chart

What I get

Just white space like

Additional

I run/manage a few Phabricator instances on different servers.
All of them have the same OS version, packages, and only different domain and contents in Phabricator.
But some of them shows a graph when others not.

I tried followings and reboot in some machines but did not help

  • bin/fact destroy
  • bin/fact analyze --all
  • service php7.2-fpm reload
  • service php7.2-fpm restart
  • nginx -s stop
  • nginx

Reproduction Instructions

  • Access YOURHOST/maniphest/report/burn/
    • No graph, just white page
    • Refer Log #1
    • Same as YOURHOST/project/reports/*/
  • Click View Chart

Phabricator/Arcanist Version
phabricator 51cd3f097928b1ed0a28c44a756185ead1dd1b94 (Sat, Jun 22) (branched from ca56e8590a3df188af5710cf4ef7b3e9780dd780 on origin)
arcanist feb5f4d42c4fe0001e76428e80d5e88262308802 (Sat, Jun 22) (branched from d92fa96366c0ed50e4257508148aa75192d4fb1f on origin)
phutil b675a06bf7419ff3b64448cb310e7557530446db (Sun, Jun 23) (branched from 8eaf1b38d41711112269b35bd2f083f6bc567d51 on origin)
php 7.2.19-0ubuntu0.18.10.1
diff 3.6 at /usr/bin/diff
git 2.22.0 at /usr/bin/git
hg Not Available
pygmentize 2.3.1 at /usr/local/bin/pygmentize
svn Not Available

And I could get the same situation with version (stable) Promote 2019 Week 21

Log #1

2019/06/23 17:11:33 [error] 15099#0: *67 FastCGI sent in stderr: "PHP message: [2019-06-23 17:11:33] ERROR 2: htmlspecialchars() expects parameter 1 to be string, object given at [/phabs/HP/libphutil/src/markup/render.php:140]
PHP message: arcanist(head=stable, ref.master=3534d2baca4b, ref.stable=feb5f4d42c4f), phabricator(head=stable, ref.master=da40f8074106, ref.stable=51cd3f097928), phutil(head=stable, ref.master=2ec24ec0d3d2, ref.stable=b675a06bf741)
PHP message:   #0 htmlspecialchars(PhabricatorDashboardPanel, integer, string) called at [<phutil>/src/markup/render.php:140]
PHP message:   #1 phutil_escape_html(PhabricatorDashboardPanel) called at [<phutil>/src/markup/render.php:135]
PHP message:   #2 phutil_escape_html(array) called at [<phutil>/src/markup/render.php:135]
PHP message:   #3 phutil_escape_html(array) called at [<phutil>/src/markup/render.php:135]
PHP message:   #4 phutil_escape_html(array) called at [<phutil>/src/markup/render.php:97]
PHP message:   #5 phutil_tag(string, array, array) called at [<phabricator>/src/view/layout/AphrontSideNavFilterView.php:331]
PHP message:   #6 AphrontSideNavFilterView::renderFlexNav() called at [<phabricator>/src/view/layout/AphrontSideNavFilterView.php:208]
PHP message:   #7 AphrontSideNavFilterView::render() called at [<phabricator>/src/view/page/PhabricatorStandardPageView.php:515]
PHP message:   #8 PhabricatorStandardPageView::renderPageBodyContent() called at [<phabricator>/src/view/page/PhabricatorStandardPageView.php:464]
PHP message:   #9 PhabricatorStandardPageView::getBody() called at [<phabricator>/src/view/page/AphrontPageView.php:50]
PHP message:   #10 AphrontPageView::render() called at [<phabricator>/src/view/page/PhabricatorStandardPageView.php:889]
PHP message:   #11 PhabricatorStandardPageView::produceAphrontResponse() called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:715]
PHP message:   #12 AphrontApplicationConfiguration::produceResponse(AphrontRequest, PhabricatorStandardPageView) called at [<phabricator
2019/06/23 17:11:33 [error] 15099#0: *67 FastCGI sent in stderr: "PHP message: [2019-06-23 17:11:33] EXCEPTION: (TypeError) Argument 1 passed to head_key() must be of the type array, null given, called in /phabs/HP/phabricator/src/applications/fact/chart/PhabricatorFactChartFunction.php on line 76 at [<phutil>/src/utils/utils.php:832]
PHP message: arcanist(head=stable, ref.master=3534d2baca4b, ref.stable=feb5f4d42c4f), phabricator(head=stable, ref.master=da40f8074106, ref.stable=51cd3f097928), phutil(head=stable, ref.master=2ec24ec0d3d2, ref.stable=b675a06bf741)
PHP message:   #0 phlog(TypeError) called at [<phabricator>/src/aphront/handler/PhabricatorAjaxRequestExceptionHandler.php:27]
PHP message:   #1 PhabricatorAjaxRequestExceptionHandler::handleRequestThrowable(AphrontRequest, TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:744]
PHP message:   #2 AphrontApplicationConfiguration::handleThrowable(TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:298]
PHP message:   #3 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:209]
PHP message:   #4 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35]" while reading response header from upstream, client: 59.6.97.31, server: phab.YOURHOST, request: "POST /fact/chart/oVByTq80RF72/draw/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "phab.YOURHOST"

Log #2

2019/06/23 17:14:38 [error] 15099#0: *79 FastCGI sent in stderr: "PHP message: [2019-06-23 17:14:38] EXCEPTION: (TypeError) Argument 1 passed to head_key() must be of the type array, null given, called in /phabs/HP/phabricator/src/applications/fact/chart/PhabricatorFactChartFunction.php on line 76 at [<phutil>/src/utils/utils.php:832]
PHP message: arcanist(head=stable, ref.master=3534d2baca4b, ref.stable=feb5f4d42c4f), phabricator(head=stable, ref.master=da40f8074106, ref.stable=51cd3f097928), phutil(head=stable, ref.master=2ec24ec0d3d2, ref.stable=b675a06bf741)
PHP message:   #0 phlog(TypeError) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
PHP message:   #1 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:744]
PHP message:   #2 AphrontApplicationConfiguration::handleThrowable(TypeError) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:298]
PHP message:   #3 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:209]
PHP message:   #4 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:35]" while reading response header from upstream, client: 59.6.97.31, server: phab.honpo.net, request: "GET /fact/chart/oVByTq80RF72/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "phab.YOURHOST"

I am also seeing this error.