Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

"MetaData mismatch" using FTCPListener in GameMode

I have a GameMode which I hold an instance of FTCPListener. I bind this listener in ::PostInitProperties, we Exit it in ::FinishDestroy.

This works, I am able to connect to the listener and send messages when running the game (the first time). Stopping the game calls Exit on the listener. The problem is that if I stop the game and rerun it executes the binding with no warning or error but I can no longer connect to the socket and I get this sole warning in the console upon startup:

 LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FTcpListener///Thread_1d84_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FTcpListener///Thread_1298_0///####STATCAT_Advanced####

Saw several related issues but nothing that's helping: here, here and here among others.


  • Am I holding the listener or initializing it in the wrong place? If so where should this live? I want one in the game instance.

  • What's causing this?

  • If it's simply the case that the listener's thread name conflicts as suggested in other posts, how can I rename the internal thread name to the listener? Looking at the header it's hard coded to "FTcpListener"

Product Version: UE 4.16
more ▼

asked Jul 26 '17 at 02:46 PM in C++ Programming

avatar image

6 3 4

avatar image eltrompetero Sep 21 '17 at 02:59 PM

I'm having the same problem with 4.17.1 on OS X.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

After doing some more searching I found something that helped me out here. It appears that a feature causes sockets while running in the editor to not get cleaned up when it cycles. A user actually fixed the problem and published the fix to be included, sadly this was almost three years ago and it has not made it in. The workaround for me was creating the FTcpListener with a socket that I create and hold and not an endpoint... then I manually close the socket itself.

more ▼

answered Jul 27 '17 at 04:15 PM

avatar image

6 3 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question