Announcement

Collapse
No announcement yet.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)

    GameHacking.org | Sword of Mana (USA, Australia)
    When i selected "1st Character: Max Weapon Level" and tried to "Download Checked Codes" i got this error:

    HTML Code:
    <br />
    <font size='1'><table class='xdebug-error xe-fatal-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
    <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/gshisys/public_html/inc/device.gba.cb.php on line <i>113</i></th></tr>
    <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
    <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
    <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>265104</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='/home/gshisys/public_html/inc/sub.exportCodes.php' bgcolor='#eeeeec'>../sub.exportCodes.php<b>:</b>0</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0148</td><td bgcolor='#eeeeec' align='right'>1185848</td><td bgcolor='#eeeeec'>export->GetFileContents(  )</td><td title='/home/gshisys/public_html/inc/sub.exportCodes.php' bgcolor='#eeeeec'>../sub.exportCodes.php<b>:</b>143</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0148</td><td bgcolor='#eeeeec' align='right'>1186576</td><td bgcolor='#eeeeec'>codebase->setCode(  )</td><td title='/home/gshisys/public_html/inc/export.gba.vba.php' bgcolor='#eeeeec'>../export.gba.vba.php<b>:</b>46</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.0150</td><td bgcolor='#eeeeec' align='right'>1186168</td><td bgcolor='#eeeeec'>code->deconstruct(  )</td><td title='/home/gshisys/public_html/inc/code.base.php' bgcolor='#eeeeec'>../code.base.php<b>:</b>98</td></tr>
    <tr><td bgcolor='#eeeeec' align='center'>5</td><td bgcolor='#eeeeec' align='center'>0.0152</td><td bgcolor='#eeeeec' align='right'>1188432</td><td bgcolor='#eeeeec'>cbDevice->decodeWords(  )</td><td title='/home/gshisys/public_html/inc/code.gba.php' bgcolor='#eeeeec'>../code.gba.php<b>:</b>102</td></tr>
    </table></font>
    Search in google in database with this error showed a lot of pages

  • #2
    Have a look at this post.

    https://www.airpair.com/php/fatal-er...ed-memory-size

    1 Introduction: why does Fatal Error happen?

    Out-of-memory errors are one of the most common and hard-to-fix problems that PHP developers run into — especially with applications that process large amounts of data — thanks to PHP's relatively conservative default memory settings. In fact, there are more than 1,300 questions related to PHP memory errors on Stack Overflow alone.
    98% of the time this error comes from loading more into memory than what you set up PHP to handle in one process. There are other causes, but these are much less common — very rarely it can be a memory leak if you're on PHP 5.3 and above.
    If you aren't sure what your PHP memory limit is set to, it's helpfully included in the error message. The size is reported in bytes, though, so we've done some conversions for you:
    • PHP: Fatal Error: Allowed Memory Size of 8388608 Bytes Exhausted - 8 MB
    • PHP: Fatal Error: Allowed Memory Size of 16777216 Bytes Exhausted - 16 MB
    • PHP: Fatal Error: Allowed Memory Size of 33554432 Bytes Exhausted - 32 MB
    • PHP: Fatal Error: Allowed Memory Size of 67108864 Bytes Exhausted - 64 MB
    • PHP: Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted - 128 MB
    • PHP: Fatal Error: Allowed Memory Size of 268435456 Bytes Exhausted - 256 MB
    • PHP: Fatal Error: Allowed Memory Size of 536870912 Bytes Exhausted - 512 MB
    • PHP: Fatal Error: Allowed Memory Size of 1073741824 Bytes Exhausted - 1 GB

    2 What do I have to do to resolve it?

    Your first course of action is to increase your memory limit. Note, this is a temporary debugging producedure. The goal is to increase the memory to a point where we have the application working again for the purpose of then reducing the memory usage. Once you decrease the memory usage you can lower the memory limit it to a value that's more suitable. Your plan should be to use as little memory as you could practically use where the application works and functions correctly in a production server based on the workload by your users (humans or programmatic). I usually recommend setting the memory limit to something high, like 1GB, assuming you have at least 150% of that free in RAM.
    Also, never do these tests on a production server unless you're sure you have plenty of RAM and you fully understand how web server processes consume memory. You could easily bring a server to its knees if there are many concurrent processes running, each using a high amount of memory. I would never, ever recommend setting the memory limit to -1 (unlimited) in a production environment. That's a recipe for disaster. Don't make that newbie mistake.
    So how do you do this? Simple — increase the memory limit programmatically early on in your code, before your process runs out of memory. If you do it this way, you can give PHP extra memory only when that piece of code gets called rather than increasing the memory limit for all PHP processes.
    Last edited by final kaoss; 08-10-2015, 08:58:17 AM.
    Video Game Chat

    Comment


    • #3
      Originally posted by final kaoss View Post
      Have a look at this post.
      lol

      TimeRipper doesn't have access to edit our source code, so he can't edit it. And I know what's going on. I'm not going to give one thread an exorbitant amount of memory and long timeout because the codes need mini-fied.

      TimeRipper, you probably had "All Codes" selected instead of "Selected Codes" on the download dialog. This happens on the games that have billions of codes because people didn't understand modifiers.

      Edit: I'm able to download all of the codes for that game with no problem. I have no clue why that happened, just try it again.
      Please put all complaints in writing and submit them here.

      Above link not working? Try here.

      Comment


      • #4
        Tested with Chromium 43, Opera 12.15, Firefox ESR 38.1.1, Firefox 39.0.3. When i selected "1st Character: Max Weapon Level" and tried to "Download Checked Codes" i got the "Sword of Mana (USA, Australia).clt" file that contain not cheats but this error in 1st post.
        When i selected other cheats, all works ok.
        Last edited by TimeRipper; 08-10-2015, 11:36:57 AM.

        Comment


        • #5
          Originally posted by TimeRipper View Post
          Tested with Chromium 43, Opera 12.15, Firefox ESR 38.1.1, Firefox 39.0.3. When i selected "1st Character: Max Weapon Level" and tried to "Download Checked Codes" i got the "Sword of Mana (USA, Australia).clt" file that contain not cheats but this error in 1st post.
          When i selected other cheats, all works ok.
          I gotchya. I'll look into it later.
          Please put all complaints in writing and submit them here.

          Above link not working? Try here.

          Comment

          Working...
          X