Open IanTrudel opened 2 years ago
That is very strange. If you run Xephyr w just a terminal in it, does it work? If you then start glass-renderer from the terminal, does that trigger the bug?
No, it doesn't. I'm getting a black screen though. There was an xterm opened and it seems to be behind the black screen. Opened another and it doesn't show either. I tried both starting from an xterm within Xephyr and from an outside terminal (with a DISPLAY env set to :100). No errors, just black screen.
Black screen is expected in this mode: The renderer doesn't have any desktop setup properties to tell it what to render.
Next step would be to run glass-theme before the renderer from the terminal. That should give you some graphics... hopefully.
Running glass-theme results in:
Traceback (most recent call last):
File "/home/ian/Workspace/InfiniteGlass/./build/env/bin/glass-theme", line 33, in <module>
sys.exit(load_entry_point('glass-theme', 'console_scripts', 'glass-theme')())
File "/home/ian/Workspace/InfiniteGlass/glass-theme/glass_theme/__init__.py", line 14, in main
with InfiniteGlass.Display() as display:
File "/home/ian/Workspace/InfiniteGlass/glass-lib/InfiniteGlass/display.py", line 114, in display_exit
raise exc
File "/home/ian/Workspace/InfiniteGlass/glass-theme/glass_theme/__init__.py", line 24, in main
cls(display, **config.get("args", {}))
File "/home/ian/Workspace/InfiniteGlass/glass-theme/glass_theme/default.py", line 22, in __init__
self.setup_splash_animation()
File "/home/ian/Workspace/InfiniteGlass/glass-theme/glass_theme/default.py", line 158, in setup_splash_animation
anim = self.display.root["IG_ANIMATE"]
File "/home/ian/Workspace/InfiniteGlass/glass-lib/InfiniteGlass/window.py", line 59, in window_getitem
raise KeyError("Window %s has no property %s" % (self.__window__(), name))
KeyError: 'Window 1326 has no property IG_ANIMATE'
Ah, that's because glass-animator isn't running, which is ok. You can set the mode to no_splash in your theme.yaml see if that works...
And... we have progress! What are the artifacts? Doesn't seem quite right.
That looks distinctly wrong. Never seen! What version of Xephyr etc are you running? I'd like to try to reproduce this!
That looks distinctly wrong. Never seen! What version of Xephyr etc are you running? I'd like to try to reproduce this!
xorg-server-xephyr 21.1.4-1 (xorg)
I tried several applications and a couple of games on Xephyr just to make sure. Seems to be working fine otherwise.
The original problem seem to be some X server / xinit issue, not really directly InfiniteGlass related, see https://forums.linuxmint.com/viewtopic.php?t=254651
The following reproduces the error:
redhog@glittertind:~$ startx -- /usr/bin/Xephyr :100
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
xinit: connection to X server lost
waiting for X server to shut down
Couldn't get a file descriptor referring to the console
redhog@glittertind:~$
(note: no InfiniteGlass involved).
Reproduced the test above:
startx -- /usr/bin/Xephyr :100
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
/etc/X11/xinit/xinitrc: ligne 51: twm : commande introuvable
/etc/X11/xinit/xinitrc: ligne 52: xclock : commande introuvable
Installed the missing twm and xclock packages:
startx -- /usr/bin/Xephyr :100
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
twm: created fontset with 10 fonts (7 missing) for "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
twm: created fontset with 10 fonts (7 missing) for "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
twm: created fontset with 10 fonts (7 missing) for "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
twm: created fontset with 10 fonts (7 missing) for "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
twm: created fontset with 10 fonts (7 missing) for "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
twm: created fontset with 2 fonts (15 missing) for "fixed"
So maybe that's not the real error, and it kinda works anyway, and then something else breaks?
I have bugfixed run in docker! Pull the newest version, make sure to delete any old docker image and container and try run it!
InfiniteGlass fails to start withtin Xephyr, see log below. There might be some dependency for InifiniteGlass missing on my machine but Xephyr runs fine on its own. I have tried with and without an external monitor attached.