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. Dismiss Notice

Can't build apk, IOException: Win32 IO returned ERROR_BROKEN_PIPE

Discussion in 'Editor & General Support' started by IssacShepard, Jan 31, 2018.

  1. IssacShepard

    IssacShepard

    Joined:
    Jan 27, 2018
    Posts:
    1
    For some reason, my app wont build. This happened soon after I setup the google play games services.

    Here's the error report:

    IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path: C:\Users\Shepard\Desktop\Unity Projects\New\[Unknown]
    System.IO.FileStream.FlushBuffer (System.IO.Stream st) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1040)
    System.IO.FileStream.FlushBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1054)
    System.IO.FileStream.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:859)
    System.IO.StreamWriter.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:191)
    System.IO.StreamWriter.Dispose (Boolean disposing) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:162)
    UnityEditor.HostView:OnGUI()
     
    ThomLaurent likes this.
  2. djorgri

    djorgri

    Joined:
    Jan 3, 2011
    Posts:
    17
    Exactly the same here :

    Code (CSharp):
    1. IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path: C:\UnityProjects\Project\[Unknown]
    2. System.IO.FileStream.FlushBuffer (System.IO.Stream st) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1040)
    3. System.IO.FileStream.FlushBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:1054)
    4. System.IO.FileStream.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:859)
    5. System.IO.StreamWriter.Flush () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:191)
    6. System.IO.StreamWriter.Dispose (Boolean disposing) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:162)
    7. UnityEditor.HostView:OnGUI()
    Note that i already use :
    - Unity IAP
    - Unity Ad
    - iTween
    - CryptoPlayerPrefs

    This error occurred after addind Google Play Game Services 0.95 for their official GitHub.
    Removing it allows the project to build apk properly again.

    I don't see what's happening here...
     
    guetta18 likes this.
  3. djorgri

    djorgri

    Joined:
    Jan 3, 2011
    Posts:
    17
    Ok; as seen on another thread,
    updating JDK to Java SE Development Kit 8u162 did the trick (Win10 x64).
     
    guetta18 likes this.
  4. bilal93

    bilal93

    Joined:
    Dec 5, 2016
    Posts:
    2
    IOException: Win32 IO returned ERROR_BROKEN_PIPE. Path:

    hey ,, i have more than 3 days searching and trying to solve this error ,, thank you a lot
    but not this version off jdk ,, the latest one will be better ,,
    and try to move every thing to the C:// and the jdk should be on programs file

    thank you a lot and best regards
     
    kundanbhati likes this.
  5. ismaelnascimentoash

    ismaelnascimentoash

    Joined:
    Apr 2, 2017
    Posts:
    30
  6. shadowthunder24

    shadowthunder24

    Joined:
    Jun 19, 2019
    Posts:
    8
    This is a frustrating issue, it works fine when I remove Google Play Services. What's frustrating is that this was never a problem, every single time I built my apk with Google Play Services. I never changed a single thing in my project and now randomly this stupid error comes up and also gets stuck when building the apk. Unity can you please fix your god damn bugs?!?! How can an error like this just randomly occur with building project files on the same damn version of Unity when it was never an issue before and made no changes. Next day comes, I open Unity up from the same project and bam! t his stupid error occurs in my console. Can we please get an update on this issue!
     
    lonely_hokage likes this.