Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23563

Windows: 'possible EventEmitter memory leak detected' warning when building Windows Platform module

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Windows
    • Labels:
    • Environment:

      Windows 10 Pro
      Ti SDK: 5.4.0.v20160617074028
      Appc NPM: 4.2.7-2
      Appc CLI: 5.4.0-18

    • Story Points:
      5
    • Sprint:
      2016 Sprint 14 SDK

      Description

      Description

      When building a Windows Platform module the following warning is shown

      (node) warning: possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit.
      Trace
          at [object Object].addListener (events.js:239:17)
          at [object Object].Readable.on (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\readable-stream\lib\_stream_readable.js:650:33)
          at [object Object].once (events.js:265:8)
          at [object Object].Readable.pipe (_stream_readable.js:576:8)
          at [object Object].ZipArchiveOutputStream._smartStream (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:171:11)
          at [object Object].ZipArchiveOutputStream._appendStream (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:94:20)
          at [object Object].ArchiveOutputStream.entry (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\archive-output-stream.js:89:10)
          at [object Object].ZipStream.entry (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\zip-stream\lib\zip-stream.js:105:49)
      (node) warning: possible EventEmitter memory leak detected. 11 finish listeners added. Use emitter.setMaxListeners() to increase limit.
      Trace
          at [object Object].addListener (events.js:239:17)
          at [object Object].Readable.on (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\readable-stream\lib\_stream_readable.js:650:33)
          at [object Object].once (events.js:265:8)
          at [object Object].Readable.pipe (_stream_readable.js:582:8)
          at [object Object].ZipArchiveOutputStream._smartStream (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:171:11)
          at [object Object].ZipArchiveOutputStream._appendStream (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\zip\zip-archive-output-stream.js:94:20)
          at [object Object].ArchiveOutputStream.entry (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\compress-commons\lib\archivers\archive-output-stream.js:89:10)
          at [object Object].ZipStream.entry (C:\ProgramData\Titanium\mobilesdk\win32\5.4.0.v20160617074028\node_modules\zip-stream\lib\zip-stream.js:105:49)
      

      This warning is shown when building with appc run or ti build, it is not shown when building an Android module

      Steps to reproduce
      1. Create a windows module using appc new -t timodule -n winmodule --id com.winmodule
      2. cd winmodule\windows
      3. Build the module using appc run -p windows --build-only or ti build -p windows --build-only
      Actual result

      The warning shown in the description is printed out

      Expected result

      No warning should be printed out

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Christopher Williams
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9859
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code