# Packaged project crashes when entering a level from the main menu level UE5

**URL:** <https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, question, Blueprint\
**Created:** [September 8, 2022, 9:48am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259 "2022-09-08T09:48:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 8, 2022, 9:48am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/1 "2022-09-08T09:48:46Z")

</div>

Hi my project occasionally crashes when entering a level from the main menu level , I have 25 levels on my project , after entering any level I can play normally whitout any issue from level 1 to 25 , restarting the levels also works with no issues

I have reinstalled the engine , delete the intermediate and build folder from the project folder with no results

Any suggestions will be appreciated  
[RollingRush.log](https://forums.unrealengine.com/uploads/short-url/gxj1jTfWHJNEyhyUYhUsNggVZsL.log) (63.0 KB)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 8, 2022, 9:58am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/2 "2022-09-08T09:58:31Z")

</div>

Hey @ShakaBond!

If everything works except when you select your level, double check that your level is actually being selected and loaded. `Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff` suggests your code/blueprint may be calling on a null/invalid pointer.

I hope the above points you in the direction you need!

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 8, 2022, 10:37am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/3 "2022-09-08T10:37:29Z")

</div>

Hello thanks for your quick response  
I do get a frame inside of the level before the crash

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 8, 2022, 10:56am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/4 "2022-09-08T10:56:18Z")

</div>

Hey @ShakaBond,

If the crash is being caused by your level selector, you won’t be able to open a level before it crashes.

Are you using C++ or blueprints? What do those look like? Does this happen on specific levels? We need more information to tell you how to fix your issue other than just determining the error might be caused by your level selector.

Any additional information or specifics you can provide will go a long way in solving your problem.

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 8, 2022, 11:18am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/5 "2022-09-08T11:18:27Z")

</div>

Hi I am using blueprints  
My level selector is 25 buttons that when pressed open the respective level  
Gonna annex some images to show you

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/8/0e8ea7460714f9051e7f615b4756ed4dffc01af0.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/4/54483c4fa0307fd2814bb9f992767f75d00e9252.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 9, 2022, 9:16am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/6 "2022-09-09T09:16:57Z")

</div>

Hey @ShakaBond

So now that we know what you are using blueprints, there is still the matter of “Does this happen on specific levels?” If the menu is getting incorrect names/not reading the names correctly, have you tried “Open Level (by Object Reference)”?

> **[Open Level (by Object Reference)](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/Game/OpenLevel_byObjectReference/)**
>
> Open Level (by Object Reference)

If you try and reproduce your error (making sure editor symbols for debugging is installed in your install options) does the same error log get reproduced? Would you mind sharing that?

Hopefully the above helps provide more direction in solving your problem, and answering the above should narrow down your search.

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 10, 2022, 8:59am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/7 "2022-09-10T08:59:14Z")

</div>

Hi

The crash happens in any level , sometimes on the very first time I open a level from the menu sometimes I can actually open 3 4 5 levels from the menu until ih happens

I have changed to Open Level by reference and also installed Editor symbols for debugging , tried to play and have a log with a different error  
[RollingRush.log](https://forums.unrealengine.com/uploads/short-url/71gh4sqhlvQEHyeaWkGsbMbObUY.log) (98.9 KB)

I also created a new empty level with just the UI and it still crashed

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 12, 2022, 9:34am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/8 "2022-09-12T09:34:37Z")

</div>

Hey @ShakaBond,

As priority 1 (because this may be the actual root cause of the issue), there are actually several errors that look like they need to be addressed.

```auto
LogWindows: Failed to load 'aqProf.dll' (GetLastError=126)

LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126)

LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126)

```

Here is a thread with the same error that solved how to correct these files:

> [@Call unknown Function Error ! (aqProf.dll related and selffixed)](https://forums.unrealengine.com/t/call-unknown-function-error-aqprof-dll-related-and-selffixed/417307/6):
>
> Ok i fix that ■■■■. the reason for the problem was a brothel in the engine files. After and check my logs and found that entries. LogWindows: Failed to load 'aqProf.dll' (GetLastError=126) LogWindows: File 'aqProf.dll' does not exist LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126) LogWindows: File 'VtuneApi.dll' does not exist LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126) LogWindows: File 'VtuneApi32e.dll' does not exist I searched the internet to solve the pro…

There is also:

```auto
LogWindows: Error: Assertion failed: FMallocBinned2::FPoolInfo::IsSupportedSize(Size) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\MallocBinned2.cpp] LogWindows: Error: Invalid Malloc size: '105369866224'

```

Is your project using the built in Malloc\_Verify like in the following post?

> [@Crash in FMallocBinned2::MallocExternal on Win64](https://forums.unrealengine.com/t/crash-in-fmallocbinned2-mallocexternal-on-win64/433651/3):
>
> Hey Stephan, We have the MallocVerify proxy which does the same thing as you have hacked in - you can just enable it via the MALLOC\_VERIFY macro at the top of MallocVerify.h. The pointer value you have is absolutely invalid - you can tell as it’s not aligned. This suggests that it’s not merely stale, but has been corrupted somehow. This could, as you and others have suggested above, have occurred as a result of bad pointers coming in and out of the allocator. Another simple thing to add wou…

I would address the top issue first and foremost just in case it is causing the second.

I hope the above points you in the direction you need!

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 13, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/9 "2022-09-13T17:14:50Z")

</div>

Hello

I have been looking to all the information that you send me , the first topic did not fix the issue but I did guide me in the right direction

After some testing I realize that any package project that I have done in UE5 it always has the (GetLastError=126) error , and every project in UE4.26 does not have the error

I have reinstall the engine deleted the **C:/Users/{system username}/AppData/Local/UnrealEngine** folder m has the intermediate and saved folder from the project and the issue still persists

At this point I am considering formatting my pc

The second topic Malloc\_Verify I honestly don t know if it s on our how to turn it on

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 14, 2022, 9:27am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/10 "2022-09-14T09:27:21Z")

</div>

Hey @ShakaBond

So deleting the contents of that folder and rebuilding your VS files did not work?

Did you upgrade this project from UE4? There could be a code or blueprint issue here causing a memory leak (Malloc = Memory Allocation).

This can also be caused by trying to compress or allocate data/memory, are you doing that anywhere in your code?

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 14, 2022, 9:56am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/11 "2022-09-14T09:56:47Z")

</div>

I never generated vs files for this project , I did upgrade it from UE

I am not allocating or compressing any data

Upgrading the project to UE 5 seems to be the mistake , is there any way to make sure is not damaged from the migration?

Or Should I just restart from scretch?  
It is anoying but I could do it a week

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [September 14, 2022, 10:04am UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/12 "2022-09-14T10:04:33Z")

</div>

Hey @ShakaBond

I would try the suggested solution of regenerating the VS files first like in the thread posted above. My suggestion after that would be to first go through your blueprints and make sure they all compile and save correctly then rerun it. If not, I would replace your blueprints with those made in UE5 so that the code contained within them are all updated appropriately.

As far as updating goes, if none of that works, you can try to migrate all of your essential assets to a new UE5 project then rebuild your blueprints by hand, so at least it can save some time.

---

<div class="post-metadata">

**Author:** ![ShakaBond](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShakaBond](https://forums.unrealengine.com/u/ShakaBond)\
**Post date:** [September 17, 2022, 5:36pm UTC](https://forums.unrealengine.com/t/packaged-project-crashes-when-entering-a-level-from-the-main-menu-level-ue5/644259/13 "2022-09-17T17:36:15Z")

</div>

Thank you very much for all your help

By myself would be hard to understand from where to start checking  
In the end was related to a plugin and the way I was using the code in a couple BP , after many checks and many packaged build I got there

I really appreciate your patience , this will be my first game ever , can now start work on the steam page , you are the best
