generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Serious Memory Leak Issue

Previous Thread :: Next Thread 
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
11 Dec 2012 07:44 PM
Lately, I have been working on my custom admin commands. I decided to test them out, and I started getting this weird error for no reason:
"':' expected instead of '.'" (or something like that)
There was no stack, not line number, nothing. I decided to try out oxcool1's Script Builder, there were a few others there, so I went to an abandoned one instead. The commands worked, and I continued to test them. Suddenly, the same error as previously stated. I was like "wtf!?". I kept trying and trying, nothing. Suddenly: "FREEZE BABY FREEZE" went ROBLOX. I opened up task manager, and my jaw dropped. ROBLOX was using every byte of my RAM and Page File... that's a total of *8 GIGABYTES*. o.o

Needless to say, I got the BSoD. I've tried to force this for recording purposes, but I've been unable to produce the memory leak again. Nobody crashed me, as the game was empty. I unfortunately do not have much to give to support this claim, except my word. Has anyone else experienced this memory leak? It's a pressing problem, and kind of annoying too.

PS: I highly doubt the commands have anything to do with this. They just broke, and it took several minutes after the error before this leak occurred.

Discuss.

~ I like pudding ◕‿◕ ~
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
11 Dec 2012 07:49 PM
I was just able to replicate this issue (this time closing ROBLOX before the BSoD). Same error occuring shortly before.
Is this something C-Side, maybe?

~ I like pudding ◕‿◕ ~
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
11 Dec 2012 07:52 PM
Likely so. Roblox dev's don't have a good reputation as being amazing programmers.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
11 Dec 2012 07:57 PM
"Roblox dev's don't have a good reputation as being amazing programmers."
That's nothing new, sadly.

~ I like pudding ◕‿◕ ~
Report Abuse
Draeton is not online. Draeton
Joined: 04 Jun 2012
Total Posts: 4269
11 Dec 2012 08:28 PM
@TheCapacitor
*takes as fuel for stupid desires*
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
11 Dec 2012 10:38 PM
Roblox has decided that they don't want you to have direct access to the functions so they can run with the least efficiency possible.

'p' is the player

    local kinds={"Boolean","Number","String","Instance"}
    local loads,saves={},{}
    for i,v in next,kinds do
        loads[i]=p["Load"..v]
        saves[i]=p["Save"..v]
    end
    local function loadData(kind,key)
        local lv=loadedvalues[kind][key]
        if lv then
            return lv
        else
            local ran,value=pcall(loads[kind],p,key)
            if ran then
                loadedvalues[kind][key]=value
                return value
            else
                print("Failed to load data. ["..value.."]")
            end
        end
    end
    local function saveData(kind,key,value)
        return pcall(saves[kind],key,value)--success or failure returned
    end

Does not work because you MUST call SaveNumber as a member function.

local loadnum=p.LoadNumber--NOPE
local _,n=pcall(loadnum,"Test")

local _,n=pcall(function() return p:LoadNumber("Test") end)--yes!

-_-
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
11 Dec 2012 10:39 PM
Ehhh forgot p as the first argument in a few places, doesn't work anyways.
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
11 Dec 2012 11:07 PM
@Monkey
Not sure what you are doing differently, but this runs fine for me.
local l = game.Lighting
local set = l.SetMinutesAfterMidnight
local get = l.GetMinutesAfterMidnight
local waitTime = 1/15

while wait(waitTime) do
set(l, get(l) + 1)
end


[[There is no place like ~]]
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
11 Dec 2012 11:14 PM
Not all member functions but be called as member functions at all times. GetChildren sometimes must follow this rule too, P_P but usually not.
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
11 Dec 2012 11:15 PM
gsub('but','must')
????
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
12 Dec 2012 06:03 AM
Could just be that someone was lagging you.
Did you check the replicators inside of the NetworkServer?
That happens at oxcools...

§TeamDman§ Anti-Jared
Report Abuse
SolarCrane is not online. SolarCrane
Forum Moderator
Joined: 03 Jul 2012
Total Posts: 116
12 Dec 2012 06:51 PM
This seems quite odd. Roblox is a 32-bit application, how is it allocating 8 gigs of memory?
As well, when you run out of memory to alloc, malloc with fail and return NULL, the new keyword will throw a bad_alloc exception. Roblox will then either live without allocating that object if it can(eg. the texture won't show up), or it will stop/crash Roblox, but the OS should not crash.

My spidey sense is telling me the root of this problem lies elsewhere.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
12 Dec 2012 07:04 PM
@SolarCrane
That was exactly my thought. The System should not have crashed. I got a PAGE_FAULT_IN_NONPAGED_AREA BSoD on both occurrences. By the way: I only have 4 Gigabytes of RAM, the other 4 Gigabytes is Page File (Virtual Memory). I'm also running Windows 7 Ultimate x64.
Ever since these freaky errors, my computer has been taking a dump on itself. I recently just had a complete RAM Failure (which gave me this epic matrix-like screen, no 100101's, just green lines). I'm not sure whether these problems are related to the incidents or not, I just think that's a bit hinky when this starts happening directly after the crashes.
Also, I have been unable to make this happen again for recording purposes.

@TeamDman
I stated the game was empty. That's not possible.
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
12 Dec 2012 10:14 PM
^Just punch your computer until it stops crashing.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
12 Dec 2012 10:22 PM
It's entirely possible that the memory leak is the fault of whatever script was failing

> "':' expected instead of '.'" (or something like that)

Find the cause of that error before you do anything else. It's certainly not just "random".
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
12 Dec 2012 10:24 PM
Wait, this means your game could have the power to BSoD players...

e.e

-= The best thing about UDP jokes? I don't care if you get them or not. =-
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
12 Dec 2012 10:41 PM
Why do that when you can simply convince players to download malicious batch files into their startup folders?
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
12 Dec 2012 10:50 PM
"Wait, this means your game could have the power to BSoD players..."

The easiest is just to spam 1000's of textures. If their video driver isn't the greatest it may blow up and BSOD them.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
13 Dec 2012 01:00 AM
I've been hearing a lot of people getting BSoD'd whilst using ROBLOX lately.

First the messages, now this...
Report Abuse
SolarCrane is not online. SolarCrane
Forum Moderator
Joined: 03 Jul 2012
Total Posts: 116
13 Dec 2012 11:53 AM
Out of curiosity, have you run memtest86+ yet? Bad RAM modules seem to be the cause of a lot of BSoDs, so it is always good to give that a thorough test before diving too deep anywhere else. Also, memory tends to fault more often at higher temperatures, so playing games like Roblox may help trigger it.
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
13 Dec 2012 12:48 PM
For some reason reading this story brought up a creepypasta related story in my head.

"I got a PAGE_FAULT_IN_NONPAGED_AREA BSoD on both occurrences"

Hmm, ROBLOX does not actually cause this for me it happens sometimes when I render a video at 1080P in sony vegas (Even if the video isn't that great in size)

Most of the time this happens when antivirus software takes a process and decides to do something with it. I don't know if this is true with everyone but that's mostly my personal experience.
Report Abuse
TeamDman is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
13 Dec 2012 01:50 PM
If you try hard enough you can BSoD a person with a _FEW_ replicating localscripts and looped messages in coroutines.

§TeamDman§ Anti-Jared
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
13 Dec 2012 04:14 PM
I can't find the cause of the Lua Error. It obviously has something to do with the commands, but what? They don't using anything special. Just a butt-load of condition statements and two Chatted Handlers. I'll try and narrow it down as much as I can.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
13 Dec 2012 04:34 PM
I think crashing is unrelated to the Lua Error. The Lua Error is caused by this function (this happens at random, something with calling it over and over):
function inTable(t, i)
    if (t == nil) then err("'t' cannot be a nil array. (inTable(" ..tostring(t).. ", ...))") return end
    for a, b in pairs(t) do
        if (low(i) == low(b)) then
            out("Found match!")
            return true
        end
    end
    out("Match not found!")
    return false
end

I'm still working on replicating the crash, and I have my camera handy for recording purposes.
Also, I never said exactly what happens during the crash:
1) ROBLOX freezes
2) My computer begins to get slower and slower
3) BSoD

With all of that being said, I'm beginning to think that the RAM Modules are having something to do with it. Let me do some searching through EventViewer and BlueScreenView and see if anything comes up.
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
13 Dec 2012 09:01 PM
The obscure error message may be due to Lua running out of memory and having to give up on some section of your code due to memory related issues...

I mean, it does run perfectly otherwise, right?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image