Page MenuHomePhabricator

Exception when creating Circular Dependency
Closed, DuplicatePublic

Description

When creating a circular dependency between tasks via the "Edit Blocking Tasks" feature I end up with a grayed out browser window, no way to interact with the Phabricator website within the browser tab, a message in the developer console:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

https://xxxx/search/attach/PHID-TASK-db2hr72y4hqdgsm5sqmd/TASK/blocks/

and the following thing in the server logs:

Dec 22 16:22:24 phabricator-vm nginx[8972]: 2015/12/22 16:22:24 [error] 8974#0: *12245 FastCGI sent in stderr: "PHP message: [2015-12-22 16:22:24] EXCEPTION: (Exception) You can not create that dependency, because it would create a circular dependency: T81: xxx โ†’ T26: xxx โ†’ T81: xxx. at [<phabricator>/src/applications/search/controller/PhabricatorSearchAttachController.php:318]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message: arcanist(head=master, ref.master=0c8124a2729d), phabricator(head=master, ref.master=90c4880aaa7b), phutil(head=master, ref.master=230c3e161c9a)
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #0 <#2> PhabricatorSearchAttachController::raiseGraphCycleException(PhabricatorEdgeCycleException) called at [<phabricator>/src/applications/search/controller/PhabricatorSearchAttachController.php:77]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #1 <#2> PhabricatorSearchAttachController::handleRequest(AphrontRequest) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:237]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #2 phlog(Exception) called at [<phabricator>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:32]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #3 PhabricatorDefaultRequestExceptionHandler::handleRequestException(AphrontRequest, Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:632]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #4 AphrontApplicationConfiguration::handleException(Exception) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:242]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #5 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:149]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message:   #6 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]
Dec 22 16:22:24 phabricator-vm nginx[8972]: PHP message: PHP Fatal error:  Uncaught exception 'Exception' with message 'Process exited with an open transaction! The transaction will be implicitly ro

Expected: a nice modal in-app window telling me that it is forbidden to create circular dependencies and no errors in the server logs.