Expo Build Error "Idle daemon unexpectedly exit. This should not happen."

I ran expo build:android -t apk on an app which just built two days ago perfectly fine. The only change I made was I added a file to the assets folder and changed the location of the “icon” key in app.json to point to the new asset.

The build ran for about 4 minutes on the server and then exited with an error. When I look at the logs, they look exactly the same as the build which went fine but this is at the bottom of the logs:

Mon, 15 Mar 2021 21:03:20 GMT> Task :app:minifyReleaseWithR8

Mon, 15 Mar 2021 21:06:03 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #6: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:04 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #5: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:05 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #4: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:05 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #3: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:05 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #2: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:06 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #1: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:06 GMT[stderr] AAPT2 aapt2-4.0.0-6051327-linux Daemon #0: Idle daemon unexpectedly exit. This should not happen.

Mon, 15 Mar 2021 21:06:07 GMTError: ./gradlew exited with signal: SIGKILL
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:51:23)
    at Object.onceWrapper (events.js:418:26)
    at ChildProcess.emit (events.js:311:20)
    at ChildProcess.EventEmitter.emit (domain.js:482:12)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    ...
    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:201:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:976:11)
    at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:396:5)
    at async runShellAppBuilder (/app/turtle/build/builders/android.js:95:9)
    at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:43:28)
    at async build (/app/turtle/build/jobManager.js:181:33)
    at async processJob (/app/turtle/build/jobManager.js:118:32)
    at async Object.doJob (/app/turtle/build/jobManager.js:49:5)
    at async main (/app/turtle/build/server.js:66:13)

Not sure what to make of it. I’ll try the build again and see if it was just an intermittent error or not.

Hey @farhankathawala, please let me know if you are still encountering the issue. Also, it’d be great to know your env information via expo diagnostics.

Cheers,
Adam

Hi Adam,

I ran the build again right after posting and it went through fine. I didn’t change anything in between.

Here’s the output of expo diagnostics

  Expo CLI 4.3.0 environment info:
    System:
      OS: Linux 5.11 Arch Linux
      Shell: 5.1.4 - /bin/bash
    Binaries:
      Node: 15.10.0 - /bin/node
      Yarn: 1.22.10 - /bin/yarn
      npm: 7.6.3 - /bin/npm
      Watchman: 4.9.0 - /bin/watchman
    IDEs:
      Android Studio: 4.1 AI-201.8743.12.41.6953283
    npmPackages:
      expo: ~40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 
      react-native-web: ~0.13.12 => 0.13.18 
    npmGlobalPackages:
      expo-cli: 3.28.5
    Expo Workflow: managed

expo doctor also didn’t return any issues

Thanks!

I have the same issue. I faced with issue after upgrading expo sdk from 37 to 40.
EDIT: After retries, I didn’t get the issue

can you share the link to build pages for any failed builds w/ this error?

Hi

I have the same issue… tried 2 times with the same build error. Got this after upgrading to SDK41.

Link to build: Expo Build Error "Idle daemon unexpectedly exit. This should not happen." - #3 by farhankathawala

Regards, Thomas

  1. time it succeeded…

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.