All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
  Print view

debug Fatal error: Allowed memory size
Author Message
PostPosted: Mon Aug 29, 2022 12:48 am 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 310
Location: Mumbai, India
Subject: debug Fatal error: Allowed memory size

Debug=3 for debugging in

giving me following error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in
vendor\sintattica\atk\src\Utils\Debugger.php on line 300

I tried increasing php.ini memory_limit to 1GB even 2GB but error continues. NOT able to debug.

Plz help.

[end]


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Wed Aug 31, 2022 2:46 am 
Regular
Offline

Joined: Wed Aug 26, 2009 4:49 am
Posts: 353
Location: Queenstown, New Zealand
I think that that is caused by a problem with your PHP code ?
Good to someone else is still developing with ATK :)


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Wed Aug 31, 2022 3:57 pm 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 310
Location: Mumbai, India
Thanks Wayneh.

No but this is happening with evn simple node of 2 attributes code, description.

We r porting all our classic atk systems to new sintattica atk and all systems-all-node-even-simple we find this problem. Debg NOT able to use.


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Thu Sep 01, 2022 8:40 am 
Regular
Offline

Joined: Wed Aug 26, 2009 4:49 am
Posts: 353
Location: Queenstown, New Zealand
Aha!
Go the same error as you in one of my ATK applications
Caused by trying to output one HTML screen with many thousands of transactions, 1 per line

Does that help ?


Help | Search Help | Transactions Add | Export

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16732075 bytes) in C:\xampp56\htdocs\cash_book\atk\ui\class.atkoutput.inc on line 217


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Thu Sep 01, 2022 9:32 am 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 310
Location: Mumbai, India
Yes similar error.

But my point is - i do NOT have any such complicated node.

It is happening with v simple node too (just plain code/description) When i set debug=3

The same app/node debug was working ok in earlier cclassic atk.

It is happening in sintattica atk.

I tried php.ini => memory_limit 1GB, 2GB even -1-ie-Unlimited. But fatal memory error is happening.


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Thu Sep 01, 2022 10:34 am 
Regular
Offline

Joined: Wed Aug 26, 2009 4:49 am
Posts: 353
Location: Queenstown, New Zealand
What version of ATK are you upgrading to ?
W


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Sun Sep 04, 2022 8:30 am 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 310
Location: Mumbai, India
Sintattica\Atk\Core\atk.php

has following entry

class Atk
{
const VERSION = 'v9.0.6-dev';


Top
 Profile  
 

Re: debug Fatal error: Allowed memory size
PostPosted: Mon Dec 19, 2022 9:18 am 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 310
Location: Mumbai, India
seems like fixed


- Fixed debug=3 memory exhausted - problems in sessionmanager.php (also refer Tools.php atkdebug() and WriteLog())

Commented following stmts in sessionmanager.php as these seems to be repeaing in debug and clogging memory. Anyway these debug are NOT important for me atleast.

//Wed.14.Dec.2022 VA8 dbg commented as following just keeps repeating in mydebuglog.txt
//Tools::atkdebug("creating sessionManager (namespace: $namespace)");
//Wed.14.Dec.2022 VA8 dbg commented as following just keeps repeating in mydebuglog.txt
//Tools::atkdebug('Created a new SessionManager instance');


Then i did following settings in config\parameters.dev.php

'debug' => -3,
'debuglog' => 'mydebuglog.txt', //created in <Web> folder - else gv relative path from <Web>


Now i do NOT get err and debug info is logged in mydebuglog.txt

[End]


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group