Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Test runner sometimes just stops, sometimes gives "Allowed memory size exhausted" error

未關閉
#6,840 7 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
冷清
技術堆疊
php, symfony
領域
testing

研究方向

先使用完整的 Codeception 測試套件重現問題,然後將其與單獨執行受影響檔案時的結果進行比較。檢查 PHP CLI 設定以及回報的 vendor/symfony/var-dumper/Caster/ClassStub.php 位置,以追蹤 1G 限制套用的位置。找出掛起或記憶體耗盡的原因,並確認完整測試套件能可靠完成,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Since my latest run (~2 weeks ago), the Codeception runner is suddenly hanging strangely:

  • Sometimes, in the middle of the suite, it just stops with message "COMMAND DID NOT FINISH PROPERLY."

  • Sometimes (at another test), it crashes with:

    PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in ...vendor/symfony/var-dumper/Caster/ClassStub.php on line 52

    However, the memory_limit in my php.inis (for CLI and FPM) is 3000M. So where is the 1G limit coming from?

This is not caused by the tests themselves, cause when I run just the affected files alone, everything's fine.

Any ideas? Is somebody else experiencing this? Were there recent changes regarding memory management (couldn't find anything)?

主要語言
PHP
星號
4.9k
分支
1.3k
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Codeception/Codeception 的其他 Issue

查看 Codeception/Codeception 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。