8 – Form Set Error breaks validation – Allowed memory size of xxx bytes exhausted

I’m creating a simple form :

class UserRegisterForm extends FormBase {

    /**
    * {@inheritdoc}
    */
    public function getFormId() {
    return 'user_register_form';
    }

    /**
    * {@inheritdoc}
    */
    public function buildForm(array $form, FormStateInterface $form_state) {
        ...

        return $form;
    }

    /**
    * {@inheritdoc}
    */
    public function validateForm(array &$form, FormStateInterface $form_state) {
        $form_state->setError($form, $this->t('The password must contain at least 12 characters, including 1 lowercase, 1 uppercase and 1 special character.'));
    }

    /**
    * {@inheritdoc}
    */
    public function submitForm(array &$form, FormStateInterface $form_state) {}

}

But when I use the setError() or setErrorByName() methods, I get a “Allowed memory size of XXX bytes exhausted” error when I submit the form.

The logs gives me thousands of 404 Page Not Found errors on my form page, like it was giving me an infinite loop.

Any ideas ?

magento2.4.1 – Magento 2.4.1 PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 176128 bytes)

This error(Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in vendor/magento/framework/Serialize/Serializer/Json.php on line 37) is populated when we access the category page (this category is top level category which shows all products (we have only 20-24 configurable products)). Not each time but it come after 10-12 days interval on the production environment.

We recently upgraded our server memory from 4g to 8g to solve this issue but it is still there.

We use nginx and php-fpm

We also updated the memory limit from .user.ini file from both the location m2 root and Pub

Thanks in advance.

camera – Why does my eye lose white balance and feel exhausted when I use my viewfinder?

My D80 has a greenish tint effect (shutter count at approx 46000) in it’s viewfinder which goes away if i use it long enough constantly looking through the viewfinder.

The weird thing is my other eye starts to see things in green tint when i use it for viewfinder instead.

I don’t keep my both eyes during shooting (neither when it comes to shooting certain devices) for easier manual focus but this was a interesting effect.

The other thing i find weird is that my left eye feels exhausted if i keep both of my eyes open.

So, is this normal? What are these called.

dnd 5e – Can a creature who is exhausted benefit from bonuses to speed?

A condition does only what it says. The grappled and restrained conditions, as you cited them, state explicitly that the creature can’t benefit from any bonus to its speed, but the exhaustion condition states no such thing, nor is there a general rule prohibiting the benefit of bonuses to speed when a creature’s speed is reduced to 0.

Specific beats general, so a spell like longstrider would supersede the more general exhaustion condition (on the assumption that one spell out of hundreds is more specific than one common condition out of about a dozen). Otherwise, if that were not the intended precedence, then the grappled and restrained conditions would not even need to state the exception.

This is upheld by Jeremy Crawford, lead rules designer for 5e: “Having 5 levels of exhaustion reduces your speed to 0, but it doesn’t prevent bonuses to speed from applying to you.” (Source)

This is not surprising if you consider each condition thematically: grappled and restrained represent external factors locking a creature in place to restrict their ability to move (and gaining a bonus to speed would not circumvent that restriction), whereas exhaustion represents the creature’s fatigue robbing them of the energy or gumption to move (but gaining a bonus to speed, likely via magic, could overcome that by effectively energizing or motivating them).

7 – PHP memory size exhausted using Memcache

FastCGI sent in stderr:

PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 137612647 bytes)

Already I increase 2 times in php.ini file. But again memory size exhausted happening. And also I got following error:

/app/source_code_shop/shop/sites/all/modules/contrib/memcache/dmemcache.inc on line 64″ while reading response header from upstream.

We can’t fixed this solution. Is it Memcache error or Memcache module error or PHP coding problem. Please give me proper solution how can solve php memory exhaust problem in Drupal.

windows 10 – Networking “does not have a valid IP configuration” – all known solutions exhausted

A lot of people get this error for different reasons, but on 1 particular high-end laptop the error has persisted for a full year, despite trying everything short of reinstalling the OS. It seems like nothing special was happening when the error began, though some network related programs were installed (since removed).

Here’s a list of what has been tried:

  • Restarting
  • Disabling / enabling the network adapters
  • netsh resets and flushing (e.g int tcp reset, int ip reset, flushdns, etc)
  • Reinstalling network/WiFi drivers
  • Changing networks many times to make sure it has nothing to do with the router
  • Manually and automatically setting LAN IP and DNS
  • Uninstalling all 3rd party network related software
  • Network reset all settings (Windows feature)
  • Safe Mode
  • Adding a DHCP related DWORD to the registry that ended in “Toggle” with a value of 1
  • Trying all of this with both Ethernet and WiFi
  • Trying an external WiFi adapter

This is on Windows 10. Even Ping fails to transmit with “general error”.

oracle – diskgroup “DATA” space exhausted, but disk space is available from asm_diskgroup query

I’m trying to restore database, and it failed due to disk space issue:

rman> restore database
...
ORA-19504: failed to create file "+DATA"
ORA-17502: ksfdcre:4 Failed to create file +DATA
ORA-15041: diskgroup "DATA" space exhausted
...

Then I checked the diskspace via this query

SELECT name, free_mb, total_mb, free_mb/total_mb*100 as percentage
2>      FROM v$asm_diskgroup;

NAME                              FREE_MB   TOTAL_MB PERCENTAGE
------------------------------ ---------- ---------- ----------
DATA                                67032     153600  43.640625

Looks like there are 67GB available, so what was wrong?

Is there a way to get the disk space needed?

magento2 – Magento 2.4 HTTPD Memory Leak | Allowed memory size of 792723456 bytes exhausted

After upgrading to Magento 2.4, I’ve been unable to run a stable production environment. HTTPD spawns the maximum number of processes and uses all of my systems memory and swap (it takes 5-20 minutes to reach this point).

I’m constantly seeing the following errors in httpd error_log:

(Mon Aug 17 19:40:48.077047 2020) (php7:error) (pid 16939:tid 140670127806208) (client 127.0.0.1:40644) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108
(Mon Aug 17 19:40:48.125051 2020) (php7:error) (pid 16939:tid 140670127806208) (client 127.0.0.1:40644) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 40960 bytes) in Unknown on line 0
(Mon Aug 17 19:40:50.052935 2020) (php7:error) (pid 16932:tid 140669993522944) (client 127.0.0.1:40654) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 48238592 bytes) in /var/www/html/vendor/magento/framework/Serialize/Serializer/Json.php on line 24
(Mon Aug 17 19:40:51.592030 2020) (php7:error) (pid 16933:tid 140670169769728) (client 127.0.0.1:40666) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108
(Mon Aug 17 19:41:12.706529 2020) (php7:error) (pid 17146:tid 140670127806208) (client 127.0.0.1:40702) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108
(Mon Aug 17 19:41:12.740424 2020) (php7:error) (pid 17146:tid 140670127806208) (client 127.0.0.1:40702) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 122880 bytes) in Unknown on line 0
(Mon Aug 17 19:41:24.887257 2020) (php7:error) (pid 16939:tid 140670111020800) (client 127.0.0.1:40798) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 78
(Mon Aug 17 19:41:24.913106 2020) (php7:error) (pid 16939:tid 140670111020800) (client 127.0.0.1:40798) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0
(Mon Aug 17 19:41:39.997127 2020) (php7:error) (pid 16933:tid 140670152984320) (client 127.0.0.1:40904) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108, referer: http://ip-of-my-ec2-instance:80/
(Mon Aug 17 19:41:40.030659 2020) (php7:error) (pid 16933:tid 140670152984320) (client 127.0.0.1:40904) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 40960 bytes) in Unknown on line 0, referer: http://ip-of-my-ec2-instance:80/
(Mon Aug 17 19:42:08.849538 2020) (php7:error) (pid 17146:tid 140670111020800) (client 127.0.0.1:41016) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/framework/Serialize/Serializer/Json.php on line 42
(Mon Aug 17 19:42:08.865389 2020) (php7:error) (pid 17146:tid 140670111020800) (client 127.0.0.1:41016) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 32768 bytes) in Unknown on line 0
(Mon Aug 17 19:44:23.245570 2020) (php7:error) (pid 17146:tid 140670027093760) (client 127.0.0.1:41798) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/framework/Serialize/Serializer/Json.php on line 42, referer: https://www.google.com/
(Mon Aug 17 19:44:23.312177 2020) (php7:error) (pid 17146:tid 140670027093760) (client 127.0.0.1:41798) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 45056 bytes) in Unknown on line 0, referer: https://www.google.com/
(Mon Aug 17 19:44:29.224653 2020) (php7:error) (pid 16939:tid 140670052271872) (client 127.0.0.1:41742) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108
(Mon Aug 17 19:44:29.264725 2020) (php7:error) (pid 16939:tid 140670052271872) (client 127.0.0.1:41742) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 90112 bytes) in Unknown on line 0
(Mon Aug 17 19:44:34.254009 2020) (php7:error) (pid 17146:tid 140670043879168) (client 127.0.0.1:41688) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/module-csp/Model/BlockCache.php on line 108
(Mon Aug 17 19:44:34.294439 2020) (php7:error) (pid 17146:tid 140670043879168) (client 127.0.0.1:41688) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 36864 bytes) in Unknown on line 0
(Mon Aug 17 19:44:40.650547 2020) (php7:error) (pid 17146:tid 140670010308352) (client 127.0.0.1:41882) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/magento/framework/Serialize/Serializer/Json.php on line 42
(Mon Aug 17 19:44:40.690603 2020) (php7:error) (pid 17146:tid 140670010308352) (client 127.0.0.1:41882) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 49152 bytes) in Unknown on line 0
(Mon Aug 17 19:44:49.990225 2020) (php7:error) (pid 16939:tid 140670144591616) (client 127.0.0.1:42006) PHP Fatal error:  Allowed memory size of 792723456 bytes exhausted (tried to allocate 33554440 bytes) in /var/www/html/vendor/magento/module-csp/Model/Collector/DynamicCollector.php on line 31

Before upgrading to 2.4, I switched to Elasticsearch 6.7 and upgraded to php7.3 (7.4 isn’t available on Amazon Linux AMI as far as I can tell).
My system.log and exception.log don’t show any relevant errors. What can I do to debug this?

magento2 – Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32768 bytes)

I was trying to move my Magento 2 website from local to the server! I was trying to upgrade and clear the cache but I am getting the error message ‘Fatal error: The allowed memory size of 33554432 bytes exhausted

using :Php 7.1 and Magento ver. 2.3.5-p1

error

of course, this problem is self-explained, But the real problem is I am unable to increase the memory size

  1. MultiPHP INI Editor
    updated -756M

2.(Magento2-root-folder)/index.php
ini_set(‘memory_limit’,256);

3.(Magento2-root-folder)/.user.ini
memory_limit = 768M

4.(Magento2-root-folder)/.htaccess (2 places)
php_value memory_limit 768M

5.(Magento2-root-folder)/pub/.user.ini
memory_limit = 768M

6.(Magento2-root-folder)/pub/.htaccess (2 places)
php_value memory_limit 768M

I have tried all these places, please let me know where I am wrong ! Where else I can try to increase

dnd 5e – How exhausted will a revived creature be?

Level 5 exhaustion

Nothing in the spell description says that only the creatures that died from HP loss are affected. Yes, a creature that has died of exhaustion can be brought back to life with Revivify. The target will then have level 5 exhaustion.

PHB page 291 (conditions) expressly mentions this case:

Being raised from the dead reduces a creature's exhaustion by 1.

His degree of exhaustion was 6, so after revival he becomes 5.

Entertaining fact: This probably means that you can eliminate exhaustion levels with Revivify (3-level spell) instead of Greater Restoration (5-level spell) by systematically killing and reviving the target.