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
https://github.com/appcelerator/titanium_mobile_windows/pull/770
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