{"record":{"id":"b00af73b0aa8d7f0","repo":"phacility/phabricator","slug":"collided-mid-air-when-generating-builtin-file-s","errorCode":null,"errorMessage":"Collided mid-air when generating builtin file \"%s\", but then failed to load the object we collided with.","messagePattern":"Collided mid-air when generating builtin file \"(.+?)\", but then failed to load the object we collided with\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/storage/PhabricatorFile.php","lineNumber":1202,"sourceCode":"\n      $data = $builtin->loadBuiltinFileData();\n\n      $params = array(\n        'name' => $builtin->getBuiltinDisplayName(),\n        'canCDN' => true,\n        'builtin' => $key,\n      );\n\n      $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();\n        try {\n          $file = self::newFromFileData($data, $params);\n        } catch (AphrontDuplicateKeyQueryException $ex) {\n          $file = id(new PhabricatorFileQuery())\n            ->setViewer(PhabricatorUser::getOmnipotentUser())\n            ->withBuiltinKeys(array($key))\n            ->executeOne();\n          if (!$file) {\n            throw new Exception(\n              pht(\n                'Collided mid-air when generating builtin file \"%s\", but '.\n                'then failed to load the object we collided with.',\n                $key));\n          }\n        }\n      unset($unguarded);\n\n      $file->attachObjectPHIDs(array());\n      $file->attachObjects(array());\n\n      $results[$key] = $file;\n    }\n\n    return $results;\n  }\n\n","sourceCodeStart":1184,"sourceCodeEnd":1220,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/storage/PhabricatorFile.php#L1184-L1220","documentation":"Error \"Collided mid-air when generating builtin file \"%s\", but then failed to load the object we collided with.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/storage/PhabricatorFile.php:1202 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}