# Unhandled Exception address 0x0000000000000500

**URL:** <https://forums.unrealengine.com/t/unhandled-exception-address-0x0000000000000500/1878231>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, question, CPP, Blueprint\
**Created:** [May 29, 2024, 5:05am UTC](https://forums.unrealengine.com/t/unhandled-exception-address-0x0000000000000500/1878231 "2024-05-29T05:05:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrNova](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/drnova/32/1148629_2.png) [@DrNova](https://forums.unrealengine.com/u/DrNova)\
**Post date:** [May 29, 2024, 5:05am UTC](https://forums.unrealengine.com/t/unhandled-exception-address-0x0000000000000500/1878231/1 "2024-05-29T05:05:39Z")

</div>

I know there are a couple of older threads with similar errors to what I have posted below, but I’m making a new thread as none of those solutions worked for me. The error I’m getting is posted below but for some added context: I’m using a version of lyra that I’ve been selectively taking features from (mostly removing all the networking/multiplayer stuff). This error appeared after I added the pawn extension component to my player character, I’d never seen it beforehand.

With that said, I’ll also note that the project I’m now using is a duplicate of my original as I had some issues on the github side so I duplicated the files into a new repo, worth noting though I doubt that’s the issue.

```auto
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000500

UnrealEditor_AstralPlague!AAstralPlayerState::GetAstralAbilitySystemComponent() [D:\UnrealDev\AstralPlague - Dev\AstralPlague\Source\AstralPlague\Player\AstralPlayerState.h:45]
UnrealEditor_AstralPlague!UAstralPawnExtensionComponent::HandleChangeInitState() [D:\UnrealDev\AstralPlague - Dev\AstralPlague\Source\AstralPlague\Character\AstralPawnExtensionComponent.cpp:280]
UnrealEditor_ModularGameplay!IGameFrameworkInitStateInterface::TryToChangeInitState() [D:\build\++UE5\Sync\Engine\Plugins\Runtime\ModularGameplay\Source\ModularGameplay\Private\Components\GameFrameworkInitStateInterface.cpp:98]
UnrealEditor_AstralPlague!UAstralPawnExtensionComponent::BeginPlay() [D:\UnrealDev\AstralPlague - Dev\AstralPlague\Source\AstralPlague\Character\AstralPawnExtensionComponent.cpp:65]
UnrealEditor_Engine!AActor::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:4231]
UnrealEditor_Engine!APawn::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Pawn.cpp:179]
UnrealEditor_Engine!AActor::DispatchBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:4193]
UnrealEditor_Engine!AWorldSettings::NotifyBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:305]
UnrealEditor_Engine!AGameStateBase::HandleBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:228]
UnrealEditor_Engine!AGameModeBase::StartPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameModeBase.cpp:206]
UnrealEditor_Engine!UWorld::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:5330]
UnrealEditor_Engine!UGameInstance::StartPlayInEditorGameInstance() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:568]
UnrealEditor_UnrealEd!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:3141]
UnrealEditor_UnrealEd!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1590]
UnrealEditor_UnrealEd!UEditorEngine::CreateNewPlayInEditorInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1853]
UnrealEditor_UnrealEd!UEditorEngine::StartPlayInEditorSession() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2872]
UnrealEditor_UnrealEd!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1167]
UnrealEditor_UnrealEd!UEditorEngine::StartQueuedPlaySessionRequest() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1068]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1902]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:550]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5910]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:180]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

```

---

<div class="post-metadata">

**Author:** ![nikita.aksenov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nikita.aksenov](https://forums.unrealengine.com/u/nikita.aksenov)\
**Post date:** [May 29, 2024, 8:30am UTC](https://forums.unrealengine.com/t/unhandled-exception-address-0x0000000000000500/1878231/2 "2024-05-29T08:30:34Z")

</div>

Hi!

Can you show the code from `AstralPlayerState.h` at line `45` and `AstralPawnExtensionComponent.cpp` at line `280`, please?
