LogStats:Warning: MetaData mismatch.
Can you tell me please what is this about. And how can i get rid of these warnings messages? Thanks
asked Feb 01 '15 at 06:48 AM in C++ Programming
I got this error because i had multiple threads running with the same name. It shouldn't cause any problems thought.
https://docs.unrealengine.com/latest/INT/API/Runtime/Core/HAL/FRunnableThread/Create/1/index.html According to the documentation the second parameter should be unique for each thread instance.
After giving an unique name for each thread i spawn the error dissapeared.
Edit: So many people looking for proper answer, so i update my answer.
This error happens when you have two or more threads, objects with the same name.
In my case i spawned multiple threads with the same name. To handle multiple tasks. (That was actually bad in general and pointless to spawn more than one thread in my case).
To generate an unique thread name for each task you want to perform you can use the "FThreadSafeCounter" object
If I may? I think i have a solution. Did some digging on git and found FAsyncThreadIndex::GetNext(). It returns a unique int32. Here is how i used it. Hopefully this helps someone else!
Follow this question
Once you sign in you will be able to subscribe for any updates here