Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19550] iOS: Many PNG images causes device/dist builds to fail EAGAIN (too many processes)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-09-20T10:08:47.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.1
ComponentsiOS, Tooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2015-09-18T21:19:47.000+0000
Updated2015-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.

Comments

  1. Chris Barber 2015-09-18

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/7208 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7209
  2. Ingo Muschenetz 2015-09-20

    [~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
  3. Chee Kiat Ng 2015-09-20

    APPROVED. PRs merged.
  4. Chee Kiat Ng 2015-09-20

  5. Ingo Muschenetz 2015-09-20

    To all, into order to install the update, do: [appc] ti sdk install --default --branch 5_0_X 5.0.0.v20150920030708
  6. Chris Barber 2015-09-21

    [~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.
  7. Eric Wieber 2015-09-22

    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.

JSON Source