Announcement

Collapse
No announcement yet.

Garbage collection can't cleanup world?

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

    Garbage collection can't cleanup world?

    Whenever I host a listen server I'm never able to go back to the main menu without the game crashing.

    The error i get is:
    Code:
    [0031.68] Exit: IpNetDriverSteamworks_0 shut down
    [0031.68] Exit: IpNetDriverSteamworks_1 shut down
    [0031.70] Log: World coldmap1.TheWorld not cleaned up by garbage collection!
    [0034.86] Log: === Critical error: ===
    Fatal error!
    
    Address = 0x1156b2f (filename not found) [in C:\UDK\UDK-2014-08\Binaries\Win32\UDK.exe]
    Address = 0x10a0803 (filename not found) [in C:\UDK\UDK-2014-08\Binaries\Win32\UDK.exe]
    How can I check what references aren't being cleared up?

    #2
    I would delete all actors, destroy then force the force garbage collection? Did you try ?
    Some cool unreal projects you may like!


    Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

    Download the demo Download the demo
    external link Dropbox DropBox

    Become a c++ Professional now C++ Networking Tutorial

    Comment


      #3
      are you using postprocess materials? if so you'll probably need to clean the postprocess chain before map change
      Follow me on Twitter!
      Developer of Elium - Prison Escape
      Local Image-Based Lighting for UE4

      Comment


        #4
        in your playercontroller class there is a function called Destroyed() i made a new function called CleanUpForQuit(); and added that to the bottom of the Destroyed() function. then in the new functon i got rid of all my custom made actors. like loading screens, menus, and weblinks if you made any.

        example code i used to get rid of loading screen

        Code:
        if(LoadingScreen != none )
        {
          LoadingScreen.RenderTexture = None;
          LoadingScreen.Close(true);
          LoadingScreen = none;
        }

        Comment


          #5
          Thanks for the help. It was the auth delegates in AccessControl that were causing the problem.

          I just needed to call:
          Code:
          WorldInfo.Game.AccessControl.ClearAuthDelegates(true);
          in ClearOnlineDelegates() in my player controller.

          Comment


            #6
            Awesome something new I know.
            Some cool unreal projects you may like!


            Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

            Download the demo Download the demo
            external link Dropbox DropBox

            Become a c++ Professional now C++ Networking Tutorial

            Comment

            Working...
            X