Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[ERR_STREAM_DESTROYED] winston logger

Discussion in 'Editor & General Support' started by Martin_Gonzalez, Feb 18, 2021.

  1. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    357
    Trying to build in batchmode I get this error. It's preventing us to build iOS

    Unity 2019.4.16f1
    MacOS

    Code (CSharp):
    1. /Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston/lib/winston/logger.js:307
    2.       throw ex;
    3.       ^
    4. Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    5.     at doWrite (_stream_writable.js:413:19)
    6.     at writeOrBuffer (_stream_writable.js:401:5)
    7.     at Socket.Writable.write (_stream_writable.js:301:11)
    8.     at Console.log (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston/lib/winston/transports/console.js:79:23)
    9.     at Console._write (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston-transport/index.js:82:19)
    10.     at doWrite (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    11.     at writeOrBuffer (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    12.     at Console.Writable.write (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    13.     at DerivedLogger.ondata (/Applications/Unity-2019.4.16f1/Unity.app/Contents/Resources/PackageManager/Server/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:681:20)
    14.     at DerivedLogger.emit (events.js:201:15)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    13,669
    That Winston Logger guy... man, he's been all over the place causing trouble.

    On a more serious note, try this: make a fresh blank project, switch it to iOS, put at least one scene in the Editor Build Settings, then try and run your command line launch against that project.

    That at least will isolate if it is something in the Unity build toolchain, or perhaps something in a plugin or library within your actual game.

    Barring that, find that guy Winston and buy him a beer, ask him what's going on. Or maybe hit google?? Hm.
     
  3. Martin_Gonzalez

    Martin_Gonzalez

    Joined:
    Mar 25, 2012
    Posts:
    357
    But do you know if its a Unity bug or the winston package?
     
unityunity