What is causing Tmap to crash the Editor?
For some reason I this function keeps crashing on line 36 with the error "Assertion failed: Pair != NULL". I'm not using pointers and I suspend the thread that uses PathQueue TMap.
Here is the declaration to PathQueue:
I'm not sure if this is because of thread safety, unreal not supporting TMap inside TMaps, or something else.
I recon this question is 2 years old. However the reason as to why this assertion fails hasn't changed to date (version 4.13.1 of the engine). It might help a fellow reader.
Anywho, this code simply crashes because one of the pairs the author tries to address here - particularly
Always ensure the pair exists by checking with, in this example,
answered Oct 25 '16 at 12:38 AM
Cause the function suspend is windows specific and unsafe. you have to enforce the use of it. wrap your code in the following includes and it will work
answered Nov 11 '16 at 02:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here