Project: titanium
Issue TIMOB-23563: Windows: 'possible EventEmitter memory leak detected' warning when building Windows Platform module
h5.Description When building a Windows Platform module the following warning is shown {code} (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) {code} This warning is shown when building with {{appc run}} or {{ti build}}, it is not shown when building an Android module h5.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}} h5.Actual result The warning shown in the description is printed out h5.Expected result No warning should be printed out
Story points: 5