xbmc crash on startup
#1
Issue
XBMC crashes with segmentation fault when launching.
debug log: http://pastebin.com/y0E9zcmv (level set to 2)

Steps to produce
1. Run xbmc
2. See the xbmc logo for about 3-4 seconds
3. XBMC dissapears and I get the following on the console:

Code:
/usr/bin/xbmc: line 137:  1299 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /root/xbmc_crashlog-20130302_145649.log

the segmentation fault number (1299 in the above example) is different everytime it crashes, though the line number in /usr/bin/xbmc is the same.(137)

Version
Linxu distribution: Linux version 3.7.9-2-ARCH (tobias@testing) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Mon Feb 25 12:29:24 CET 2013

Architecture: i686

hardware: IBM thinkpad x40

Install method
manual (I think so? - I used pacman / yaourt to install xbmc)

Backtrace
I was not able to produce one based on the instructions (did not see a core file in the folder)

Code:
[root@localhost ~]# ulimit -c unlimited
[root@localhost ~]# xbmc &
[1] 1501
[root@localhost ~]# /usr/bin/xbmc: line 137:  1510 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /root/xbmc_crashlog-20130302_151707.log

[1]+  Exit 139                xbmc
[root@localhost ~]# ls -al
total 156
drwxr-x---  5 root root  4096 Mar  2 15:17 .
drwxr-xr-x 20 root root  4096 Feb 26 02:49 ..
-rw-------  1 root root     0 Feb 26 02:52 .Xauthority
-rw-------  1 root root  3083 Mar  2 03:20 .bash_history
drwxr-xr-x  5 root root  4096 Feb 26 03:56 .config
-rw-------  1 root root    16 Feb 27 13:23 .esd_auth
drwxr-xr-x  8 root root  4096 Mar  2 13:51 .xbmc
drwxr-xr-x  2 root root  4096 Feb 26 02:53 Desktop
-rw-r--r--  1 root root 32132 Mar  2 13:56 xbmc_crashlog-20130302_135637.log
-rw-r--r--  1 root root 32131 Mar  2 14:56 xbmc_crashlog-20130302_145649.log
-rw-r--r--  1 root root 32131 Mar  2 15:10 xbmc_crashlog-20130302_151058.log
-rw-r--r--  1 root root 32131 Mar  2 15:17 xbmc_crashlog-20130302_151707.log


Steps tried
- Tried installing frodo, as well as the various ones in the AUR, such as xbmc-git.
- Tried compiling xbmc from scratch
- Line 137 in /usr/bin/xbmc corresponds to the "done" for the while loop.
Code:
while [ $(( $LOOP )) = "1" ]
do
  LOOP=0
  "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
  RET=$?
  if [ $(( $RET == 65 )) = "1" ]
  then # User requested to restart app
    LOOP=1
  elif [ $(( ($RET >= 131 && $RET <= 136) || $RET == 139 )) = "1" ]
  then # Crashed with core dump
    print_crash_report
  fi
done

- Tried running xbmc-standalone

Code:
[root@localhost ~]# xbmc-standalone
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
/usr/bin/xbmc: line 137:  1599 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /root/xbmc_crashlog-20130302_152747.log
/usr/bin/xbmc: line 137:  1644 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /root/xbmc_crashlog-20130302_152752.log
/usr/bin/xbmc: line 137:  1689 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /root/xbmc_crashlog-20130302_152756.log
XBMC has exited uncleanly 3 times in the last 12 seconds.
Something is probably wrong
[root@localhost ~]#
- Tried running as both root and user
- Tried deleting .xbmc folder

This is the first time I am installing xbmc on my archlinux box. Been fighting this for the last 2 weeks and I am close to giving up. Hope someone more knowledgeable out there can provide me with more clues to look at...

Thanks for any assistance anyone can provide!
Reply
#2
Do you have proper opengl setup?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
Nickr - I believe so. This is the output when I run glxgears

Code:
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
300 frames in 5.0 seconds = 59.818 FPS
301 frames in 5.0 seconds = 60.014 FPS
301 frames in 5.0 seconds = 60.012 FPS
301 frames in 5.0 seconds = 60.016 FPS
Reply
#4
intel gfx by chance?

my intel i845g crashes ever since upgrading to frodo.....same crash as you describe.....have not found a fix other than totally disabing video accelleration which is not cool. To test try
Code:
export LIBGL_ALWAYS_SOFTWARE=1
if it works then you have intel video card problems like me!
Reply
#5
Thanks much- That did the trick. I had found a separate fix which was to revert back to default vesa drivers.
I am looking into possible getting an external video card on the laptop to address this, but have not find one that does not requires wires/external power supplies.

Curiously- how did you find the cause? I could not find any logs that pointed the finger at video drivers.
Reply
#6
I am running Opensuse 12.3 and xbmc has been running flawlessly for months. I just got a bunch of updates that I (stupidly) accepted. Now get this core dump line line 137. I am running an Nvidia card, so not sure what the issue is. I'm running Nvdia driver 331.20 and that did not change. I DID get a newer xbmc in this batch of updates.

Running DIL (3.23.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
/usr/bin/xbmc: line 137: 4462 Segmentation fault (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Reply
#7
Why are you running as root?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#8
haha.. That is it? Why I'm running as root? I tried it as a user, I tried it as root, I tried it every way I could think to see if I could figure out if it was permissions etc. Now don't bother preaching to me about how dangerous it is to run things as root. Wink
Reply
#9
OK sorry to try to help. I did notice this in a quoted line of the output in your first post

Quote:W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).

In the meantime, try to be civil.

Oh and PS get rid of pulseaudio, it doesn't play well with XBMC, but I haven't seen it produce a crash.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#10
(2013-12-07, 06:01)lshantz Wrote: I am running Opensuse 12.3 and xbmc has been running flawlessly for months. I just got a bunch of updates that I (stupidly) accepted. Now get this core dump line line 137. I am running an Nvidia card, so not sure what the issue is. I'm running Nvdia driver 331.20 and that did not change. I DID get a newer xbmc in this batch of updates.

Running DIL (3.23.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
/usr/bin/xbmc: line 137: 4462 Segmentation fault (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS

downgrade the driver or upgrade xbmc to at least 12.3(Pre) or a gotham build
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc crash on startup0