How to debug exception: access violation reading?

Hi, I am using the slate chat example and I want to modify it, but sometimes, after I change the input text I get the following error:

“Exception thrown at 0x00007FFB6D868B1D (UE4Editor-Core.dll) in UE4Editor-Win64-DebugGame.exe: 0xC0000005: Access violation reading location 0x000000710F68FFF8.”

I think it’s a variable that get’s overwritten, but I am not sure, I don’t get any other message. How can I trace the error ? Thankyou!

It happens when I type many characters fast, it’s related to slate-core.dll

So after other tests I think the problem might be related to white spaces. I am using TrimStartAndEnd() but nothing happens anyhow.

void SMyChatWidget::CallFunction(const FText& InText)
{
...
ItemText = InText.ToString().TrimStartAndEndInline();
...
}

You need to post either a more complete call stack or the crash dump file. You can find both inside /Saved/Crashes

Nothing there. At disassembly view it says:
'rax,qword ptr [r8]'

There must be something in the crash report. Otherwise you can attach Visual Studio to the process, and if you have downloaded the editor symbols, VS will catch the exception when it crashes and will show you where it crashed, as well as the call stack. You might be able to find something there.

1 Like

I started the project from Visual Studio Code, I added some breakpoints and nothing. This is why I asked here. Tomorrow I will post some code maybe someone can figure it out. Thankyou!

It seems I didnt’t have installed debug symbols. I am sorry.