NATION

PASSWORD

"tl;dr" posts bring seemingly "harmless" error messages

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Third Spanish States
Ambassador
 
Posts: 1454
Founded: Oct 09, 2007
Ex-Nation

"tl;dr" posts bring seemingly "harmless" error messages

Postby Third Spanish States » Thu Apr 30, 2009 8:11 pm

I was reposting/backing up one of my RPs into these forums, and although there have been no actual problems with the act of posting them, every time I posted something with some large wordcount, an error message like this appeared, although the post seemingly was sent unscathed despite it. Just reporting in case it may be important, as it seems to be related to the Search function of this new forum:

Code: Select all
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 71 bytes) in /home/nation/phpBB3/includes/search/fulltext_native.php on line 1112
Last edited by Third Spanish States on Thu Apr 30, 2009 8:11 pm, edited 1 time in total.
PMT Factbook.
Honoro Sacrificium e Libertas : The Mindset, Jaredcohenia, New-Lexington, Binaria, Varejao, Hogsweat, Franberry, ChevyRocks, Izistan, Ulanpataar, North-Point, The Mindset, Vault 10, Rosbaningrad, Sharfghotten, Tyrandis, South Sharfgotten, Jeuna, Satirius, Zukariaa, Midlauthia et New Nicksyllvania.
Izistan wrote:Third Spanish States is a well known far-right activist so his attempts at humor can only be expected.

Umbagar wrote:%*$#! I put a crack in my screen thanks to the awesome "place fist here" sign. >:(

Lhazastan wrote:if all you want to do is run around being the big badass of a community, not only are you pathetic, but you are a bad RPer

Saxon Germany wrote:[...]you're practically a professional troll, TSS.[...]

User avatar
Scolopendra
Minister
 
Posts: 3146
Founded: Antiquity
Civil Rights Lovefest

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Scolopendra » Thu Apr 30, 2009 8:13 pm

Does it have any unusual characters in it? We've seen a problem like this, but it was due to non-English characters.

User avatar
Third Spanish States
Ambassador
 
Posts: 1454
Founded: Oct 09, 2007
Ex-Nation

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Third Spanish States » Thu Apr 30, 2009 8:16 pm

Some of the words and names used have non-English punctuation, I suppose that explains it then.
PMT Factbook.
Honoro Sacrificium e Libertas : The Mindset, Jaredcohenia, New-Lexington, Binaria, Varejao, Hogsweat, Franberry, ChevyRocks, Izistan, Ulanpataar, North-Point, The Mindset, Vault 10, Rosbaningrad, Sharfghotten, Tyrandis, South Sharfgotten, Jeuna, Satirius, Zukariaa, Midlauthia et New Nicksyllvania.
Izistan wrote:Third Spanish States is a well known far-right activist so his attempts at humor can only be expected.

Umbagar wrote:%*$#! I put a crack in my screen thanks to the awesome "place fist here" sign. >:(

Lhazastan wrote:if all you want to do is run around being the big badass of a community, not only are you pathetic, but you are a bad RPer

Saxon Germany wrote:[...]you're practically a professional troll, TSS.[...]

User avatar
Scolopendra
Minister
 
Posts: 3146
Founded: Antiquity
Civil Rights Lovefest

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Scolopendra » Thu Apr 30, 2009 9:31 pm

According to here the character limit per post is 60,000. Compare to the 4 million characters in the meterstick of data, a KJV edition of the Bible.

User avatar
The Most Glorious Hack
Retired Moderator
 
Posts: 2427
Founded: Mar 11, 2003
Anarchy

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby The Most Glorious Hack » Fri May 01, 2009 2:18 am

But, for what it's worth, I believe the Jolt limit is 50k.
Now the stars they are all angled wrong,
And the sun and the moon refuse to burn.
But I remember a message,
In a demon's hand:
"Dread the passage of Jesus, for he does not return."

-Nick Cave and the Bad Seeds, "Time Jesum Transeuntum Et Non Riverentum"



User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Bluth Corporation » Thu Jun 11, 2009 8:53 am

None of these address the issue, which is with PHP trying to allocate more memory than it is configured to allow.

This has nothing to do with the length of the post, and everything to do with how much memory PHP was already using before it started processing the post. If processing the post requires allocating so much memory that, when added to that already in use, causes PHP to go over its limit, the aforementioned error will result. To be sure, longer posts are probably more likely to cause this, but a single-character post could cause it if PHP was already bumping up against its limit (remember, the amount of memory that needs to be allocated for all the programmatic work of adding the post, updating the thread, etc. is considerably more than that needed to just store the content of the post itself).
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
Erastide
Retired Moderator
 
Posts: 1299
Founded: Antiquity
Democratic Socialists

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Erastide » Thu Jun 11, 2009 2:09 pm

I get that error with the Player Profile thread. But everytime I go and look, it's actually gone through. So I don't worry about it anymore.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby [violet] » Thu Jun 11, 2009 4:27 pm

Bluth Corporation wrote:This has nothing to do with the length of the post, and everything to do with how much memory PHP was already using before it started processing the post. If processing the post requires allocating so much memory that, when added to that already in use, causes PHP to go over its limit, the aforementioned error will result. To be sure, longer posts are probably more likely to cause this, but a single-character post could cause it if PHP was already bumping up against its limit (remember, the amount of memory that needs to be allocated for all the programmatic work of adding the post, updating the thread, etc. is considerably more than that needed to just store the content of the post itself).

Spoken like somebody who knows what they're talking about! Now tell me how to fix it.

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Bluth Corporation » Thu Jun 11, 2009 9:08 pm

Well, do you have the permissions necessary to make changes to PHP's configuration file?
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby [violet] » Thu Jun 11, 2009 9:48 pm

Yes.

User avatar
Bluth Corporation
Negotiator
 
Posts: 6849
Founded: Apr 15, 2008
Ex-Nation

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby Bluth Corporation » Thu Jun 11, 2009 9:56 pm

Alright, the fix is to increase the value of the memory_limit configuration setting in php.ini. You may have to experiment to find the range of values that eliminate errors without impacting performance or the server's ability to handle simultaneous connections.

This isn't without drawbacks, though--set it too high, and one buggy PHP script (or malicious user) can easily tie up all the memory on the system.
The Huge Mistake of Bluth Corporation
Capital: Newport Beach, Shostakovich | Starting Quarterback: Peyton Manning #18 | Company President: Michael Bluth

Champions of: World Bowl X


You should really be using Slackware

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Re: "tl;dr" posts bring seemingly "harmless" error messages

Postby [violet] » Tue Jul 07, 2009 9:08 pm

Thanks Bluth! Should be fixed now.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Baiddsound, Khantin, The Democratic stats of Donasia

Advertisement

Remove ads