hook_managed(...CaseType,APIv4...): Exhausts memory (>256m)
Overview
If you export a CaseType
with a real definition
and then try to import it by way of hook_managed(...CaseType,APIv4...)
, then it crashes due to memory exhaustion.
Reproduction steps
Install https://gist.github.com/totten/3ec8164c3f8ca9d3c51e768feab946da
(Note: https://github.com/civicrm/civicrm-core/pull/23961 also includes a way to reproduce the problem within a test; but some of the key bits are commented-out, and it requires a mixer
test harness. The gist may be easier for most folks to play with.)
Current behaviour
$ cv en shimmy
Enabling extension "shimmy"
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 69632 bytes) in /Users/totten/bknix/build/dmaster/web/sites/all/modules/civicrm/CRM/Core/Error.php on line 818
Note: 256m is plenty generous for the task.
Expected behaviour
The extension should be enabled -- and the full/valid CaseType
should be setup.
Environment information
- Browser: Firefox
- CiviCRM: Master
- PHP: 7.4
- CMS: D7
- Database: MySQL 5.7
- Web Server: Apache 2.4
Comments
Anything else you would like the reviewer to note.