Have issues with Glew which make XBMC not start
#1
Sad 
I am using svn revision 24919 on Gentoo via the svn ebuild. I am using the Nvidia driver version 190.42-r3 on gentoo.

The problem is when ever I try to start xbmc I get...
Code:
ERROR: Unable to create application. Exiting

I talked to bobo1on1 over in #xbmc-linux and he was the one that pointed out my problem was Glew related. Originally the log in "~/.xbmc/temp/xbmc.log" didn't have any useful info but he added a line to print out Glew's error. Unfortunately he had to leave before xbmc finished recompiling. So here is my log.
Code:
20:36:31 T:140573590083648 M:950472704  NOTICE: -----------------------------------------------------------------------
20:36:31 T:140573590083648 M:950472704  NOTICE: Starting XBMC, Platform: GNU/Linux.  Built on Nov 22 2009 (SVN:24874)
20:36:31 T:140573590083648 M:950472704  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
20:36:31 T:140573590083648 M:950472704  NOTICE: special://masterprofile/ is mapped to: /home/mythtv/.xbmc/userdata
20:36:31 T:140573590083648 M:950472704  NOTICE: special://home/ is mapped to: /home/mythtv/.xbmc
20:36:31 T:140573590083648 M:950472704  NOTICE: special://temp/ is mapped to: /home/mythtv/.xbmc/temp
20:36:31 T:140573590083648 M:950472704  NOTICE: The executable running is: /usr/share/xbmc/xbmc.bin
20:36:31 T:140573590083648 M:950472704  NOTICE: Log File is located: /home/mythtv/.xbmc/temp/xbmc.log
20:36:31 T:140573590083648 M:950472704  NOTICE: -----------------------------------------------------------------------
20:36:31 T:140573590083648 M:950009856  NOTICE: Setup SDL
20:36:31 T:140573590083648 M:949420032  NOTICE: load settings...
20:36:31 T:140573590083648 M:949420032  NOTICE: special://profile/ is mapped to: special://masterprofile/
20:36:31 T:140573590083648 M:949420032  NOTICE: loading special://masterprofile/guisettings.xml
20:36:31 T:140573590083648 M:949473280  NOTICE: Getting hardware information now...
20:36:31 T:140573590083648 M:949473280  NOTICE: Checking resolution 12
02:36:31 T:140573590083648 M:949407744  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
02:36:31 T:140573590083648 M:949407744  NOTICE: Loaded playercorefactory configuration
02:36:31 T:140573590083648 M:949407744  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
02:36:31 T:140573590083648 M:949407744  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
02:36:31 T:140573590083648 M:949407744  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
02:36:31 T:140573590083648 M:949407744  NOTICE: Default DVD Player: dvdplayer
02:36:31 T:140573590083648 M:949407744  NOTICE: Default Video Player: dvdplayer
02:36:31 T:140573590083648 M:949407744  NOTICE: Default Audio Player: paplayer
02:36:31 T:140573590083648 M:949407744  NOTICE: special://masterprofile/sources.xml
02:36:32 T:140573590083648 M:948613120   ERROR: InitRenderSystem() glewInit returned 1: Missing GL version
02:36:32 T:140573590083648 M:948613120   FATAL: CApplication::Create: Unable to init rendering system

I think the line he added printed out "ERROR: InitRenderSystem() glewInit returned 1: Missing GL version". So I don't know what could cause Missing GL version but after googling for it i didn't find any answers.

For completeness sake here is the results of my glewinfo. http://pastebin.ca/1683017
Reply
#2
still looking for a solution
Reply
#3
I have exactly the same problem here :
- gentoo latest release (update 2 days ago)

packages installed :
x11-drivers/nvidia-drivers-190.42-r3
media-libs/glew-1.5.1

compilation method :
Quote:sh bootstrap.sh
./configure --disable-joystick
make
make install

This problem can is always reproductible.

What's working / what's not :

XBMC 9.04 : OK, works perfectly
XBMC 9.11 : All version are crashing
XBMC pvr-testing rev <= 22799 : OK, works perfectly
XBMC pvr-testing rev > 22799 : All version are crashing.

The crash occurs on all release on the glewInit()

xbmc/RenderSystemGL.cpp here :

Quote: 57 GLenum err = glewInit();
58 if (GLEW_OK != err)
59 {
60 // Problem: glewInit failed, something is seriously wrong
61 CLog::Log(LOGERROR, "InitRenderSystem() glewInit returned %i: %s", err, glewGetErrorString(err));
62 return false;
63 }

here are what I was able to produce with pvr-testing rev 25030 :
log : http://pastebin.ca/1688701
backtrace : http://pastebin.ca/1688704

Anyway, as I'm not sure the log and backtrace are what developpers need, if you need more information, or a specific log / backtrace from a revision, please let me know.

Thank you
kiwi
Reply
#4
i'm just happy i'm not the only one
Reply
#5
Problem at init is still here with XBMC 9.11 branch.

Is there a good way to obtain a correct backtrace / log for this kind of bug ?

Thank you.

Tested release
Code:
Path: .
URL: http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/9.11_Camelot
Repository Root: http://xbmc.svn.sourceforge.net/svnroot/xbmc
Repository UUID: 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Revision: 25118
Node Kind: directory
Schedule: normal
Last Changed Author: wiso
Last Changed Rev: 25090
Last Changed Date: 2009-11-27 20:48:23 +0100 (Fri, 27 Nov 2009)

Log messages
Code:
00:45:16 T:3042363232 M:801107968  NOTICE: Getting hardware information now...
00:45:16 T:3042363232 M:801107968    INFO: Using digital output
00:45:16 T:3042363232 M:801107968    INFO: AC3 pass through is enabled
00:45:16 T:3042363232 M:801107968    INFO: DTS pass through is enabled
00:45:16 T:3042363232 M:801107968  NOTICE: Checking resolution 12
00:45:16 T:3042363232 M:801107968  NOTICE: Default DVD Player: dvdplayer
00:45:16 T:3042363232 M:801107968  NOTICE: Default Video Player: dvdplayer
00:45:16 T:3042363232 M:801107968  NOTICE: Default Audio Player: paplayer
00:45:16 T:3042363232 M:801107968  NOTICE: special://masterprofile/sources.xml
00:45:16 T:3042363232 M:801107968    INFO: XRANDR: /usr/local/share/xbmc/xbmc-xrandr --output default --mode 0x10c
00:45:16 T:3042363232 M:800845824    INFO: GL: Maximum texture width: 32768
00:45:16 T:3042363232 M:800845824   DEBUG: SECTION:LoadDLL(special://xbmc/system/ImageLib-i486-linux.so)
00:45:16 T:3042363232 M:800845824   DEBUG: Loading: /usr/local/share/xbmc/system/ImageLib-i486-linux.so
00:45:16 T:3042363232 M:800616448   DEBUG: GLX_EXTENSIONS: GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_EXT_texture_from_pixmap GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB GLX_ARB_get_proc_address
00:45:16 T:3042363232 M:800616448   ERROR: InitRenderSystem() glewInit returned 1: Missing GL version
00:45:16 T:3042363232 M:800616448   FATAL: CApplication::Create: Unable to init rendering system
Reply
#6
As I didn't found the bug in the trac system, I trac'ed it here :

http://trac.xbmc.org/ticket/7926
Reply
#7
I had this problem on a newly reinstalled media center, i my case the solution was re-emerge libsdl with opengl useflag.

For details see my replies on trac ticket above.
Reply
#8
I had the same problem on debian sid, with the open source radeon driver
I installed the latest git trees from (mesa, ati-radeon, xbmc etc.) but no changes.

But the following helped:

Quote:diff --git a/xbmc/RenderSystemGL.cpp b/xbmc/RenderSystemGL.cpp
index 77d5407..52e7e77 100644
--- a/xbmc/RenderSystemGL.cpp
+++ b/xbmc/RenderSystemGL.cpp
@@ -30,6 +30,8 @@
#include "utils/log.h"
#include "utils/TimeUtils.h"
#include "utils/SystemInfo.h"
+#include <GL/glew.h>
+#include <GL/glut.h>


CRenderSystemGL::CRenderSystemGL() : CRenderSystemBase()
@@ -74,6 +76,9 @@ void CRenderSystemGL::CheckOpenGLQuirks()

bool CRenderSystemGL::InitRenderSystem()
{
+ int argc=0;
+ char** argv;
+
m_bVSync = false;
m_iVSyncMode = 0;
m_iSwapStamp = 0;
@@ -83,7 +88,11 @@ bool CRenderSystemGL::InitRenderSystem()
m_maxTextureSize = 2048;
m_renderCaps = 0;

+
// init glew library
+ glutInit(&argc, argv);
+ glutCreateWindow("GLEW Test");
+
GLenum err = glewInit();
if (GLEW_OK != err)
{

And in the Makefile I had to add to OBJSXBMC
/usr/lib/libglut.a

After this everything runs fine...
Reply

Logout Mark Read Team Forum Stats Members Help
Have issues with Glew which make XBMC not start0