expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

Ubuntu 17.10 entire system freezes when JavaScript bundle builds to 100%

Open johntzan opened this issue 8 years ago • 6 comments

Environment

Environment: OS: Linux 4.13 Node: 9.7.1 Yarn: 1.5.1 npm: 5.6.0 Watchman: Not Found Xcode: N/A Android Studio: Not Found

Packages: (wanted => installed) expo: ^25.0.0 => 25.0.0 react: 16.2.0 => 16.2.0 react-native: https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz => 0.52.0

Steps to Reproduce

This happens about 8/10 times I try to run my project.

  1. Either running npm run start in terminal
  2. or running in xde client
  3. Wait for bundle to reach 100%

Expected Behavior

Project should load on my device right after.

Actual Behavior

Entire computer freezes and requires me to hold power button to restart. System logs show this when it happens:

Mar 5 04:18:05 YianniLemur org.gnome.Nautilus[1947]: Opened project at /home/yiannitzan/dev/restaurants \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Link to project zip file: https://www.dropbox.com/s/d5leu2jerjd9izs/restaurants.zip?dl=0

johntzan avatar Mar 05 '18 09:03 johntzan

cc @fson

brentvatne avatar Mar 05 '18 19:03 brentvatne

This also occurred to me. Building JavaScript bundle and suddenly entire system freezes. Reproducible Demo

Environment:
  OS: Linux 4.13
  Node: 9.9.0
  Yarn: 1.5.1
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: N/A
  Android Studio: Not Found

Packages: (wanted => installed)
  expo: ^25.0.0 => 25.0.0
  react: 16.2.0 => 16.2.0
  react-native: 0.52.0 => 0.52.0

chalkpe avatar Mar 28 '18 16:03 chalkpe

I've encountered the same issue on Ubuntu 17.10 multiple times over the course of last 5-6 months. Building JavaScript bundle reaches 99% and suddenly the whole system freezes. Couldn't really find any relevant solution, but I've noticed that this only happens when Visual Studio Code and some node processes are running, still, no clue why having code and node processes closed helps the issue. Unfortunately I cannot provide a sample for reproducing the code. Here are my system specs:

OS: Linux 4.13 (x64)
Node: 9.9.0
npm: 5.6.0
yarn: 1.5.1
watchman: Not installed

Packages:
  exp: 5.6.0 (the cli tool)
  expo: ^25.0.0
  react: 16.2.0
  react-native: 0.52.0

gabuladze avatar Mar 29 '18 06:03 gabuladze

Just wanted to add that I also have this issue. It seems to only happen when I'm tunnelling over lan, but I can't find any other relevant debugging evidence...

cjol avatar May 15 '18 10:05 cjol

I have been having issues with watchman. It will start to read from the disk and freeze the entire system.

lucasavila00 avatar Jun 01 '18 00:06 lucasavila00

The last update in this issue was a long time ago, so I'm going to close this. Feel free to reopen if the problem is still occurring.

jakubste avatar Nov 27 '18 14:11 jakubste