koute / bytehound

A memory profiler for Linux.
Other
4.49k stars 193 forks source link

Crash when build server-core #102

Open lingege32 opened 1 year ago

lingege32 commented 1 year ago

When I use cargo build --release -p bytehound-cli to build bytehound-cli. The installation crash at building webui. Same issue with #79 , but no solution for me so I file a new issue.

> cargo build --release -p bytehound-cli

Error message:
  Packaging & Optimizing...
   Built in 18.17s

  dist/index.html                                  363 B     1.00s
  dist/index.8bed19df.js                     ⚠️  1.22 MB    11.09s
  dist/feather-sprite.be6e0e50.svg              42.52 KB     1.06s
  dist/index.d35b3801.css                      324.05 KB     218ms
  dist/fontawesome-webfont.3981e506.eot        161.86 KB      77ms
  dist/fontawesome-webfont.3981e506.eot        161.86 KB      94ms
  dist/fontawesome-webfont.58488e7e.woff2       75.35 KB      95ms
  dist/fontawesome-webfont.ed962b83.woff        95.73 KB     114ms
  dist/fontawesome-webfont.0caf0c90.ttf        161.67 KB      78ms
  dist/fontawesome-webfont.a9323ae9.svg         378.7 KB     1.29s

  --- stderr
  warning memoize-one@4.1.0: New custom equality api does not play well with all equality helpers. Please use v5.x
  warning popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
  warning reactdom@2.0.0: Package no longer supported. Contact support@npmjs.com for more info.
  warning reactstrap > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
  warning parcel > @parcel/config-default > @parcel/optimizer-htmlnano > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
  warning " > react-ace@9.5.0" has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0".
  warning " > react-contextmenu@2.14.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.1".
  warning " > react-dom@16.14.0" has incorrect peer dependency "react@^16.14.0".
  warning " > react-table@6.11.5" has incorrect peer dependency "react@^16.x.x".
  warning " > reactstrap@6.5.0" has incorrect peer dependency "react@^16.0.0".
  warning "reactstrap > react-popper@0.10.4" has incorrect peer dependency "react@0.14.x || ^15.0.0 || ^16.0.0".
  thread 'main' panicked at 'Failed to build WebUI; child process exited with error code None!', server-core/build.rs:154:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

If I execute ./node_modules/.bin/parcel build src/index.html --dist-dir dist alone in webui folder.

> ./node_modules/.bin/parcel build src/index.html --dist-dir dist
 Built in 18.04s

dist/index.html                                  363 B     1.08s
dist/index.8bed19df.js                     ⚠️  1.22 MB    10.94s
dist/feather-sprite.be6e0e50.svg              42.52 KB     1.03s
dist/index.d35b3801.css                      324.05 KB     229ms
dist/fontawesome-webfont.3981e506.eot        161.86 KB     113ms
dist/fontawesome-webfont.3981e506.eot        161.86 KB     123ms
dist/fontawesome-webfont.58488e7e.woff2       75.35 KB      88ms
dist/fontawesome-webfont.ed962b83.woff        95.73 KB      95ms
dist/fontawesome-webfont.0caf0c90.ttf        161.67 KB      98ms
dist/fontawesome-webfont.a9323ae9.svg         378.7 KB     1.33s
[3]    2989 segmentation fault (core dumped)  ./node_modules/.bin/parcel build src/index.html --dist-dir dist

The following is my environment.

> lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-ia32:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-ia32:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-ia32:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.3.1611 (Core)
Release:        7.3.1611
Codename:       Core

> node --version
v16.14.2

> npm --version
9.2.0
sylzd commented 8 months ago

have u solved it now?