JezerM / nody-greeter

LightDM greeter that allows to create wonderful themes with web technologies. Made in Node.js
https://web-greeter-page.vercel.app
GNU General Public License v3.0
138 stars 9 forks source link

nody-greeter --help outputs "segmentation fault (core dumped)" #58

Open lgor360 opened 6 days ago

lgor360 commented 6 days ago

I decided to check this package for errors. I ran node-greeter --help, but got this error message. I went to the logs and saw...

kernel: audit: type=1400 audit(1732117727.597:180): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=12214 comm="nody-greeter" requested="userns_create" target="unprivileged_userns"

why. does --help have to be started from root?.. AND WHY --help COMMAND USER NAMES!?

JezerM commented 6 days ago

Lol, that shouldn't happen at all. There is no need to run nody-greeter as root, so this probably mean that the build process must have failed, probably the electron compilation with node-gtk.

Could you provide your build logs? (npm run build and share the output).

lgor360 commented 6 days ago

Lol, that shouldn't happen at all. There is no need to run nody-greeter as root, so this probably mean that the build process must have failed, probably the electron compilation with node-gtk.

Could you provide your build logs? (npm run build and share the output).

okay it just shows a message like "building models..... 0" for 5 minutes and then abruptly SUCCESS! If all logs are needed, please advise whether to run only npm run rebuild or something else.

JezerM commented 6 days ago

A screenshot or the full log would be helpful.

lgor360 commented 6 days ago

A screenshot or the full log would be helpful.

just npm run build?

JezerM commented 6 days ago

Yes. You could also try to remove the build/unpacked and build/nody-asar directories before npm run build.

lgor360 commented 6 days ago

Yes. You could also try to remove the build/unpacked and build/nody-asar directories before npm run build.

logs.txt

here. please do not delete this issue :)

JezerM commented 6 days ago

Everything seems alright... Try to run npx electron . --help inside the nody-greeter repo. It should show something like this:

Captura de pantalla 2024-11-20 a la(s) 11 24 40
JezerM commented 6 days ago

If it doesn't work, then try to rebuild with npm run rebuild to rebuild electron with node-gtk. Afterwards, run npx electron . --help to check if it works.

lgor360 commented 6 days ago

Everything seems alright... Try to run npx electron . --help inside the nody-greeter repo. It should show something like this:

Captura de pantalla 2024-11-20 a la(s) 11 24 40

wait... you mean... go to the folder with the cloned repository and run this command?... ok....

JezerM commented 6 days ago

Yes

lgor360 commented 5 days ago

Yes

/home/USERNAME/nody-greeter/node_modules/electron/dist/electron exited with signal SIGSEGV

logs: kernel: audit: type=1400 audit(1732174095.111:201): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=4273 comm="electron" requested="userns_create" target="unprivileged_userns"

I did some research online about SIGSEGV and it looks like it's the same segmentation fault... noooooooooooooooooooooo :[