Major memory problem after upgrading

Since upgrading to 4.7 from 4.6, when I debug, Visual studio crashes. Found out , thanks to Andrew helping me that it was due to a large amount of used memory (3,000k+ MB) . I tried upgrading my project to 4.7 (and 4.7.1) and these errors come up (image).

I really hope that I won’t have to start all over with a new project :frowning:

So you can’t rebuild your code? Can you check logs in VS output tab?

Oh of course! I guess I didn’t look at since no errors/warnings came up.

tried to give you a txt file but it won’t let me so here’s basically what it says:

'UE4Editor.exe' (Win32): Loaded 'C:\Program Files\Epic Games\4.7\Engine\Binaries\Win64\UE4Editor.exe'. Symbols loaded.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Cannot find or open the PDB file.
SHIMVIEW: ShimInfo(Complete)
'UE4Editor.exe' (Win32): Loaded 'C:\Program Files\Epic Games\4.7\Engine\Binaries\Win64\UE4Editor-UnrealEd.dll'. Symbols loaded.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'UE4Editor.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.

thanks for the reply, is there anything that can be done ? I built it 3 different times to be upgraded. 4.7 twice and 4.7.1 once . I guess the main issue is that the memory usage is so great that It crashes before I can’t actually “debug” anything. (I have 8 gigs or ram)

this is what it says when I build(or did you mean something else?)

1>------ Build started: Project: TStest, Configuration: DebugGame_Editor x64 ------
2>------ Skipped Build: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>Project not selected to build for this solution configuration 
1>  Deleting old hot reload file: "C:\Users\Colleen\Documents\Unreal Projects\TStest 4.7 - 2\Binaries\Win64\UE4Editor-TStest-2304-Win64-DebugGame.dll".
1>  Target is up to date.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========

Those errors can be ignored, a PDB is a file used by visual studio to assist in debugging. Those errors just tell you that Microsoft doesn’t provide symbols to debug those system libraries. The pop up you’re getting is unrelated, but definitely a big problem. It means your project (TStest) did not get recompiled with your new code.

What does Visual Studio output when you compile (rather than run)?

I would be surprised if the system allocator was failing to give VS more memory! What makes you say that’s the cause of the crash? Is there an error message?

If you’re crashing when debugging you could try deleting entries from your breakpoints and watch window, I’ve had crashes due to VS being unhappy with old values in there.

It looks like you’re using the DebugGame configuration. Could you try the Debug Editor configuration?

I’m using the DebugGame editor config like I had before.

DebugGame /

DebugGame Editor (which i’m using)/

Development /

Development Editor /

Shipping /

Configuration

is all I see . Is there other options I’m missing?

When I don’t use DebugGame Editor , the memory usage stays low and does not crash.

This is my original post Visual studio crashes on breakpoint - Pipeline & Plugins - Epic Developer Community Forums It has a log and the error of low memory.(I made a new post since I couldn’t change the title since I found breakpoints did not cause the crash)

I’ve built a new project with no crash / memory issues with DebugGame Editor, it’s just my game project that i converted from 4.6 to 4.7

it crashes without any break points too :frowning:

This is intriguing - it’s reporting that it’s deleted a hot-reload dll. Could you double check that there are no UE4 processes (games/editor) running when you initiate a build for the time-being? It’s possible that UBT (Unreal Build Tool) is finding a stale process and doing a build for hot-reload rather than a full build.

Another thing to try (bak them up first): try deleting all the non-sln files that sit next to your Visual Studio solution file (*.sdf, *.opensdf, *.suo). Once you’ve done that have a go at regenerating the solution as well to make sure you’re working with a fresh solution file (back that up as well beforehand).

yeah I made sure there wasn’t anything else running when I did it and tried again just in case. I’ve also built other 4.6 projects to 4.7 as a test and they are not having any issues like my main project.

Where would my Visual Studio solution be? Are you talking about the one under the unreal projects folder?

I’d send you guys my project if it wasn’t so big

I’ll just start over I guess, since this is the only project that is having this problem, it must just be corrupt somehow.

Hey :slight_smile:
delete everything in /Binaries ? I don’t see DerivedDataCache though

Couple things jump out; have you tried blowing away your ./Binaries and ./DerivedDataCache directories in the main project directory? We find that our project gets out of sync quickly with the state of VS and deleting at least the binaries directory (with UE closed) then relaunching will get a clean build done.

Also, I can’t tell if you tried deleting your .sln and rebuilding the visual studio project from Explorer. That’s another easy check cables kind of thing.

(also, you can zip the project and put it in Dropbox; right click to get a sharable link and send it to anyone.) Probably wouldn’t want to post it here though.

Looks like the paths are described here: https://docs.unrealengine.com/latest/INT/Engine/Basics/DerivedDataCache/index.html

You can just right click on the .uproject file and select the option to “Generate Visual Studio Files” - make sure to delete the existing .sln first (to comply with Dans suggestions above.)

ok I found the folder in appdata/local .I just renamed the sub folders in inside the 2 folders you mentioned. I’ll let you know what happens

No I didn’t delete the .sln I’m kind of a newb, how do you build from explorer? Solution Explorer?

ah ok, I’m doing it ^ ^