Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Instant crash with "Aw, snap!" text #331

Open
pure-bliss opened this issue Feb 19, 2022 · 7 comments
Open

Instant crash with "Aw, snap!" text #331

pure-bliss opened this issue Feb 19, 2022 · 7 comments

Comments

@pure-bliss
Copy link

NDB window crashes with "Aw, snap!" text instantly when started.
image

  • Clicking 'Learn more' or 'Reload' does nothing.
  • Pressing F12 pops up the dev tools in a new window, but closes instantly.
  • The process meant to be debugged doesn't seem to start either
  • Nothing is printed to terminal.
  • At first start it downloads Chromium r624492
  • chromium browser installed by linux package manager works
  • The window-s title is: _text/html,%0A <title></title>%0A <style>html{background:%23242424;}</style>%0A <script>self.paramsForReuse = {"data":"eyJjd2QiOiJmaWxlOi8vL21lZGlhL2RhdGEvUHJvamVjdHMvanMvbmRidGVzdCIsImFyZ3YiOlsiL3Vzci9iaW4vbm9kZSIsIi9tZWRpYS9kYXRhL1Byb2plY3RzL2pzL25kYnRlc3Qvbm9kZV9tb2R1bGVzLy5iaW4vbmRiIiwiaW5kZXguanMiXSwibm9kZUV4ZWNQYXRoIjoiL3Vzci9iaW4vbm9kZSJ9"};</script>

Maybe the most important part:

Core dump in journal
febr 19 21:23:15 { pc name } systemd-coredump[155586]: [🡕] Process 155571 (chrome) of user 1000 dumped core.
  Module linux-vdso.so.1 with build-id f8a46a233d179d592efd3c866f15a853cfc5bc7c
  Module libstdc++.so.6 with build-id 88ad4eff81a00c684abfe0f863e87434123d8943
  Module libicudata.so.70 with build-id e1dcc2a88cfaafed882d09c90c668af0eed4efed
  Module libbrotlicommon.so.1 with build-id a4ba3f4b4571c8272343b621da812a6e24a202a7
  Module libgpg-error.so.0 with build-id 82524ee3d1c4c2244d7cfdcc1e6eea5f9855f6c6
  Module libxml2.so.2 with build-id b710b880b0d4e9c93554fa632129db44c20632cd
  Module libjson-glib-1.0.so.0 with build-id 5865be5fcc01b48a0a113e0145ec45529bff89a6
  Module libsqlite3.so.0 with build-id 5f711261aabe285f02a673ded77a37b413afbfa2
  Module libicui18n.so.70 with build-id 95af755fca990df26753a7d720b8e3ae24270e42
  Module libicuuc.so.70 with build-id 2e245c2bf12f95fd8ab79b3a4be99524677cbd70
  Module libstemmer.so.0 with build-id aa44a40dfb223020ed8e49cd2d28fc3887128463
  Module libbrotlidec.so.1 with build-id 45defc036e918e0140a72f1fbce6e7692d38241d
  Module libbz2.so.1.0 with build-id 919597c477c9b2cb9cdbb7745ed6494ac0e6da60
  Module libdatrie.so.1 with build-id 6fe3b6ece2c8e7d11869fa051375128d8f808f58
  Module libgraphite2.so.3 with build-id 47761dc11e553f519cde97ed9ee985be12ccdae2
  Module libblkid.so.1 with build-id 9e4bb910a2e63ba71cae0e3b89c07fdd45033ff2
  Module libgcrypt.so.20 with build-id db45f5d5e0f7af1e77324fea1885f974619ad268
  Module libcap.so.2 with build-id eb6dae97527fc89dbb0d5bb581a15acd02ae9f56
  Module liblz4.so.1 with build-id e63600ab23b2f6997f42fac2fa56e1f02ce159a1
  Module libzstd.so.1 with build-id 72f3511cba7db578f6a2647925f35664da6c838b
  Module liblzma.so.5 with build-id 8b615460aa230708c5183f16bede67aa0437d95e
  Module libgmp.so.10 with build-id e58d34ab389d1b649c24195c2d145e3ff2e58290
  Module libhogweed.so.6 with build-id 2d70cff7b1841b4d9ca4e8e7726cd4b944c07fdc
  Module libnettle.so.8 with build-id 9a878e513c02007598fcf1e2e286c2203f13536e
  Module libtasn1.so.6 with build-id ee3429ca5e94718aea4fe5249fc859e0cd88e4e9
  Module libunistring.so.2 with build-id 015ac6d6bcb60b7d8bea31a80d1941b06e8636ab
  Module libidn2.so.0 with build-id 1ce2b50ad9f9821c2c629b521cf5a3c99593d332
  Module libp11-kit.so.0 with build-id cc372ea3c28c4d3dfc633b4d2e933c8584d2af16
  Module libtiff.so.5 with build-id e8d89a0fb0847641ddb75c5f03fa89d68155a75d
  Module libjpeg.so.8 with build-id 879ca18a2f58c25d77ba881db3a44a5676ef6c7d
  Module libXinerama.so.1 with build-id dbb6adece34ea2766d3efcd628af8f9757344dd6
  Module libwayland-egl.so.1 with build-id 791e39283cdcc5a08cfd091b8cd4c59869a11278
  Module libwayland-cursor.so.0 with build-id 79d7e67af210407c2afe92ba8c189c8648a6474c
  Module libwayland-client.so.0 with build-id 0a237f2fd096bada4ca381eec5d64474c4078be4
  Module libxkbcommon.so.0 with build-id 3a9338b2085f0af41217bc0a90ffcc941938a16e
  Module libtracker-sparql-3.0.so.0 with build-id b0eee5a9b660fed5221ea15139e9608282320503
  Module libcloudproviders.so.0 with build-id ed1d9c9e60be4e858ad148484767249be1edf95f
  Module libepoxy.so.0 with build-id b6357fc6b748c512f90339433d74502b9d0621dc
  Module libcairo-gobject.so.2 with build-id abbf5a8a182ea1b8b7d68540df5c2e25c0bdae0c
  Module libpixman-1.so.0 with build-id 341f793dcada3a48a306a793d265a517e3f2e7d6
  Module libxcb-shm.so.0 with build-id fb797f299a446f559a95afcc168227482cc800d1
  Module libxcb-render.so.0 with build-id a37bdb37744b508be9dd29fd9ccb9bb0170d43e5
  Module libfreetype.so.6 with build-id 26c5f833068ff72660d1975cbc2074c3eb47fad8
  Module libpng16.so.16 with build-id 2dc0bce07f199bf983c07a05fb95a6f4af83a9b3
  Module libthai.so.0 with build-id a7ac5010b4275c49308021200d23690533952702
  Module libfribidi.so.0 with build-id 79124bad061c2aab4ec89f25d067363d5b781114
  Module libfontconfig.so.1 with build-id 9fdeb38479c4090d673efc2e8cb60176efe65da1
  Module libharfbuzz.so.0 with build-id 716df25c59c91f456ae107457e4250f7c32bde1b
  Module libpangoft2-1.0.so.0 with build-id 9b0353693557b4fb68124a9dffac9b07678d86a1
  Module libresolv.so.2 with build-id 46ffdf3d477a170314060c26927470d7399bc900
  Module libmount.so.1 with build-id 765508fe9812e693ac41fd3d0aedd65d7a78b287
  Module libgmodule-2.0.so.0 with build-id 5da4523e8d6b5c244a0193e27093d1e61f6ac9e4
  Module libsystemd.so.0 with build-id a83a62063b8098eda274d25251d619f0503bf011
  Module libz.so.1 with build-id 0c1459c56513efd5d53eb3868290e9afee6a6a26
  Module libgnutls.so.30 with build-id 50f3a52ba3db67b822fd5888790238eb548b64aa
  Module libavahi-client.so.3 with build-id 1858551543958190c653b565cf0eb64609ad908a
  Module libavahi-common.so.3 with build-id 80fda945459a3476ccd1050783dfd5f5c17c479a
  Module libplc4.so with build-id 44dcd42fb72cc8aab586dbf4000293590bb19e67
  Module libplds4.so with build-id e915f74a1aff6a20d65b5f03f5ee2e0197153a33
  Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767
  Module libffi.so.8 with build-id f90d8b734f6de9b25faedb8cbfab7054dafc0a42
  Module libXdmcp.so.6 with build-id 8ca0792d23c8b8b4c0864297512349292bea5955
  Module libXau.so.6 with build-id 1c67764663e07bec24d8951e5fd93f4d165979ff
  Module ld-linux-x86-64.so.2 with build-id c09c6f50f6bcec73c64a0b4be77eadb8f7202410
  Module libc.so.6 with build-id 85766e9d8458b16e9c7ce6e07c712c02b8471dbc
  Module libgcc_s.so.1 with build-id 5d817452a709ca3a213341555ddcf446ecee37fa
  Module libgdk_pixbuf-2.0.so.0 with build-id ca4beb15a30de8d8767f7bca8222038c61b58b36
  Module libgdk-3.so.0 with build-id 0d1048ff040bb420bc2b7da992590559226a1beb
  Module libgtk-3.so.0 with build-id 237211b929fd493858b4269bbf63f407c24e0fb4
  Module libatspi.so.0 with build-id de251156cf6f2f447c5e2b8721bd913d79995d4f
  Module libatk-bridge-2.0.so.0 with build-id 1161ebbcc5aa791075dfa026671875e5417287bd
  Module libatk-1.0.so.0 with build-id aacaa40363d304858b654728a893bc212a4ca119
  Module libcairo.so.2 with build-id 06820af9cf79c2deb207d9533a61caf04e67a8ad
  Module libpango-1.0.so.0 with build-id f7a7e74f7ade4cbcf3840f685d760da19b0dc38c
  Module libpangocairo-1.0.so.0 with build-id a47bf17ab99c1840764fca52a2d772800d81d6e1
  Module libm.so.6 with build-id 596b63a006a4386dcab30912d2b54a7a61827b07
  Module libasound.so.2 with build-id b17fc1317a484842433c772360376623b64ec3d8
  Module libgio-2.0.so.0 with build-id c4e89ca22afc7f17db176d2063fe379dbc88d99b
  Module libXrandr.so.2 with build-id d4e869b5c72541e1de8f96b456248987ea52d51b
  Module libuuid.so.1 with build-id cc94de1b28210d2b06109bd76c198c80f518aad6
  Module libexpat.so.1 with build-id c3b8b6921f5b323540b84acd301ccc7bc5bc0428
  Module libXss.so.1 with build-id baa7abf56d3c688475068639478b07b508149f7a
  Module libdbus-1.so.3 with build-id 74f2ab9c60512f3a93c932c3f627564d42e0b11e
  Module libcups.so.2 with build-id 52ccc84fcb1bd56821c25e88ff624550698087f5
  Module libnspr4.so with build-id c5d12234f7975d11a11e67646533657d014d9540
  Module libsmime3.so with build-id 78817b6406663629f3586cf4ff6dc4c32faa6785
  Module libnssutil3.so with build-id 0d2b2fb3fdde7ea1ed8f4c95493516473435cdba
  Module libnss3.so with build-id d2548c5d414574f214f87e4fd328d7a8bfc06931
  Module libglib-2.0.so.0 with build-id 24e675eddd4654b470e0a892f4a4aec012b04160
  Module libgobject-2.0.so.0 with build-id 6d7ff6c8e4e9c12caa92cf25a74d3ecdd9461c36
  Module libXtst.so.6 with build-id 96411faea62997274e362f263e65082e601a787b
  Module libXrender.so.1 with build-id 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
  Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49
  Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
  Module libXext.so.6 with build-id d70f24beb4fad748d6becffdcc13e51be0a2ebfa
  Module libXdamage.so.1 with build-id a1d867e093c16944b2c0083be98050ef35c9e5c2
  Module libXcursor.so.1 with build-id eb6315bcd7526aaf51b0a1307efdc587cea0a152
  Module libXcomposite.so.1 with build-id f1bb5ffb6203ab2907ac044a204ce3902a79f1c1
  Module libxcb.so.1 with build-id 0d1ef11740a5daad2ee331e812a51aa6574af222
  Module libX11-xcb.so.1 with build-id 0db4f94d8ae31b8dc9a83f825a9171656f1e532c
  Module libX11.so.6 with build-id 5ba5798d193c0065014b8c6252a0678671c8d478
  Module librt.so.1 with build-id 4761858b348db8303e872e515aa8d56c046c921c
  Module libpthread.so.0 with build-id 7fa8b52fae071a370ba4ca32bf9490a30aff31c4
  Module libdl.so.2 with build-id bb9bd2657bfba9f60bd34d2050cc63a7eb024bc4
  Module chrome without build-id.
  Stack trace of thread 2:
  #0  0x00007fdf67fa43c6 start_thread (libc.so.6 + 0x8d3c6)
  #1  0x00007fdf68029584 __clone (libc.so.6 + 0x112584)
  
  Stack trace of thread 3:
  #0  0x00007fdf67fa43c6 start_thread (libc.so.6 + 0x8d3c6)
  #1  0x00007fdf68029584 __clone (libc.so.6 + 0x112584)
  
  Stack trace of thread 1:
  #0  0x00007fdf68029576 __clone (libc.so.6 + 0x112576)
  #1  0x0000000000000000 n/a (n/a + 0x0)
  ELF object binary architecture: AMD x86-64

The started processes look like (after crash):

npm run debug
└─ node /media/data/Projects/js/ndbtest/node_modules/.bin/ndb index.js
   └─ chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disabl { ... }
      ├─ chrome --type=zygote --user-data-dir=/media/data/Projects/js/ndbtest/node_modules/carlo/lib/.local-data/profile-624492
      │  ├─ nacl_helper
      │  └─ chrome --type=zygote --user-data-dir=/media/data/Projects/js/ndbtest/node_modules/carlo/lib/.local-data/profile-624492
      └─ chrome --type=gpu-process --field-trial-handle=11608324376951962078,10158578646079337087,131072 --enable-features=NetworkService,NetworkSer { ... }

Steps to reproduce

npm init
npm install --save-dev ndb

add "debug": "ndb index.js" to package.json

echo "console.log('hi')" > index.js
npm run debug

The same happens when tried on a larger, more complex expres.js based project.

Tell us about your environment:

$ node_modules/.bin/ndb --version
v1.1.5
$ node --version
v17.4.0
$ npm --version
8.5.0
$ uname -a
Linux { pc name } 5.15.24-1-lts #1 SMP Wed, 16 Feb 2022 16:04:21 +0000 x86_64 GNU/Linux
$ chromium --version
Chromium 98.0.4758.102 Arch Linux

I tried installing google-chrome, in hope that it might install some missing packages / libraries, but nothing changed.

What is the expected result?
The NDB debugger window works, and doesn't show the 'Aw, snap!' crash text

What happens instead?
The NDB debugger window crashes with 'Aw, snap!' text

Note
90% this is not an issue with NDB, so sorry for that, but still would like to ask the community for directions

@GoranTopic
Copy link

GoranTopic commented Nov 7, 2022

Same problem on Fedora Linux 36. Is there anything to be done?

@stolpeo
Copy link

stolpeo commented Nov 21, 2022

Same problem here on Ubuntu 22.04. Has anyone found a solution?

@paulirish
Copy link
Contributor

The project hasn't been maintained since 2019, sadly. The feature set is fantastic but.. the original creator left and theres no one to maintain it.

Also.. yeah.. ndb is broken in a few ways.

Yeah you should use the --inspect-brk setup these days.

@pure-bliss
Copy link
Author

Yeah you should use the --inspect-brk setup these days.

The original reason I found ndb, is because I wanted to debug worker threads, and couldn't find any other solution back then. I didn't need to user worker threads since then, but wonder if there is a method for this

@eugeneo
Copy link

eugeneo commented Nov 24, 2022

I believe VS Code can do it and IntelliJ can do it.

@eugeneo
Copy link

eugeneo commented Nov 24, 2022

Oh, and Chrome Web Inspector.

@pure-bliss
Copy link
Author

node processes worker-threads? Neat, I'll have to look into it. Don't use vscode or intellij, but I'm sure there is a standalone solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants