Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

"Sending message header failed" warning

Discussion in 'Editor & General Support' started by Louis-N-D, Mar 8, 2015.

  1. Louis-N-D

    Louis-N-D

    Joined:
    Apr 17, 2013
    Posts:
    224
    I get a warning in my console when running a standalone dev build (mac). The warning is "Sending message header failed". I'm wondering if it might have anything to do with why my behaviour that handles scene switching isn't working.
     
    Tehelee and Magris like this.
  2. peterpantss

    peterpantss

    Joined:
    Sep 24, 2014
    Posts:
    13
    You get this figured out? I get this problem too - only in a development build.
     
  3. Louis-N-D

    Louis-N-D

    Joined:
    Apr 17, 2013
    Posts:
    224
    No, nothing, sorry.
     
  4. Tnagele

    Tnagele

    Joined:
    Jan 3, 2015
    Posts:
    17
    Same issue here.
     
    Tehelee likes this.
  5. Tehelee

    Tehelee

    Joined:
    Jan 26, 2013
    Posts:
    12
    I'm also seeing this issue, using Unity 5.0.0p3 and OSX 10.10.1.

    Looking at Console.app there's more information being logged outside of the Unity error window.

    I believe I had the platform set to iOS at the time these errors were printed.
    The following are the iOS platform settings:
    SymlinkUnityLibraries = true;
    DevelopmentBuild = true;
    AutoconnectProfiler = false;
    ScriptDebugging = true;


    The following is always called exactly as printed some time around when I'm using the Build window.

    Native extension for OSXStandalone target not found
    Native extension for WindowsStandalone target not found
    Native extension for LinuxStandalone target not found
    Native extension for WebGL target not found
    Native extension for BlackBerry target not found
    Native extension for Android target not found
    Sending message header failed

    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/GeneralConnection.cpp Line: 345)

    Sending message header failed

    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/GeneralConnection.cpp Line: 345)

    After further research I've found it prints after I resume back to Unity from closing xCode after building.
     
    Last edited: Apr 1, 2015
  6. Aberdyne

    Aberdyne

    Joined:
    Mar 17, 2015
    Posts:
    64
    I also have this warning. Generally it appears after running an app with profiler connected.

    In the log:
    Sending message header failed

    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Network/PlayerCommunicator/GeneralConnection.cpp Line: 345)
     
  7. AniMoney

    AniMoney

    Joined:
    Sep 28, 2014
    Posts:
    10
    Same thing happened to me today. I had profiler open running my game on android. Not sure why it happened though.
     
  8. Aberdyne

    Aberdyne

    Joined:
    Mar 17, 2015
    Posts:
    64
    The only annoyance is when the message is continually sent until you restart Unity... You can also open the profiler and change the "Active profiler" to something else than what caused the "lost connection" in the first place. It should stop.
     
  9. Nixaan

    Nixaan

    Joined:
    May 30, 2013
    Posts:
    116
    Same message here - happens when I close the game on windows (both x86 and 64 builds) with dev build/debugging enabled in the build options.
     
    Last edited: Jul 30, 2015
    wderstine likes this.
  10. rkamalya

    rkamalya

    Joined:
    Jan 21, 2015
    Posts:
    8
    The same is in my case. Have you found anything? (even when running without profiler)
     
  11. Sarudan

    Sarudan

    Joined:
    May 21, 2011
    Posts:
    65
    I'm seeing this in 5.1.2 - has anyone worked out the cause yet?
     
  12. Tirnoch88

    Tirnoch88

    Joined:
    Aug 17, 2015
    Posts:
    4
    anyone got fix for this?, i already done everything i read on unity wiki profiler, still got this error
     
  13. 333games

    333games

    Joined:
    Sep 21, 2014
    Posts:
    4
    On Android developing, I solved this issue by "build and run" with USB cable (not transferring apk via Dropbox).
     
  14. Gru

    Gru

    Joined:
    Dec 23, 2012
    Posts:
    142
    Still a bug. Happens when the development build is running with possible profiler attached. If the profiler isn't running, the error keeps spamming the console even after the build is closed :/
     
  15. Nabren

    Nabren

    Joined:
    Mar 7, 2014
    Posts:
    61
    I have also seen this after running the profiler on an app that has since been closed. I often have to completely close Unity and open it again to be able to attach to the same device.
     
  16. snlehton

    snlehton

    Joined:
    Jun 11, 2010
    Posts:
    99
    Yeah, I can confirm this happens also on PC when you enable script debugging in dev build, run it once and close it. Not amazed that this issue was already discovered back in 2015... :)
     
  17. MohammadDelkhah

    MohammadDelkhah

    Joined:
    May 25, 2013
    Posts:
    3
    Anisoropos and vexe like this.
  18. adamt

    adamt

    Joined:
    Apr 1, 2014
    Posts:
    116
    This is only a temporary workaround, and the messages often come back for me after following the steps mentioned in that Answers question. For whatever reason -- even if the Autoconnect Profiler option is disabled in the built game -- Unity still tries to autoconnect the profiler in the editor. It's incredibly annoying. Anyhow, I've filed a bug (877573) in case one doesn't exist yet.

    On a related note, since I don't see anyone else in this thread mention having submitted a bug report, please realize as developers that Unity relies on us to report these things for visibility, and "me too"ing these posts without reporting a bug rarely solves the problem. If you have reported it and just didn't mention it, apologies.
     
    Deleted User likes this.
  19. parthdarji

    parthdarji

    Joined:
    Jun 30, 2012
    Posts:
    14
    It happens when a profiler connected to Unity via a network is abruptly disconnected. Changing the Active Profiler to editor fixes this.
     
  20. adamt

    adamt

    Joined:
    Apr 1, 2014
    Posts:
    116
    @bik3r014 I'm not sure if you're just "me too'ing" this post or if you missed the posts above that describe the same workaround you posted, but be assured that is not a "fix." This is a bug in Unity that currently only has an annoying workaround.

    The good news is that the bug I created was marked as a duplicate of this bug, which currently has a "fix in review." Here's hoping it gets backported to the 5.5 branch!
     
  21. parthdarji

    parthdarji

    Joined:
    Jun 30, 2012
    Posts:
    14
    @adamt Since this is a forum page(and not Answers), I thought it'd be a good idea to chip in with a solution that works for me. Interestingly, the solution still works for me, but I realize mine could be a one-off thing. If guys here don't like 'me too's, I'll refrain from posting. Thanks for the heads up!