XmBC can not run without direct rendering
#1
Hi,
I have successfully installed xbmc on my computer. For the experimentation purpose, I have to install it on a Container created with OpenVZ, a vistualisation tool.
But when I try to run xbmc on this container, this error occurs:
Code:
Traceback (most recent call at last):
File "/usr/local/share/xbmc/FEH.py", line 169, in <module>
error("XBMC can not run without direct rendering.nnPlease install a valid opengl driver.")
File "/usr/local/share/xbmc/FEH.py", line 27, in error
if "Qt" in Output:
TypeError: argument of type 'noneType' is not iterable
Could you explain me how to install this opengl driver to solve the problem?
I have thought that I could solve the problem by X11Forwarding, but it is not the case. xbmc works perfectly on the X-Graphic-Server, but I can not start it onthe Container.
Thank you very much for your help!
Reply
#2
It says exactly what you need...

To run an OpenGL application you need OpenGL, and we also require you to have hardware support for OpenGL.

Virtualization software does not have hardware support...
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Thank you for your answer, but I don't understand what you mean by "hardware support".
My containers run on the same kernel Debian Lenny, I can use the host screen or printer from my containers, so why would it be different with a opengl driver? is it impossible to get the opengl driver from the host, using a connection like ssh or X11Forwarding, to provide the direct rendering into the containers?
Thanks a lot for your help!
Reply
#4
Virtual machines, by definition, use virtual hardware. Therefore, by design, they don't have direct access to graphics hardware. Your VM is using a virtual display adapter which obviously does not have hardware acceleration support.
Reply
#5
In fact, the openVZ virtualisation is more isolation than virtualisation, it just creates a second file system, and provides a security layout between the first one (which is the host one) and the other ones. So, I have thought that maybe there is a way to provides the direct rendering into the containers, the same way I establish an ssh-connection to run the graphic interfaces.
Thanks a lot for your answer!
Reply
#6
Strange, I received the exact same error when attempting to run xbmc on the new 9.04 minimal distribution (x32). I thought that I simply forgot to include some dependency somewhere. I eventually was forced to simply use the current development PPA for Jaunty and run sudo apt-get install xbmc. Then, I was able to startx with xbmc. I believe that the problem you are experiencing is not as isolated as you believe.
Reply
#7
Ok, I am glad to see that at least, I am not the only one who encounters this trouble;
Anyway, could you tell me more specifically how did yo manage to make xbmc run into your computer?
Even if I am on Debian, I will try to follow the same way - Debian, from which is based Ubuntu, could provides this installation with your way -
Thank you a lot for your answer!
Thanks all for your help
Reply
#8
Ran into the same problem when I upgraded to Jaunty, then let XBMC upgrade too. Notice that the complaining component is FEH.py; after messing with the ati drivers to no avail, I found the place where this script is executed in the xbmc startup script and commented it out - works!

Now, with my luck, 90% of the fixes and new functionality of 9.04 is in this script, but "just works" means more to me...
Reply
#9
It is possible to disable the FEH tests by running XBMC with --no-test. Then it will try to start XBMC, which if your system don't support XBMC fully it could crash.

Anyways. For those of you that have XBMC running properly with --no-test

Please pastebin the output of these programs:

glxinfo
xdpyinfo
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#10
Topfs2 Wrote:It is possible to disable the FEH tests by running XBMC with --no-test. Then it will try to start XBMC, which if your system don't support XBMC fully it could crash.

Anyways. For those of you that have XBMC running properly with --no-test

Please pastebin the output of these programs:

glxinfo
xdpyinfo

tried that with nx-client on two different machines but got seg faults right away Sad

BTW are those command line options for xbmc described somewhere?
thx
Reply
#11
uomiarz Wrote:tried that with nx-client on two different machines but got seg faults right away Sad

BTW are those command line options for xbmc described somewhere?
thx

I said only do the --no-test if XBMC WORKS when bypassing FEH, I was refering to butchberg wich had issues with FEH. Same with the 2 other commands.

And this is why the information is scarce about it, otherwise people will just disable the tests and complain that it doesn't work..
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#12
Balbuzard Wrote:Ok, I am glad to see that at least, I am not the only one who encounters this trouble;
Anyway, could you tell me more specifically how did yo manage to make xbmc run into your computer?
Even if I am on Debian, I will try to follow the same way - Debian, from which is based Ubuntu, could provides this installation with your way -
Thank you a lot for your answer!
Thanks all for your help

Sure thing! I'll try to be as detailed as possible. This is mostly from memory though...

First, I downloaded the 32-bit Ubuntu 9.04 Jaunty minimal cd from here.

Next, I booted from the disk and entered "cli" to start the installer and followed the on-screen instructions. The only non default thing I did was partition the volume to use ext4 instead of ext3.

Once installed and booted, I edited my sources.list to include the jaunty PPAs:

Code:
sudo nano /etc/apt/sources.list

added the following lines to the end of the file:
Code:
deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu jaunty main

Then, I performed an update:

Code:
sudo apt-get update

Don't worry about any GPG errors you get. It will still work. Besides, I don't know how to fix the error anyways... Wink

Next, I installed an ssh server so that I can connect remotely which is useful for copying and pasting stuff.

Code:
sudo apt-get install openssh-server

Once installed, I connected using putty.

Next, I upgraded my Alsa (sound) driver to 1.0.19 using the Alsa Upgrade Script.

Code:
cd ~/
sudo wget http://217.20.138.65/xbmc/AlsaUpgrade-1.0.x-rev-1.16.sh
sudo sh AlsaUpgrade-1.0.x-rev-1.16.sh -di

Type 1 and hit enter to continue with the install if asked. It will also mention a log file that it is writing to, which just happens to be the only way you can tell the progress of this script. You will need to open a new ssh connection and do this to watch the progress:

Code:
sudo tail -f /var/log/Alsa*

I usually just hit tab to complete the Alsa* string because the log file is named differently each time it is ran. You may run into a problem that I did, which is that the script attempts to connect to some ftp site that no-longer exists. I was able to use a modified version of the script HERE. You will need to log into the Ubuntu forums to get it though.

Next, I followed the instructions 2 through 8 under 'Sound' from HERE. I pretty much just followed the rest of the instruction from there actually. I would recommend using a newer NVIDIA driver than that tutorial lists though, such as the one HERE.

After finishing, I made sure to change the video player settings in XBMC to use VDPAU as the default. I hope this helps!

References:
[HOWTO] Minimal Ubuntu(Hardy/Intrepid) Install with XBMC for a HTPC
HOW-TO install XBMC for Linux on Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) step-by-step
How-To XBMC for Linux
InstallationMinimalCD
Reply
#13
Hi, Thank you a lot for your answers, I have tried the
Code:
xbmc --no-test
and it works on my container! But it's much longer in comparison with the running in the host computer.
Here is the output of the glxinfo command:
Quote:name of display: 192.168.10.1:0.0
display: 192.168.10.1:0 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGI_swap_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel® 852GM/855GM 20061017 x86/MMX/SSE2
OpenGL version string: 1.3 Mesa 7.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels, GL_EXT_point_parameters,
GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_vertex_array,
GL_3DFX_texture_compression_FXT1, GL_APPLE_packed_pixels,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
GL_NV_light_max_exponent, GL_NV_texgen_reflection,
GL_NV_texture_rectangle, GL_NV_vertex_program, GL_NV_vertex_program1_1,
GL_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x28 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x29 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x2a 24 tc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x2b 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 0 32 0 r y . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x30 24 dc 0 32 0 r . . 8 8 8 8 0 0 0 16 16 16 16 0 0 Slow
0x31 24 dc 0 32 0 r y . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x32 24 dc 0 32 0 r . . 8 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x70 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 Ncon

The text was too long to paste the both outputs
I hope it could help :-S
Thanks a lot for your help!
Reply
#14
Here is the output of the xdpyinfo command:
Quote:name of display: 192.168.10.1:0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 10402000
X.Org version: 1.4.2
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x280001f, revert to Parent
number of extensions: 33
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
Extended-Visual-Information
GLX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RANDR
RECORD
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
TOG-CUP
X-Resource
XAccessControlExtension
XC-APPGROUP
XC-MISC
XFIXES
XFree86-Bigfont
XFree86-DGA
XFree86-DRI
XFree86-Misc
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1280x1024 pixels (338x270 millimeters)
resolution: 96x96 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x72
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xfa8033
KeyPressMask KeyReleaseMask EnterWindowMask
LeaveWindowMask ExposureMask StructureNotifyMask
SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask
PropertyChangeMask ColormapChangeMask
number of visuals: 17
default visual id: 0x23
visual:
visual id: 0x23
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x25
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x26
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x27
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x28
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x29
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2b
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2c
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2d
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2e
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2f
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x30
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x31
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x32
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x70
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
Reply
#15
Please use pastebin.com or similar for big (more than 2-3 lines) pastes in the future.
Reply

Logout Mark Read Team Forum Stats Members Help
XmBC can not run without direct rendering0