[TIMOB-19550] iOS: Many PNG images causes device/dist builds to fail EAGAIN (too many processes)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-09-20T10:08:47.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | Release 5.0.1 |
Components | iOS, Tooling |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2015-09-18T21:19:47.000+0000 |
Updated | 2015-09-22T21:03:41.000+0000 |
Description
If you build a project with a bunch of PNG images in the Resources dir, then build for iOS device or dist-*. Device and dist builds invoke pngcrush to optimize the images. This is done in parallel, but if you have 1000 images, then that's 1000 processes and then the build fails. This gives the effect that a random image is causing the problem.
Master PR: https://github.com/appcelerator/titanium_mobile/pull/7208 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7209
[~cbarber] [~cng] are these related threads? * https://community.appcelerator.com/topic/3371/is-anyone-able-to-successfully-deploy-an-an-app-to-the-app-store-with-5-0/2 * https://community.appcelerator.com/topic/3396/please-help-nothing-works-correctly/2 * https://community.appcelerator.com/topic/3395/titanium-exited-with-exit-code-0-ti-sdk-5-0-1-xcode-7-ios-9/5
APPROVED. PRs merged.
To all, into order to install the update, do: [appc] ti sdk install --default --branch 5_0_X 5.0.0.v20150920030708
[~ingo] For the first link, that is either related to this ticket or TIMOB-19554. The second link he definitely hit TIMOB-19549, but sounds like he original ran into TIMOB-19554. The third link is because of TIMOB-19554.
Verified fixed, using: MacOS 10.11 (15A279b) Studio 4.3.0.201509151348 Ti SDK 5.0.1.v20150922062312 Appc NPM 4.2.0 Appc CLI 5.0.2-19 Ti CLI 5.0.4 Alloy 1.7.10 Arrow 1.2.62 Xcode 7.0 (7A218) Node v0.10.37 Java 1.7.0_45 preproduction Builds do not fail when having over 1000 png files in the resources/assets folder.