Kodi Community Forum

Full Version: svn Version crashing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I used this script to build xbmc for opensuse 11.0, 64bit:
svn co https://xbmc.svn.sourceforge.net/svnroot.../linuxport
cd linuxport/XBMC
make distclean
CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include"
export CFLAGS
./configure --enable-halmount --disable-pulse --prefix=/usr
CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include" make

This works fine until recent svn versions. As soon as I try to play mp3 or video files xbmc crashes and I only see strange things on tv. There is nothing in the log file:
16:45:29 T:3636607040 M:2479575040 NOTICE: -----------------------------------------------------------------------
16:45:29 T:3636607040 M:2479575040 NOTICE: Starting XBMC, Platform: GNU/Linux. Built on Apr 9 2009 (SVN:19351)
16:45:29 T:3636607040 M:2479575040 NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
16:45:29 T:3636607040 M:2479575040 NOTICE: special://masterprofile/ is mapped to: /var/autologin/.xbmc/userdata
16:45:29 T:3636607040 M:2479575040 NOTICE: special://home/ is mapped to: /var/autologin/.xbmc
16:45:29 T:3636607040 M:2479575040 NOTICE: special://temp/ is mapped to: /var/autologin/.xbmc/temp
16:45:29 T:3636607040 M:2479575040 NOTICE: The executable running is: /usr/share/xbmc/xbmc.bin
16:45:29 T:3636607040 M:2479575040 NOTICE: Log File is located: /var/autologin/.xbmc/temp/xbmc.log
16:45:29 T:3636607040 M:2479575040 NOTICE: -----------------------------------------------------------------------

in .xsession-errors I got this:
The XBMC_HOME environment variable is not set.
Creating link /var/autologin/.kde/socket-FILE.
CRITSEC[0x12308e8]: Trying to enter destroyed section.
CRITSEC[0x12308e8]: Trying to leave destroyed section.
ALSA lib pcm_dmix.c:996Sadsnd_pcm_dmix_open) unable to open slave
can't create mcop directory

Looks alittle bit strange to me because I'm not running kde or any displaymanager. I start xbmc wrong .xinitrc

Any idea what is wrong?

Should I try a beta nvidia driver? I still use 180.
I've just updated to nvidia driver 185. It still crashes.
This is the last output of the logfile:

15:24:13 T:1063045184 M:3038175232 DEBUG: Update - NEW at 108498:00000000e8963ac5 00 OK mceusb (OK)
15:24:13 T:1063045184 M:3038175232 DEBUG: OnKey: 11 pressed, action is 7
15:24:13 T:1063045184 M:3038175232 DEBUG: new file set audiostream:0
15:24:13 T:1063045184 M:3038175232 DEBUG: CPlayerCoreFactory::GetPlayers(/home/public/disk/My Music/Electronica/can/Can Casar Herbstzeitlose.mp3)
15:24:13 T:1063045184 M:3038175232 DEBUG: SECTION:LoadDLL(special://xbmc/system/players/paplayer/MADCodec-x86_64-linux.so)
15:24:13 T:1063045184 M:3038175232 DEBUG: Loading: /usr/share/xbmc/system/players/paplayer/MADCodec-x86_64-linux.so
15:24:13 T:1063045184 M:3038326784 INFO: MP3Codec: Loaded decoder at 0x1fb8ac0
15:24:13 T:1063045184 M:3038326784 DEBUG: SECTION:LoadDLL(special://xbmc/system/players/paplayer/MACDll-x86_64-linux.so)
15:24:13 T:1063045184 M:3038326784 DEBUG: Loading: /usr/share/xbmc/system/players/paplayer/MACDll-x86_64-linux.so
15:24:14 T:1063045184 M:3022495744 DEBUG: CFileCache::Open - opening </home/public/disk/My Music/Electronica/can/Can Casar Herbstzeitlose.mp3> using cache
15:24:14 T:1195948368 M:3022495744 DEBUG: Running thread 1195948368
15:24:14 T:1195948368 M:3022598144 DEBUG: thread start, auto delete: 0
15:24:14 T:1063045184 M:3023077376 INFO: PAPlayer: Playing /home/public/disk/My Music/Electronica/can/Can Casar Herbstzeitlose.mp3
15:24:14 T:1063045184 M:3023077376 DEBUG: CALSADirectSound::CALSADirectSound - Channels: 2 - SampleRate: 44100 - SampleBit: 16 - Resample false - Codec - IsMusic true - IsPassthrough false - audioDevice: default
15:24:14 T:1063045184 M:3022012416 DEBUG: Initialize - using alsa device default
15:24:14 T:1063045184 M:3022012416 ERROR: Initialize - device default busy retrying...
15:24:14 T:1063045184 M:3022016512 ERROR: Initialize - pcm_open_lconf, alsa error: -16 - Device or resource busy
15:24:14 T:1063045184 M:3021131776 ERROR: (pthread_mutex_destroy(&m_mutex)): [XCriticalSection.cpp:86] 16


I still can't understand the alsa errors because I can hear clicking noises when using the remote so alsa should work.

Any ideas?
Please follow the sticky titled "howto post problems in a useful manner". And quit pasting logs in the forums, there are sites for that (see aforementioned sticky).
OK

My system is:

Opensuse 11.0, x86_64
Nvidia 9500, driver 185.19
Kernel 2.6.28-default
Build svn version via own build script:
svn co https://xbmc.svn.sourceforge.net/svn...ches/linuxport
cd linuxport/XBMC
make distclean
CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include"
export CFLAGS
./configure --enable-halmount --disable-pulse --prefix=/usr
CFLAGS="-I/usr/lib64/dbus-1.0/include -I/usr/lib64/glib-2.0/include" make

Related versions: I think every svn version since merge of vdpau.

Problem: As soon as I try to play any files (audio/video) xbmc crashes.
There is no sound output. Sometimes the screen is black execpt mouse coursor, sometimes it looks like the screen was splitted in squares which have been shuffeled.

It also crashes when screen resolution should be changed.

Crash Report: http://pastebin.com/m1096b1bd
I was having crashing problems when I tried to scan for new content at start up. I turned that off and it seems to have fixed it.
No, that didn't help Sad

Now I have a complete crash log. I don't know why I didn't get it. I'm sorry about that.
http://pastebin.com/m19d6f73b

I've started xbmc from console to get some output from stderr:
SEC[0x12309e8]: Trying to leave destroyed section.
CRITSEC[0x12308e8]: Trying to leave destroyed section.
CRITSEC[0x1232de0]: Trying to enter destroyed section.
CRITSEC[0x1232de0]: Trying to leave destroyed section.

Output of core dump: http://pastebin.com/m27ff11c2
Shouldn't be there funcion which have been called instead of ??

How can I get a segmentation fault when it us run on the same machine on which xbmc has been compiled?
You specified the wrong binary.

You need to use : /usr/share/xbmc/xbmc.bin

Not /usr/bin/xbmc
/usr/bin/xbmc is a hardlink isn't it?

I was able to get a little bit closer. The problem is related to the sound device.
I use an onboard hda card with 6ch analog output.
With r18029 of the vdpau branch I was able to use an analog device named "surround51" 2ch output was directed to all boxes and ac3 sound is working well.

When I try r19353 I can hear click noises from menu but as soon as I try to play a file I get "Failed to initialize audio hardware" popup. When I run artsd before xbmc the audio device seems to useable I get sound. Unfortunatly I always get a 2ch to 5.1ch upmix. When I try to play a ac3 sound onle left and right channel of the soundfile are mapped to all 5.1 speakers. I have an ac3 testfile. When the center speaker should make noise there is nothing.
With r19353 I have to use sounddevice "default". When I try surround51 I get an hardware error again.

I have to do more investigation to understand all of this ...
no, /usr/bin/xbmc is a sh script