Jump to content
  • 0

Java.lang.OutOfMemory Error


HorridModz

Question

7 answers to this question

Recommended Posts

Here is a fragment of script's code: 

local u = gr(500002, 0, nil, nil, nil, nil, 4, nil, nil)

with "gr" being previously defined as: 

local gr = gg.getResults

So it is a call to "gg.getResults" function that loads up to 500002 (500k) results and this call is the reason why "OutOfMemory" error occurs. Loading 500k results at once is way too many, instead it should be 50k-100k or so.

As for the algorithm implemented by the script, it's relatively simple - to find all trios of subsequent dword values that meet the following condition: 

value1 XOR value2 XOR value3 = target_value
Link to comment
Share on other sites

3 hours ago, CmP said:

Here is a fragment of script's code: 

local u = gr(500002, 0, nil, nil, nil, nil, 4, nil, nil)

with "gr" being previously defined as: 

local gr = gg.getResults

So it is a call to "gg.getResults" function that loads up to 500002 (500k) results and this call is the reason why "OutOfMemory" error occurs. Loading 500k results at once is way too many, instead it should be 50k-100k or so.

As for the algorithm implemented by the script, it's relatively simple - to find all trios of subsequent dword values that meet the following condition: 

value1 XOR value2 XOR value3 = target_value

In sites rules all gg mod not allowed in this forum, if you think there is a gg mod function, please don't discuss it (answer) here.

10 hours ago, HorridModz said:

GG runs normally, if an error occurs while running the script, try asking the script creator first.

Link to comment
Share on other sites

29 minutes ago, HEROGAMEOfficial said:

In sites rules all gg mod not allowed in this forum, if you think there is a gg mod function, please don't discuss it (answer) here.

You should understand the context to make such claims. The script that has been posted is for official GG, so no rules have been violated by discussing it.

If you mean something else, then you need to explain it in an understandable way. Just bringing up a rule isn't enough, the reason(s) of it being applicable in particular case needs to be specified as well.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.