assembleRelease hangs at bundleReleaseJsAndAssets after creating ReactPackager
Trying to create a signed apk hangs indefinitely at 89% on the bundleReleaseJsAndAssets step, after outputting bundle: Created ReactPackager. This is using react-native version 23, on Mac running version 10.11.4. I have the keystore generated and gradle files setup properly. I've tried restarting and cleaning. The following are the logs beginning at the relevant build step.
19:59:21.485 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :app:bundleReleaseJsAndAssets (Thread[Daemon worker,5,main]) started.
19:59:21.485 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :app:bundleReleaseJsAndAssets
19:59:21.486 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':app:bundleReleaseJsAndAssets'
19:59:21.486 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':app:bundleReleaseJsAndAssets' is up-to-date
19:59:23.369 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':app:bundleReleaseJsAndAssets' (up-to-date check took 1.883 secs) due to:
No history is available.
19:59:23.369 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':app:bundleReleaseJsAndAssets'.
19:59:23.370 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command 'react-native''. Working directory: /Users/andrewtoth/Workspace/rspore Command: react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/assets/release/index.android.bundle --assets-dest /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/res/merged/release
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command 'react-native'': {PATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin, JAVA_ARCH=x86_64, MANPATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/share/man:/usr/local/share/man:/usr/share/man:/usr/local/MacGPG2/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man, JAVA_MAIN_CLASS_3043=org.gradle.wrapper.GradleWrapperMain, APP_ICON_3043=/Users/andrewtoth/Workspace/rspore/android/media/gradle.icns, APP_NAME_3043=Gradle, TERM=xterm-256color, LANG=en_CA.UTF-8, ANDROID_HOME=/Users/andrewtoth/Library/Android/sdk, LOGNAME=andrewtoth, NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist, TERM_PROGRAM_VERSION=361.1, PWD=/Users/andrewtoth/Workspace/rspore/android, XPC_SERVICE_NAME=0, NVM_CD_FLAGS=, SHELL=/usr/local/bin/bash, NVM_DIR=/Users/andrewtoth/.nvm, TERM_PROGRAM=Apple_Terminal, NVM_PATH=/Users/andrewtoth/.nvm/versions/node/v5.9.0/lib/node, OLDPWD=/Users/andrewtoth/Workspace/rspore/android, SECURITYSESSIONID=186a7, USER=andrewtoth, TMPDIR=/var/folders/rk/_130h6297tqggkt_m46j4yhr0000gn/T/, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.OAkPpQxQiA/Listeners, XPC_FLAGS=0x0, TERM_SESSION_ID=DE31D2B6-9EE3-4C6D-A01A-ADDF6F1387E0, NVM_IOJS_ORG_MIRROR=https://iojs.org/dist, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0, Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.QFoEd78Blt/Render, com.apple.java.jvmTask=CommandLine, NVM_BIN=/Users/andrewtoth/.nvm/versions/node/v5.9.0/bin, SHLVL=1, HOME=/Users/andrewtoth}
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
19:59:23.370 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'react-native'.
19:59:23.373 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
19:59:23.373 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
19:59:23.373 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'react-native''
19:59:25.804 [QUIET] [system.out] bundle: Created ReactPackager
Can you try running the command react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/assets/release/index.android.bundle --assets-dest /Users/andrewtoth/Workspace/rspore/android/app/build/intermediates/res/merged/release manually and see what's happening?
Running with --verbose gives me this:
ReactNativePackager:SocketClient connecting to +0ms /var/folders/rk/_130h6297tqggkt_m46j4yhr0000gn/T/react-packager-51137fab88b20c4d45b8a657f93d9f23
bundle: Created ReactPackager
Still hangs indefinitely. Is there anything I can do to get more information?
cc @davidaurelio @martinbigio
I am experiencing the same issue on Windows 10.
Trace here:
C:\Users\ma1069\rn\Test1\android>gradlew assembleRelease
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE
:app:prepareComFacebookFrescoDrawee081Library UP-TO-DATE
:app:prepareComFacebookFrescoFbcore081Library UP-TO-DATE
:app:prepareComFacebookFrescoFresco081Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipeline081Library UP-TO-DATE
:app:prepareComFacebookFrescoImagepipelineOkhttp081Library UP-TO-DATE
:app:prepareComFacebookReactReactNative0231Library UP-TO-DATE
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:app:prepareReleaseDependencies
:app:compileReleaseAidl UP-TO-DATE
:app:compileReleaseRenderscript UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:bundleReleaseJsAndAssets
bundle: Created ReactPackager
> Building 63% > :app:bundleReleaseJsAndAssets
@satya164 I have a similar output when running your command:
C:\Users\ma1069\rn\Test1>react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android\app\build\intermediates\assets\release\index.android.bundle --assets-dest android\app\build\intermediates\res\merged\release --verbose
ReactNativePackager:SocketClient connecting to +0ms \\.\pipe\C:\Users\ma1069\AppData\Local\Temp\react-packager-be8ba2d544af799f2cbe7bc25f48b1db
bundle: Created ReactPackager
notes: I have no idea about what the problem is, but this problem seems to occur both on v0.23.1 and the previous release...
Same problem on OS X.
Igors-Mac-mini:android igorsousa$ ./gradlew assembleRelease :app:preBuild UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkReleaseManifest :app:preDebugBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee081Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore081Library UP-TO-DATE :app:prepareComFacebookFrescoFresco081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp081Library UP-TO-DATE :app:prepareComFacebookReactReactNative0231Library UP-TO-DATE :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :app:prepareReleaseDependencies :app:compileReleaseAidl UP-TO-DATE :app:compileReleaseRenderscript UP-TO-DATE :app:generateReleaseBuildConfig UP-TO-DATE :app:generateReleaseAssets UP-TO-DATE :app:mergeReleaseAssets UP-TO-DATE :app:generateReleaseResValues UP-TO-DATE :app:generateReleaseResources UP-TO-DATE :app:mergeReleaseResources UP-TO-DATE Building 63% > :app:bundleReleaseJsAndAssets
Hangs indefinitely.
This is fixed by downgrading to 22.2, but fails from 23.0 to 24-rc5.
Weird thing: I created a new project with v0.23.1 on the same device giving the issue before, and now everything is working perfectly!
Has it already been solved? O_o
This issue is tagged "needs more info". Having same issue on Linux with 0.24.1. What info is needed?
Update: Here, downgrading to 0.22.2 doesn't fix it like it did for @andrewtoth .
Could anybody share a repo / gist with a ready-made reproducible setup? I’ll try to dig into it.
I'm stracing it. $ strace -f -o s.trace ./gradlew assembleRelease and get tons of connection timed out.
Got to go but when I kill it, this is the last lines:
15729 madvise(0x7f0e877d3000, 1028096, MADV_DONTNEED <unfinished ...>
16398 futex(0x7f0ec0326580, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
15729 <... madvise resumed> ) = 0
16398 <... futex resumed> ) = 1
15729 _exit(0) = ?
15724 <... futex resumed> ) = 0
16398 futex(0x7f0eb8078754, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f0eb8078750, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} <unfinished ...>
15729 +++ exited with 0 +++
15724 mmap(0x7f0e981bf000, 12288, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...>
16398 <... futex resumed> ) = 1
15724 <... mmap resumed> ) = 0x7f0e981bf000
15721 <... futex resumed> ) = 0
16398 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
15724 rt_sigprocmask(SIG_SETMASK, [QUIT], <unfinished ...>
15721 futex(0x7f0eb8078728, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
16398 <... futex resumed> ) = 0
15724 <... rt_sigprocmask resumed> NULL, 8) = 0
15721 <... futex resumed> ) = -1 EAGAIN (Resource temporarily unavailable)
16398 futex(0x7f0e80002054, FUTEX_WAIT_PRIVATE, 5, NULL <unfinished ...>
15724 madvise(0x7f0e981bf000, 1028096, MADV_DONTNEED <unfinished ...>
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
15724 <... madvise resumed> ) = 0
15721 <... futex resumed> ) = 0
15724 _exit(0) = ?
15721 mprotect(0x7f0ec0f52000, 4096, PROT_READ <unfinished ...>
15724 +++ exited with 0 +++
15721 <... mprotect resumed> ) = 0
15721 mprotect(0x7f0ec0f52000, 4096, PROT_READ|PROT_WRITE) = 0
15721 mprotect(0x7f0ec0f53000, 4096, PROT_NONE) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 3, {31723, 869650933}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 879853429}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 890100723}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 900309431}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 910513853}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 920722729}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 930928791}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 945324593}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 955531614}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 965743529}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 975940224}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 986150479}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31723, 996358141}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 6561380}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 16801116}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 26959933}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 37182244}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 47393192}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 57599051}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 68168060}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 78446842}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 89002891}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 99208753}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 109830238}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 120139041}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 130431480}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 140959220}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 151537588}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 162082851}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 172301988}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 futex(0x7f0eb8078754, FUTEX_WAIT_BITSET_PRIVATE, 1, {31724, 182891199}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
15721 futex(0x7f0eb8078728, FUTEX_WAKE_PRIVATE, 1) = 0
15721 unlink("/tmp/hsperfdata_leo/15709") = 0
15721 exit_group(130) = ?
15734 +++ exited with 130 +++
15733 +++ exited with 130 +++
16398 +++ exited with 130 +++
15728 +++ exited with 130 +++
15727 +++ exited with 130 +++
15726 +++ exited with 130 +++
15725 +++ exited with 130 +++
15723 +++ exited with 130 +++
15722 +++ exited with 130 +++
15721 +++ exited with 130 +++
15720 +++ exited with 130 +++
15719 +++ exited with 130 +++
15717 +++ exited with 130 +++
15716 +++ exited with 130 +++
15718 +++ exited with 130 +++
15709 +++ exited with 130 +++
Here is the full strace.
@davidaurelio and @satya164 could you please let me know if this information is helpful or if I could provide more insight into this bug that affects several people, including my build server where Andrew's "fix" doesn't fix it.
@davidaurelio @satya164 Here are exact steps to reproduce:
git clone [email protected]:andrewtoth/releaseError.git
cd releaseError
npm install
cd android
./gradlew assembleRelease
trying to reproduce steps provided by @andrewtoth in a well defined docker environment:
docker run -it peterlazar1993/react-native-android bash
git clone https://github.com/andrewtoth/releaseError.git
npm i -g rn-nodeify
cd releaseError/
npm install
cd android
echo "y" | android update sdk -a --no-ui --filter build-tools-23.0.1,extra-android-support,extra-android-m2repository,extra-google-google_play_services,extra-google-m2repository
./gradlew assembleRelease
I get some weird errors but also the freezing behavior at > Building 63% > :app:bundleReleaseJsAndAssets.
The errors are:
[10:55:08 PM] <END> Building Dependency Graph (11771ms)
/opt/releaseError/node_modules/babel-core/lib/transformation/file/index.js:614
throw err;
^
TypeError: /opt/releaseError/shim.js: Property left of AssignmentExpression expected node to be of a type ["LVal"] but instead got "StringLiteral"
...
/opt/releaseError/node_modules/babel-core/lib/transformation/file/index.js:614
throw err;
^
...
[node-haste] Encountered an error while persisting cache:
> Error: Uncaught error in the transformer worker: /opt/releaseError/node_modules/react-native/packager/transformer.js
> at index.js:109:33
> at tryCallOne (/opt/releaseError/node_modules/promise/lib/core.js:37:12)
> at /opt/releaseError/node_modules/promise/lib/core.js:123:15
> at flush (/opt/releaseError/node_modules/asap/raw.js:50:29)
> at nextTickCallbackWith0Args (node.js:433:9)
> at process._tickCallback (node.js:362:13)
@Giszmo These errors show up when I upgraded to 0.25.0-rc. The build step still hangs, just no longer after creating ReactPackager.
So I've narrowed it down pretty well. You can see a project that breaks at https://github.com/andrewtoth/releaseError. I've tried it with 24.1, 25.0-rc, and 26.0-rc. To reproduce yourself, just run react-native init projectName, add https://raw.githubusercontent.com/mvayngrib/rn-nodeify/master/shims.js to the project, and then in index.android.js add require('./shim'); to the top of the file. Running (cd android && ./gradlew assembleRelease) will break or hang on bundleReleaseJsAndAssets, depending on the version you use.
@satya164 I don't think this should be tagged as needs more information at this point.
I don't know if it has any side effect down the road but this work for me.
In android/build.gradle, replace
classpath 'com.android.tools.build:gradle:1.3.1'
with
classpath 'com.android.tools.build:gradle:1.5.0'
and the build run to finish.
@andrewtoth small correction, you shouldn't be adding shims.js from the rn-nodeify repo. rn-nodeify will create a file called shim.js in your project. Require that file at the top.