System crashes on app restart

jetson nano 1st ship version

running fine, displaying node js app, which shows photos…
if I start the app from the terminal window, npm start
I can terminate the app no problems

however, if i use the PM2 (node process manager) to start, then either stop or restart (stop/then start) causes a hard kernel loop… reboot is the only way out

from /var/log/kern.log

100% repeatable. the app provides a restart mechanism after making config changes, shuts down then restarts with the new config . if I use the manual start method the app restarts fine… use pm2, crashes every time (pm2i used to start app at boot, but doesn’t matter when

Linux nano 4.9.140-tegra #1 SMP PREEMPT Tue Jul 16 17:04:49 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

Jun  7 20:13:30 nano kernel: [ 3660.870288] extcon-disp-state extcon:disp-state: cable 47 state 0
Jun  7 20:13:30 nano kernel: [ 3660.870315] Extcon AUX1(HDMI) disable
Jun  7 20:13:30 nano kernel: [ 3660.906195] tegradc tegradc.0: blank - powerdown
Jun  7 20:13:30 nano kernel: [ 3660.906279] extcon-disp-state extcon:disp-state: cable 40 state 0
Jun  7 20:13:30 nano kernel: [ 3660.906282] Extcon HDMI: HPD disabled
Jun  7 20:13:30 nano kernel: [ 3660.906311] tegradc tegradc.0: hdmi: unplugged
Jun  7 20:13:30 nano kernel: [ 3660.960573] tegradc tegradc.0: blank - powerdown
Jun  7 20:13:30 nano kernel: [ 3660.960585] tegradc tegradc.0: unblank
Jun  7 20:13:30 nano kernel: [ 3660.960619] tegradc tegradc.0: unblank
Jun  7 20:13:30 nano kernel: [ 3660.960628] tegradc tegradc.1: blank - powerdown
Jun  7 20:13:31 nano kernel: [ 3662.190752] Host read timeout at address 5458045c  < --------- see this over and over, top left corner of the screen, all black
Jun  7 20:13:31 nano kernel: [ 3662.195556] tegradc tegradc.0: blank - powerdown
Jun  7 20:13:31 nano kernel: [ 3662.195571] tegradc tegradc.0: unblank
Jun  7 20:13:31 nano kernel: [ 3662.216794] tegradc tegradc.0: nominal-pclk:297000000 parent:297000000 div:1.0 pclk:297000000 294030000~323730000
Jun  7 20:13:31 nano kernel: [ 3662.216970] tegradc tegradc.0: hdmi: tmds rate:297000K prod-setting:prod_c_hdmi_150m_300m
Jun  7 20:13:31 nano kernel: [ 3662.223334] tegradc tegradc.0: hdmi: get RGB quant from EDID.
Jun  7 20:13:31 nano kernel: [ 3662.223343] tegradc tegradc.0: hdmi: get YCC quant from EDID.
Jun  7 20:13:31 nano kernel: [ 3662.258225] extcon-disp-state extcon:disp-state: cable 47 state 1
Jun  7 20:13:31 nano kernel: [ 3662.258228] Extcon AUX1(HDMI) enable
Jun  7 20:13:31 nano kernel: [ 3662.258592] extcon-disp-state extcon:disp-state: cable 40 state 1
Jun  7 20:13:31 nano kernel: [ 3662.258596] Extcon HDMI: HPD enabled
Jun  7 20:13:31 nano kernel: [ 3662.258630] tegradc tegradc.0: hdmi: plugged
Jun  7 20:13:31 nano kernel: [ 3662.277679] tegradc tegradc.0: blank - powerdown

Can you have detail reproduce information here?

sure…

install this https://github.com/evancohen/smart-mirror
use the install script, say Yes to using pm2 and screen saver.

it will be started at the end of the script

open a browser on your pc going to http://nano_ip:8080 to open the remote config
click the gear on the top bar, right side, to open the config panel

scroll down to the bottom, hit the submit button
the app will restart

the system should crash

the app requires a microphone to work and an extension to display photos.

any ideas? would love to find a way to bypass this

Can remove the audio(microphone) component to try?

no change in behavior. no mic usage, still hangs
some process prints from top

last is the process view with the app running, starts with npm, and has the mic recorder