Unhandled exception on create task


#1

Observed Behavior:
When trying to visit /maniphest/task/edit/form/1/ I got the following exception:

[2018-11-02 08:48:01] EXCEPTION: (Exception) Error while loading file "<phabricator>/src/applications/maniphest/editor/ManiphestTransactionEditor.php": "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at [<phutil>/src/moduleutils/PhutilBootloader.php:277]
arcanist(head=stable, ref.master=2650e8627a20, ref.stable=f5e65a808e21), phabricator(head=stable, ref.master=bc6c8c0e93a7, ref.stable=a0f323a72f81), phutil(head=master, ref.master=603209bb1756)
  #0 <#2> PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:213]
  #1 <#2> PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
  #2 <#2> PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
  #3 <#2> PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
  #4 <#2> __phutil_autoload(string)
  #5 <#2> spl_autoload_call(string) called at [<phabricator>/src/applications/maniphest/storage/ManiphestTask.php:452]
  #6 <#2> ManiphestTask::getApplicationTransactionEditor() called at [<phabricator>/src/applications/policy/editor/PhabricatorPolicyEditEngineExtension.php:32]
  #7 <#2> PhabricatorPolicyEditEngineExtension::buildCustomEditFields(ManiphestEditEngine, ManiphestTask) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:175]
  #8 <#2> PhabricatorEditEngine::buildEditFields(ManiphestTask) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:1009]
  #9 <#2> PhabricatorEditEngine::buildEditResponse(ManiphestTask) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:971]
  #10 <#2> PhabricatorEditEngine::buildResponse() called at [<phabricator>/src/applications/maniphest/controller/ManiphestTaskEditController.php:13]
  #11 <#2> ManiphestTaskEditController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:258]
  #12 phlog(Exception) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]
  #13 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:670]
  #14 AphrontApplicationConfiguration::handleThrowable(Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:263]
  #15 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:178]
  #16 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]

php --version: PHP 7.3.0RC2 (cli) (built: Oct 4 2018 14:25:15) ( NTS )

Reloading seemed to work, so this is intermittent.


Error seems to be related with da40f8074 and PHP 7.3
#2

is php 7.3 much stricter on compilation issues?


#3

Thanks, should be fixed by https://secure.phabricator.com/D19772.

is php 7.3 much stricter on compilation issues?

I think PHP 7.3 specifically added this new warning for switch ... continue (which has the same behavior as switch ... break, but is unconventional and reasonably likely to be an error).


#4

Different cases, but I think my case also seems to be same issue.

Observed behavior

I do Bulk Edit Selected for adding project tag or adding comment, I got only almost half success.
When I tried it again with failed tickets again, it also success only half.

I couldn’t read the exception message from web, but I found it from log.

[07-Nov-2018 17:53:38 Asia/Seoul]   #7 <#2> PhabricatorApplicationTransactionPublishWorker::buildEditor(ManiphestTask) called at [<phabricator>/src/applications/transactions/worker/Phabrica
torApplicationTransactionPublishWorker.php:18]
[07-Nov-2018 17:53:38 Asia/Seoul]   #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
[07-Nov-2018 17:53:38 Asia/Seoul]   #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
[07-Nov-2018 17:53:38 Asia/Seoul]   #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[07-Nov-2018 17:53:38 Asia/Seoul]   #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219]
[07-Nov-2018 17:53:38 Asia/Seoul]   #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131]
[07-Nov-2018 17:53:40 Asia/Seoul] [2018-11-07 17:53:40] EXCEPTION: (PhutilProxyException) Error while executing Task ID 18984. {>} (Exception) Error while loading file "/phab/phabricator/sr
c/applications/maniphest/editor/ManiphestTransactionEditor.php": "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at [<phutil>/src/moduleutils/PhutilB
ootloader.php:277]
[07-Nov-2018 17:53:40 Asia/Seoul] arcanist(head=master, ref.master=83661809e532), phabricator(head=master, ref.master=1f6a4cfffe58), phutil(head=master, ref.master=cf96fd681e7d)
[07-Nov-2018 17:53:40 Asia/Seoul]   #0 <#2> PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:213]
[07-Nov-2018 17:53:40 Asia/Seoul]   #1 <#2> PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
[07-Nov-2018 17:53:40 Asia/Seoul]   #2 <#2> PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
[07-Nov-2018 17:53:40 Asia/Seoul]   #3 <#2> PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
[07-Nov-2018 17:53:40 Asia/Seoul]   #4 <#2> __phutil_autoload(string)
[07-Nov-2018 17:53:40 Asia/Seoul]   #5 <#2> spl_autoload_call(string) called at [<phabricator>/src/applications/maniphest/storage/ManiphestTask.php:452]
[07-Nov-2018 17:53:40 Asia/Seoul]   #6 <#2> ManiphestTask::getApplicationTransactionEditor() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionP
ublishWorker.php:68]
[07-Nov-2018 17:53:40 Asia/Seoul]   #7 <#2> PhabricatorApplicationTransactionPublishWorker::buildEditor(ManiphestTask) called at [<phabricator>/src/applications/transactions/worker/Phabrica
torApplicationTransactionPublishWorker.php:18]
[07-Nov-2018 17:53:40 Asia/Seoul]   #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
[07-Nov-2018 17:53:40 Asia/Seoul]   #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
[07-Nov-2018 17:53:40 Asia/Seoul]   #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[07-Nov-2018 17:53:40 Asia/Seoul]   #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219]
[07-Nov-2018 17:53:40 Asia/Seoul]   #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131]
[07-Nov-2018 17:53:40 Asia/Seoul] [2018-11-07 17:53:40] EXCEPTION: (PhutilProxyException) Error while executing Task ID 18985. {>} (Exception) Error while loading file "/phab/phabricator/sr
c/applications/maniphest/editor/ManiphestTransactionEditor.php": "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at [<phutil>/src/moduleutils/PhutilB
ootloader.php:277]
[07-Nov-2018 17:53:40 Asia/Seoul] arcanist(head=master, ref.master=83661809e532), phabricator(head=master, ref.master=1f6a4cfffe58), phutil(head=master, ref.master=cf96fd681e7d)
[07-Nov-2018 17:53:40 Asia/Seoul]   #0 <#2> PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:213]
[07-Nov-2018 17:53:40 Asia/Seoul]   #1 <#2> PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
[07-Nov-2018 17:53:40 Asia/Seoul]   #2 <#2> PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
[07-Nov-2018 17:53:40 Asia/Seoul]   #3 <#2> PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
[07-Nov-2018 17:53:40 Asia/Seoul]   #4 <#2> __phutil_autoload(string)
[07-Nov-2018 17:53:40 Asia/Seoul]   #5 <#2> spl_autoload_call(string) called at [<phabricator>/src/applications/maniphest/storage/ManiphestTask.php:452]
[07-Nov-2018 17:53:40 Asia/Seoul]   #6 <#2> ManiphestTask::getApplicationTransactionEditor() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionP
ublishWorker.php:68]
[07-Nov-2018 17:53:40 Asia/Seoul]   #7 <#2> PhabricatorApplicationTransactionPublishWorker::buildEditor(ManiphestTask) called at [<phabricator>/src/applications/transactions/worker/Phabrica
torApplicationTransactionPublishWorker.php:18]
[07-Nov-2018 17:53:40 Asia/Seoul]   #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
[07-Nov-2018 17:53:40 Asia/Seoul]   #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
[07-Nov-2018 17:53:40 Asia/Seoul]   #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[07-Nov-2018 17:53:40 Asia/Seoul]   #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219]
[07-Nov-2018 17:53:40 Asia/Seoul]   #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131]
[07-Nov-2018 17:53:42 Asia/Seoul] [2018-11-07 17:53:42] EXCEPTION: (PhutilProxyException) Error while executing Task ID 18986. {>} (Exception) Error while loading file "/phab/phabricator/sr
c/applications/maniphest/editor/ManiphestTransactionEditor.php": "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at [<phutil>/src/moduleutils/PhutilB
ootloader.php:277]
[07-Nov-2018 17:53:42 Asia/Seoul] arcanist(head=master, ref.master=83661809e532), phabricator(head=master, ref.master=1f6a4cfffe58), phutil(head=master, ref.master=cf96fd681e7d)
[07-Nov-2018 17:53:42 Asia/Seoul]   #0 <#2> PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:213]
[07-Nov-2018 17:53:42 Asia/Seoul]   #1 <#2> PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
[07-Nov-2018 17:53:42 Asia/Seoul]   #2 <#2> PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
[07-Nov-2018 17:53:42 Asia/Seoul]   #3 <#2> PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
[07-Nov-2018 17:53:42 Asia/Seoul]   #4 <#2> __phutil_autoload(string)
[07-Nov-2018 17:53:42 Asia/Seoul]   #5 <#2> spl_autoload_call(string) called at [<phabricator>/src/applications/maniphest/storage/ManiphestTask.php:452]
[07-Nov-2018 17:53:42 Asia/Seoul]   #6 <#2> ManiphestTask::getApplicationTransactionEditor() called at [<phab
ricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:68]
[07-Nov-2018 17:53:42 Asia/Seoul]   #7 <#2> PhabricatorApplicationTransactionPublishWorker::buildEditor(ManiphestTask) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:18]
[07-Nov-2018 17:53:42 Asia/Seoul]   #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
[07-Nov-2018 17:53:42 Asia/Seoul]   #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
[07-Nov-2018 17:53:42 Asia/Seoul]   #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[07-Nov-2018 17:53:42 Asia/Seoul]   #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219]
[07-Nov-2018 17:53:42 Asia/Seoul]   #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131]
[07-Nov-2018 17:53:44 Asia/Seoul] [2018-11-07 17:53:44] EXCEPTION: (PhutilProxyException) Error while executing Task ID 19011. {>} (Exception) Error while loading file "/phab/phabricator/src/applications/maniphest/editor/ManiphestTransactionEditor.php": "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? at [<phutil>/src/moduleutils/PhutilBootloader.php:277]
[07-Nov-2018 17:53:44 Asia/Seoul] arcanist(head=master, ref.master=83661809e532), phabricator(head=master, ref.master=1f6a4cfffe58), phutil(head=master, ref.master=cf96fd681e7d)
[07-Nov-2018 17:53:44 Asia/Seoul]   #0 <#2> PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:213]
[07-Nov-2018 17:53:44 Asia/Seoul]   #1 <#2> PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
[07-Nov-2018 17:53:44 Asia/Seoul]   #2 <#2> PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
[07-Nov-2018 17:53:44 Asia/Seoul]   #3 <#2> PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
[07-Nov-2018 17:53:44 Asia/Seoul]   #4 <#2> __phutil_autoload(string)
[07-Nov-2018 17:53:44 Asia/Seoul]   #5 <#2> spl_autoload_call(string) called at [<phabricator>/src/applications/maniphest/storage/ManiphestTask.php:452]
[07-Nov-2018 17:53:44 Asia/Seoul]   #6 <#2> ManiphestTask::getApplicationTransactionEditor() called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:68]
[07-Nov-2018 17:53:44 Asia/Seoul]   #7 <#2> PhabricatorApplicationTransactionPublishWorker::buildEditor(ManiphestTask) called at [<phabricator>/src/applications/transactions/worker/PhabricatorApplicationTransactionPublishWorker.php:18]
[07-Nov-2018 17:53:44 Asia/Seoul]   #8 <#2> PhabricatorApplicationTransactionPublishWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
[07-Nov-2018 17:53:44 Asia/Seoul]   #9 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
[07-Nov-2018 17:53:44 Asia/Seoul]   #10 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[07-Nov-2018 17:53:44 Asia/Seoul]   #11 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:219]
[07-Nov-2018 17:53:44 Asia/Seoul]   #12 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:131]