Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background videos not displaying #10

Closed
NoahLutz opened this issue Oct 2, 2017 · 24 comments
Closed

Background videos not displaying #10

NoahLutz opened this issue Oct 2, 2017 · 24 comments

Comments

@NoahLutz
Copy link

NoahLutz commented Oct 2, 2017

When I restart lightdm with the doto theme, I am brought to a black screen with just the time and password input. When I type in my password and hit enter, nothing seems to happen.

I am running on Arch and bspwm.

@declantyson declantyson added the bug label Oct 2, 2017
@declantyson
Copy link
Owner

Hi @NoahLutz

Can you please post the contents of your greeter.log file?

@NoahLutz
Copy link
Author

NoahLutz commented Oct 2, 2017

Here is the greeter.log file contents.


** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-sport&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-sport&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-sport&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-news&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-news&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=ars-technica&sortBy=top due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://api.openweathermap.org/data/2.5/weather?appid=c3ec0e268239d674fbe215f89868ee73&units=metric&q=London,GB due to access control checks.

** (WebKitWebProcess:7363): WARNING **: request scheme error: https
file:///usr/share/lightdm-webkit/themes/doto/assets/widgets.js:18:17: CONSOLE ERROR XMLHttpRequest cannot load https://newsapi.org/v1/articles?apiKey=e0fddafbeb304299913237a89228f313&source=bbc-sport&sortBy=top due to access control checks.

It looked like all the errors were coming from widget.js so I commented out the newsfeed and weather calls in start.js and tried to run it again but got the same result with different errors. Here is the greeter.log with newsfeed and weather widgets commented out.


** (WebKitWebProcess:11478): CRITICAL **: lightdm_greeter_respond: assertion 'priv->n_responses_waiting > 0' failed
Gdk-Message: lightdm-webkit2-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

Gdk-Message: WebKitWebProcess: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.

@declantyson
Copy link
Owner

ok it looks like the first error you're experiencing is a duplicate of #8.

As for the second error it looks like it's a problem with webkit2gtk. What version of webkit2gtk are you running? Antergos/web-greeter#107

@NoahLutz
Copy link
Author

NoahLutz commented Oct 2, 2017

I am running webkit2gtk-2.16.6-1. I tried downgrading to webkit2gtk-2.14.2-2 like suggested in the issue you linked, but that stopped lightdm from running at all

@skrambol
Copy link
Contributor

skrambol commented Oct 7, 2017

Hi @NoahLutz kindly check my comment in #8 to solve this.

As for the password, it was working for me before, then I change something somewhere in some config and the password authentication worked. Now, I reinstalled lightdm and lightdm-webkit2-greeter to check if this problem persists and it does.

I'm trying to retrace my steps in order to make it work since I forgot to backup my config files before reinstalling.

EDIT:

A quick and simple fix for the background, you can change the assets/images/black.jpg to your preferred background image.

UPDATE:

In your /etc/lightdm/lightdm.conf set the following

[Seat:*]
# under this setting or its equivalent
# change the user-session to your preferred session
# for example:
user-session=bspwm

This should let you log-in successfully. Tell me how it goes.

@declantyson declantyson changed the title Blank login screen Background videos not displaying Oct 11, 2017
@NoahLutz
Copy link
Author

@systemplado That seems to work! I can now log in!

As you said in #8, mp4's still don't load and I checked the seat0-greeter.log file and it still has this error.

** (WebKitWebProcess:11595): CRITICAL **: lightdm_greeter_respond: assertion 'priv->n_responses_waiting > 0' failed

Not sure if this is related at all

@declantyson
Copy link
Owner

@systemplado here's the contents of my lightdm-webkit-greeter.conf

[greeter]
webkit-theme=default
font-name=Ubuntu 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=slight

It's basically the defaults (xft is for font handling only) - only other thing I can see is that I have doto installed in the default folder.

Seems stupid, but what's your permissions on the assets folder? Mine is set to 775.

@skrambol
Copy link
Contributor

@declantyson I've followed your config and still ended up not loading the background video.

Even the console/debugger did not load properly the file:
screenshot

@declantyson
Copy link
Owner

@systemplado How did you get the console to appear? I can't get it to appear with any of the normal shortcuts. Starting to think we're on different versions of something somewhere that's causing problems...

@skrambol
Copy link
Contributor

I set the debug_mode to true in my lightdm-webkit2-greeter.conf then while the greeter is running, either through log-in or by typing lightdm-webkit2-greeter in your terminal, right click then inspect element.

@declantyson
Copy link
Owner

That's really quite unusual - I don't have an inspect element item in my menu

@NoahLutz
Copy link
Author

NoahLutz commented Oct 17, 2017

Its interesting, I can enable debug mode and see the debug console, but when I go into the resources tab, like @systemplado, I see no mp4 being loaded. Theres not even the Other folder like in the picture.

Another interesting thing I noticed is that I can open index.html in a browser and the background video will load just fine.

It's seems to me like the issue is with webkit2gtk? what versions of webkit2gtk are you both running?

@skrambol
Copy link
Contributor

skrambol commented Oct 17, 2017

I'm currently using version 2.2.5 which is the same from the AUR. I'll try installing it on an Ubuntu machine (or VM) as soon as I get my hands on one.

EDIT:
My lightdm version is 1.22.0 which is given by lightdm -v
webkit2gtk is version 2.16.6-1 I'm currently updating it to the current which is 2.18.0-1 and see if the background video will load.

EDIT2:
Nothing happened when I updated to 2.18.0-1. Also, @NoahLutz in order to have the Other folder, try reloading the greeter via Right Click > Reload

@declantyson
Copy link
Owner

@NoahLutz @systemplado

lightdm version: 1.18.3
lightdm-webkit-greeter version: 0.1.2-0ubuntu3
webkit2gtk version: 2.4.11-0ubuntu0.1

So, I'm actually behind you guys on all of these things.

@NoahLutz
Copy link
Author

NoahLutz commented Oct 18, 2017

Hmm. It seems like both @systemplado and I are using lightdm-webkit2-greeter rather than lightdm-webkit-greeter. Maybe this is the issue? i tried installing lightdm-webkit-greeter from the AUR but after 4 + hrs of waiting for it to compile I gave up.

@declantyson
Copy link
Owner

declantyson commented Oct 23, 2017

Well in the process of trying to confirm this I've managed to somehow mess up lightdm on my machine entirely... will have to park this one for a bit 🙁

@joaquingx
Copy link

Exactly the same problem here 😢

@ghost
Copy link

ghost commented May 20, 2018

Same issue. Any workaround on this problem? :(

@ghost
Copy link

ghost commented May 21, 2018

Fixed the problem by installing webkitgtk. Hours of compiling is worth it. 😄 https://prnt.sc/jkvs9q

@skrambol
Copy link
Contributor

@undefinedhax great find! What is your current set-up (OS, etc.)? Can you also provide a link for webkitgtk?

@ghost
Copy link

ghost commented May 22, 2018

@systemplado Arch Linux is my OS. BSPWM as my wm. I used the webkitgtk in AUR. Also, you can use the repo archlinuxcn. It has a pre-compiled webkitgtk for less hassle in compiling. Sorry for my bad english...not my native language hehe 😁

@declantyson
Copy link
Owner

@undefinedhax Thanks! I will mark this as closed now.

@joaquingx
Copy link

Hello,

I'm installed webkitgtk but the problem persists. I think this is because my lighdtm-webkit2-greeter.conf, someone with the greeter working can share his .conf file? My .conf is:

#
# [greeter]
# debug_mode          = Greeter theme debug mode.
# detect_theme_errors = Provide an option to load a fallback theme when theme errors are detected.
# screensaver_timeout = Blank the screen after this many seconds of inactivity.
# secure_mode         = Don't allow themes to make remote http requests.
# time_format         = A moment.js format string so the greeter can generate localized time for display.
# time_language       = Language to use when displaying the time or "auto" to use the system's language.
# webkit_theme        = Webkit theme to use.
#
# NOTE: See moment.js documentation for format string options: http://momentjs.com/docs/#/displaying/format/
#

[greeter]
debug_mode          = false
detect_theme_errors = true
screensaver_timeout = 300
secure_mode         = false
time_format         = LT
time_language       = auto
webkit_theme        = doto

#
# [branding]
# background_images = Path to directory that contains background images for use by themes.
# logo              = Path to logo image for use by greeter themes.
# user_image        = Default user image/avatar. This is used by themes for users that have no .face image.
#
# NOTE: Paths must be accessible to the lightdm system user account (so they cannot be anywhere in /home)
#

[branding]
background_images = /usr/share/lightdm-webkit/themes/doto
logo              = /usr/share/pixmaps/archlinux-logo.svg
user_image        = /usr/share/pixmaps/archlinux-user.svg

@declantyson
Copy link
Owner

Hey @joaquingx

Your config looks fine.

I've just done a fresh install and found that you may need the following additional packages that aren't necessarily automatically installed with webkitgtk:

  • gstreamer1.0-libav
  • gstreamer1.0-plugins-bad-videoparsers

This is for Ubuntu 16.04 but could apply to you too.

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

No branches or pull requests

4 participants