Litarvan / lightdm-webkit-theme-litarvan

Litarvan's LightDM HTML Theme
BSD 3-Clause "New" or "Revised" License
706 stars 73 forks source link

TypeError: undefined is not an object (evaluating 'e.item.name') #139

Open Foxite opened 2 years ago

Foxite commented 2 years ago

After installing lightdm, lightdm-webkit2-greeter, and this package, and then starting lightdm, upon pressing space or enter I get a dialog saying an error has occurred in the theme. This is logged to /var/log/lightdm/seat0-greeter.log:

file:///usr/share/lightdm-webkit/themes/litarvan/js/chunk-vendors.cc4c1bca.js:7:12046: CONSOLE ERROR TypeError: undefined is not an object (evaluating 'e.item.name')

Note that I initially installed an outdated version of this package (because the package on my distro is outdated), which caused the initial setup to be interrupted due to a different error (which has since been fixed in this repo). I have not been able to figure out how to "reset" everything, because uninstalling lightdm and its dependencies and deleting the configuration files has not caused the initial setup to be run again.

It may also be worth mentioning that while building the package, npm has to update package-lock.json because it "was made using an older version of npm". A lot is dumped to the console during the build process that I cannot analyze because it goes too fast (and I have not yet installed a console emulator, I'm doing everything from a TTY).

This error happens when I manually compile the master branch, as well when I manually compile v3.2.0 tag. (Compiling from master will cause some additional console logs to be written to the log file, which do not seem very useful to me).

chrisRidgers commented 2 years ago

Think I've run into the same problem.

Initially i had the exact same behaviour, out of date package in arch, followed by manually installed using the 3.2.0 package.

By bad luck, the entire VM got nuked and I went through the process again skipping the arch package and going directly to 3.2.0. Same behaviour.

I'm still prodding, but so far its an very minimal setup as im just tinkering with arch. Base OS, xorg, lightdm, webkit2-greeter and this theme. Not even installed a window manager yet.

Foxite commented 2 years ago

I forgot to mention that all of the stuff described in the OP was done inside a VM, I eventually decided to try this on a fresh arch install on bare metal, and this error did not happen.

This may indicate a problem caused by graphics or firmware drivers, at least the only difference between the VM and the baremetal install I can think of is that the VM didn't have an nvidia or firmware package installed. Good luck.

chrisRidgers commented 2 years ago

Maybe, but the error went away after I installed bspwm as well: i suspect it was that.

If it is, maybe a more specific error message to indicate what's going on?