Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23563] Windows: 'possible EventEmitter memory leak detected' warning when building Windows Platform module

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-07-07T01:44:46.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.0.0
ComponentsWindows
Labelsqe-5.4.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-06-27T18:51:47.000+0000
Updated2016-09-05T16:12:13.000+0000

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

Create a windows module using appc new -t timodule -n winmodule --id com.winmodule

cd winmodule\windows

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

Comments

  1. Kota Iguchi 2016-07-06

    https://github.com/appcelerator/titanium_mobile_windows/pull/770
  2. Ewan Harris 2016-09-05

    Verified using: OS: Microsoft Windows 10 Pro 10.0.14393 Appc core: 6.0.0-38 Appc NPM: 4.2.8-6 Ti SDK: 6.0.0.v20160904203840 Warning is no longer shown when building a module Closing ticket

JSON Source