Kodi Community Forum

Full Version: [LINUX] Seg Fault when opening.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, I have XBMC on my main TV machine, and am now trying to get it up and running on the smaller, less powerful machine in my bedroom, all installs fine, but when I try to run it I get a seg fault.

Here is my error log:

Code:
############## XBMC CRASH LOG ###############

################ SYSTEM INFO ################
Date: Sat Mar 27 15:45:45 GMT 2010
XBMC Options:
Arch: i686
Kernel: Linux 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009
Release:
    Distributor ID:     Ubuntu
    Description:        Ubuntu 9.10
    Release:    9.10
    Codename:   karmic
############## END SYSTEM INFO ##############


############### STACK TRACE #################
=====>  Core file: /home/dave/core
        =========================================
Core was generated by `/usr/share/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x00369ed6 in glClearColor () from /usr/lib/libGL.so.1

Thread 1 (Thread 1369):
#0  0x00369ed6 in glClearColor () from /usr/lib/libGL.so.1
#1  0x08543971 in CRenderSystemGL::ResetRenderSystem(int, int, bool, float) ()
#2  0x0854a7a5 in CWinSystemX11GL::SetFullScreen(bool, RESOLUTION_INFO&, bool)
    ()
#3  0x0854762b in CWinSystemX11::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBMC_Event&)) ()
#4  0x0854b771 in CWinSystemX11GL::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBMC_Event&)) ()
#5  0x082dc974 in CApplication::Create(void*) ()
#6  0x084f7f42 in main ()
############# END STACK TRACE ###############


################# LOG FILE ##################

15:45:44 T:3078354800 M:397799424   ERROR: Failed to create common scripts symlink.
15:45:44 T:3078354800 M:397705216  NOTICE: -----------------------------------------------------------------------
15:45:44 T:3078354800 M:397705216  NOTICE: Starting XBMC, Platform: GNU/Linux.  Built on Dec 24 2009 (SVN:26018)  
15:45:44 T:3078354800 M:397705216  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
15:45:44 T:3078354800 M:397705216  NOTICE: special://masterprofile/ is mapped to: /home/dave/.xbmc/userdata
15:45:44 T:3078354800 M:397705216  NOTICE: special://home/ is mapped to: /home/dave/.xbmc
15:45:44 T:3078354800 M:397705216  NOTICE: special://temp/ is mapped to: /home/dave/.xbmc/temp
15:45:44 T:3078354800 M:397705216  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin  
15:45:44 T:3078354800 M:397705216  NOTICE: Log File is located: /home/dave/.xbmc/temp/xbmc.log
15:45:44 T:3078354800 M:397705216  NOTICE: -----------------------------------------------------------------------
15:45:44 T:3078354800 M:397340672  NOTICE: Setup SDL
15:45:44 T:3078354800 M:396365824  NOTICE: load settings...
15:45:44 T:3078354800 M:396365824  NOTICE: special://profile/ is mapped to: special://masterprofile/
15:45:44 T:3078354800 M:396365824  NOTICE: loading special://masterprofile/guisettings.xml
15:45:44 T:3078354800 M:396406784  NOTICE: Getting hardware information now...
15:45:44 T:3078354800 M:396406784  NOTICE: Checking resolution 12
15:45:44 T:3078354800 M:396447744  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
15:45:44 T:3078354800 M:396447744  NOTICE: Loaded playercorefactory configuration
15:45:44 T:3078354800 M:396447744  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
15:45:44 T:3078354800 M:396447744  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
15:45:44 T:3078354800 M:396447744  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
15:45:44 T:3078354800 M:396447744  NOTICE: Default DVD Player: dvdplayer
15:45:44 T:3078354800 M:396447744  NOTICE: Default Video Player: dvdplayer
15:45:44 T:3078354800 M:396447744  NOTICE: Default Audio Player: paplayer
15:45:44 T:3078354800 M:396447744  NOTICE: special://masterprofile/sources.xml


############### END LOG FILE ################

############ END XBMC CRASH LOG #############

This leads me to think that it's graphics related.

Output from lspci is:

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01)

Is this card not supported?
It's probably graphics related, can you run any other apps that use opengl like glxgears?
I wouldn't bet on getting a good result with such an old card though.
Hi, and thanks for the very quick reply!

I can run MythTV Frontend on there and the Xubuntu animated loading screen is fine too.

I can't test glx gears on there just yet as the kids have fallen asleep in my bed, but will test that in the morning. However, compiz was working on the machine not so long ago - I took it off as it interfered with myth somewhat.

If not, I could buy a nvidia card - I assume I wouldn't need top of the range?
Just tried glxgears and it works fine - not super smooth, but it's working and looks good.
Can you turn on debug logging in advancedsettings.xml and post another crashlog.
If glxgears is not running smooth then don't expect xbmc to get more than 3 fps.
If you want to get good performance get an nvidia card with vdpau support.
Hmmm...I don't appear to have advancedsettings.xml on that machine.
I have the same problem -- coincidentally I have the same graphics card also. I stuck in debug logging as directed above but the log doesn't appear to turn up any more info than what was posted by the original poster.

I'm assuming I got the tags right for debug setting, but if not please correct me and I'll repost a different log.

<advancedsettings>
<loglevel>1</loglevel>
</advancedsettings>


Code:
############## XBMC CRASH LOG ###############

################ SYSTEM INFO ################
Date: Mon Mar 29 19:09:02 EST 2010
XBMC Options:
Arch: i686
Kernel: Linux 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010
Release:
    Distributor ID:    Ubuntu
    Description:    Ubuntu 9.10
    Release:    9.10
    Codename:    karmic
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/myth/core
        =========================================
Core was generated by `/usr/share/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  0x00414ed6 in glClearColor () from /usr/lib/libGL.so.1

Thread 1 (Thread 3825):
#0  0x00414ed6 in glClearColor () from /usr/lib/libGL.so.1
#1  0x08543971 in CRenderSystemGL::ResetRenderSystem(int, int, bool, float) ()
#2  0x0854a7a5 in CWinSystemX11GL::SetFullScreen(bool, RESOLUTION_INFO&, bool)
    ()
#3  0x0854762b in CWinSystemX11::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBMC_Event&)) ()
#4  0x0854b771 in CWinSystemX11GL::CreateNewWindow(CStdStr<char> const&, bool, RESOLUTION_INFO&, bool (*)(XBMC_Event&)) ()
#5  0x082dc974 in CApplication::Create(void*) ()
#6  0x084f7f42 in main ()
############# END STACK TRACE ###############

################# LOG FILE ##################

19:09:02 T:3077556080 M:1877483520   ERROR: Failed to create common scripts symlink.
19:09:02 T:3077556080 M:1877483520  NOTICE: -----------------------------------------------------------------------
19:09:02 T:3077556080 M:1877483520  NOTICE: Starting XBMC, Platform: GNU/Linux.  Built on Dec 24 2009 (SVN:26018)
19:09:02 T:3077556080 M:1877483520  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
19:09:02 T:3077556080 M:1877483520  NOTICE: special://masterprofile/ is mapped to: /home/myth/.xbmc/userdata
19:09:02 T:3077556080 M:1877483520  NOTICE: special://home/ is mapped to: /home/myth/.xbmc
19:09:02 T:3077556080 M:1877483520  NOTICE: special://temp/ is mapped to: /home/myth/.xbmc/temp
19:09:02 T:3077556080 M:1877483520  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
19:09:02 T:3077556080 M:1877483520  NOTICE: Log File is located: /home/myth/.xbmc/temp/xbmc.log
19:09:02 T:3077556080 M:1877483520  NOTICE: -----------------------------------------------------------------------
19:09:02 T:3077556080 M:1877229568  NOTICE: Setup SDL
19:09:02 T:3077556080 M:1876279296  NOTICE: load settings...
19:09:02 T:3077556080 M:1876279296  NOTICE: special://profile/ is mapped to: special://masterprofile/
19:09:02 T:3077556080 M:1876279296  NOTICE: loading special://masterprofile/guisettings.xml
19:09:02 T:3077556080 M:1876279296  NOTICE: Getting hardware information now...
19:09:02 T:3077556080 M:1876279296  NOTICE: Checking resolution 12
19:09:02 T:3077556080 M:1876279296  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
19:09:02 T:3077556080 M:1876279296  NOTICE: Loaded playercorefactory configuration
19:09:02 T:3077556080 M:1876279296  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
19:09:02 T:3077556080 M:1876279296  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
19:09:02 T:3077556080 M:1876279296  NOTICE: Loaded advancedsettings.xml from special://profile/advancedsettings.xml
19:09:02 T:3077556080 M:1876279296  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <loglevel>1</loglevel>
                                            </advancedsettings>
19:09:02 T:3077556080 M:1876279296  NOTICE: Getting hardware information now...
19:09:02 T:3077556080 M:1876279296    INFO: Using analog output
19:09:02 T:3077556080 M:1876279296    INFO: AC3 pass through is enabled
19:09:02 T:3077556080 M:1876279296    INFO: DTS pass through is enabled
19:09:02 T:3077556080 M:1876279296  NOTICE: Checking resolution 12
19:09:02 T:3077556080 M:1876279296  NOTICE: Default DVD Player: dvdplayer
19:09:02 T:3077556080 M:1876279296  NOTICE: Default Video Player: dvdplayer
19:09:02 T:3077556080 M:1876279296  NOTICE: Default Audio Player: paplayer
19:09:02 T:3077556080 M:1876279296  NOTICE: special://masterprofile/sources.xml
19:09:02 T:3077556080 M:1876279296    INFO: XRANDR: /usr/share/xbmc/xbmc-xrandr --output default --mode 0x74


############### END LOG FILE ################

############ END XBMC CRASH LOG #############
Right after the xrandr call, that's interesting.
I changed out my video card to an NVidia A320 and the problem went away