collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Error in Tell w/ blob  (Read 4060 times)

0 Members and 1 Guest are viewing this topic.

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Error in Tell w/ blob
« on: June 28, 2008, 07:43:56 am »
When trying to make a blob I keep getting this when I do this in a tell but when I do it in org chat it will work correctly..

Code: [Select]
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2314226 bytes_ in /Bebot/main/14_tools.php on line 217
I am not sure why it is doing it, I have went through the code of the modules I am making and everything seems right, and I am not getting any other errors.  and it is only listing 131 things, which should be being split up into 2 different blobs.  Like I said if I do the command in org chat it works with out any problems, but if I do it in a tell then it will crash the bot.

This is the latest svn version of the bot also.

Nyt

Line 217 in 14_tools.php is
Code: [Select]
$content = str_replace("\"", """, $content);
« Last Edit: June 28, 2008, 07:45:45 am by Nytridr »
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Error in Tell w/ blob
« Reply #1 on: June 28, 2008, 11:49:17 am »
16mb is too small increase ur memory size

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Error in Tell w/ blob
« Reply #2 on: June 29, 2008, 07:35:05 pm »
Thats the problem though.   

memory = 30M

I just double checked it.  And I really hate to do this but here is my php -i   

Code: [Select]
phpinfo()
PHP Version => 5.2.0-8+etch11

System => Linux bots 2.6.18-6-686 #1 SMP Fri Jun 6 22:22:11 UTC 2008 i686
Build Date => May 10 2008 10:44:30
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
additional .ini files parsed => /etc/php5/cli/conf.d/curl.ini,
/etc/php5/cli/conf.d/gd.ini,
/etc/php5/cli/conf.d/interbase.ini,
/etc/php5/cli/conf.d/ldap.ini,
/etc/php5/cli/conf.d/mhash.ini,
/etc/php5/cli/conf.d/mysql.ini,
/etc/php5/cli/conf.d/mysqli.ini,
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_firebird.ini,
/etc/php5/cli/conf.d/pdo_mysql.ini,
/etc/php5/cli/conf.d/pdo_sqlite.ini,
/etc/php5/cli/conf.d/snmp.ini,
/etc/php5/cli/conf.d/sqlite.ini,
/etc/php5/cli/conf.d/sqlite3.ini

PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies


 _______________________________________________________________________


Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => On => On
always_populate_raw_post_data => On => On
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => On => On
display_startup_errors => On => On
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => /home/php-error.log => /home/php-error.log
error_prepend_string => no value => no value
error_reporting => E_ALL & ~E_NOTICE => E_ALL & ~E_NOTICE
expose_php => On => On
extension_dir => /usr/lib/php5/20060613+lfs => /usr/lib/php5/20060613+lfs
file_uploads => On => On
highlight.bg => <font style="color: #FFFFFF">#FFFFFF</font> => <font style="color: #FFFFFF">#FFFFFF</font>
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/php:/usr/share/pear => .:/usr/share/php:/usr/share/pear
log_errors => On => On
log_errors_max_len => 512000 => 512000
magic_quotes_gpc => On => On
magic_quotes_runtime => On => On
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 0
max_input_time => -1 => -1
memory_limit => 30M => 30M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => Off => Off
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 50M => 50M
upload_tmp_dir => /tmp/php-uploads/ => /tmp/php-uploads/
user_dir => no value => no value
variables_order => EGPCS => EGPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
y2k_compliance => On => On
zend.ze1_compatibility_mode => Off => Off
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Error in Tell w/ blob
« Reply #3 on: June 29, 2008, 09:33:06 pm »
Quote
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2314226 bytes_ in /Bebot/main/14_tools.php on line 217

You'll need to look into what is actually happening in the code just prior to this and so forth. You are trying to allocate 23mb of ram at this point when already having used the max of 16.

Thats the problem though.   

memory = 30M

I just double checked it.  And I really hate to do this but here is my php -i   

16 + 23 = 39

In any case, it might appear that the bot is using a different php.ini than the one you think since the bot claims the memory limit is 16.
Try adding some debug output to see what is being parsed in the offending code, as well as outputting the memory limit from within the bot.
BeBot Founder and Fixer Kingpin

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Error in Tell w/ blob
« Reply #4 on: June 29, 2008, 11:12:18 pm »
that is the same thing I was thinking also.. I have been checking and go through any of the ini files that load up and nothing is setting the limit to 16 megs.. I even upped the memory_limit to 50M  and it still dont work.. php -i even shows it at 50 megs  I am not sure where else to look.  my server uses one php.ini for apache and one for term and stuff. but I have set both to 50 megs to make sure..

the only other thing I can think of is maybe I have TO MUCH information going into the blob and it can not handle it.   I am not sure...   I am continually checking and trying to find the problem.

Nyt
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Error in Tell w/ blob
« Reply #5 on: June 29, 2008, 11:37:35 pm »
actually he only trying to use 2.3mb

Offline Nytridr

  • BeBot Expert
  • ****
  • Posts: 262
  • Karma: +0/-0
    • Rising Sun
Re: Error in Tell w/ blob
« Reply #6 on: June 30, 2008, 02:15:50 am »
I  think I found it.. in a way it has something to do with memory but somehow.. and I still dont know how or why it did it, but I seem to of fixed it with a simple IF statement..

Basically I was in a loop but only under a VERY specific circumstance, everything else works correctly, and now that one dose also.    Basically it kept going and going and going over the entire process untill it crashed from memory.. I still do not understand why it was reporting only 16 megs allocated..


guess I will chalk this up to Alien abductions..


Nyt
Co-Prez of Rising Sun RK1 (1st & only org I will ever belong to)

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 489
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal