Kodi Community Forum

Full Version: instant crash on kubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Platform: Kubuntu 8.04
Architecture: i686 (amd64 running i386)
Xbmc: from PPA - latest version 8.10final1_hardy4 (i386)
Debug log: http://pastebin.com/d236d0d7e
Backtrace: http://pastebin.com/m19d72a38

I cannot get xbmc running - the logo appears but almost instantly xbmc crashes. I have GL and Direct Rendering.
I recently reinstalled this system due to a kernel problem. The system should be fairly identical to what it was before, except for the problematic kernel modules, and yet I had it running previously but not anymore. I removed the mediastream skin in one experiment to find the problem, and now it can't be reinstalled (moved to another repo?), so the logs complain but seem to fallback nicely to pm3.

The last logged event in Debug is a GET of weather data. Does that mean anything to anyone? Can i turn off weather somehow?

I don't have any important reasons for running i386 and not amd64, so if there is any hope of improved performance I'll gladly reinstall again.

Hope someone can help me!

kevin

[Edit: Problem solved by advice from tslayer - removed "WINS" from a line in "/etc/nsswitch.conf" ]
Run it from a terminal so you can see the stdout output. Does anything get logged when you do this?
Forgot that, but i see nothing really interesting here, except maybe that "realloc(): invalid old size"?

Code:
kevin@chief:~/Desktop$ xbmc
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.ScreenSaver was not provided by any .service files
*** glibc detected *** /usr/share/xbmc/xbmc.bin: realloc(): invalid old size: 0x08bb2b18 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7497803]
/lib/tls/i686/cmov/libc.so.6(realloc+0x10b)[0xb749975b]
/lib/libnss_wins.so.2(Realloc+0x8b)[0xb446a0eb]
/lib/libnss_wins.so.2(realloc_array+0x43)[0xb446a1d3]
/lib/libnss_wins.so.2(debug_add_class+0x89)[0xb44526e9]
/lib/libnss_wins.so.2(debug_init+0x88)[0xb4452878]
/lib/libnss_wins.so.2(setup_logging+0x22)[0xb44528b2]
/lib/libnss_wins.so.2(_nss_wins_gethostbyname_r+0x2f2)[0xb43fd862]
/lib/tls/i686/cmov/libc.so.6(gethostbyname_r+0x198)[0xb75186a8]
/lib/tls/i686/cmov/libc.so.6(gethostbyname+0xd8)[0xb7517f58]
/usr/share/xbmc/xbmc.bin(_ZN5CHTTP7ConnectEv+0x374)[0x8997f04]
/usr/share/xbmc/xbmc.bin(_ZN5CHTTP4OpenERKSsPKcS3_+0x118)[0x8998318]
/usr/share/xbmc/xbmc.bin(_ZN5CHTTP3GetERKSsRSs+0x44)[0x8999e74]
/usr/share/xbmc/xbmc.bin(_ZN24CBackgroundWeatherLoader14GetInformationEv+0x12b)[0x89de6bb]
/usr/share/xbmc/xbmc.bin(_ZN17CBackgroundLoader7ProcessEv+0x19)[0x89a17f9]
/usr/share/xbmc/xbmc.bin(_ZN7CThread12staticThreadEPv+0x6f)[0x89cac0f]
/usr/share/xbmc/xbmc.bin[0x8953fc4]
/usr/lib/libSDL-1.2.so.0[0xb785f1ab]
/usr/lib/libSDL-1.2.so.0[0xb78abbbd]
/lib/tls/i686/cmov/libpthread.so.0[0xb730a4fb]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7500e5e]
======= Memory map: ========
08048000-08b97000 r-xp 00000000 08:31 764730     /usr/share/xbmc/xbmc.bin
08b97000-08bce000 rwxp 00b4f000 08:31 764730     /usr/share/xbmc/xbmc.bin
08bce000-0903d000 rwxp 08bce000 00:00 0          [heap]
b4200000-b4221000 rwxp b4200000 00:00 0
b4221000-b4300000 ---p b4221000 00:00 0
b43db000-b44b0000 r-xp 00000000 08:31 4120806    /lib/libnss_wins.so.2
b44b0000-b44ba000 rwxp 000d4000 08:31 4120806    /lib/libnss_wins.so.2
b44ba000-b44cb000 rwxp b44ba000 00:00 0
b44da000-b44db000 ---p b44da000 00:00 0
b44db000-b4cdb000 rwxp b44db000 00:00 0
b4cdb000-b4d03000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b4d03000-b4d2b000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b4d2b000-b4d53000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b4d53000-b4d54000 ---p b4d53000 00:00 0
b4d54000-b5554000 rwxp b4d54000 00:00 0
b5554000-b5754000 rwxs e8213000 00:0e 14336      /dev/nvidia0
b575e000-b5786000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b5786000-b5795000 r-xp 00000000 08:31 764014     /usr/share/xbmc/skin/PM3.HD/fonts/humanist_521_bt.ttf
b5795000-b57a4000 r-xp 00000000 08:31 764015     /usr/share/xbmc/skin/PM3.HD/fonts/humanist_521_condensed_bt.ttf
b57a4000-b57cc000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b57cc000-b57f4000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b57f4000-b581c000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b581c000-b5844000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b5844000-b586c000 r-xp 00000000 08:31 764010     /usr/share/xbmc/skin/PM3.HD/fonts/LiberationSans-Regular.ttf
b586c000-b586d000 r-xp 00000000 08:31 582134     /usr/lib/gconv/ISO8859-1.so
b586d000-b586f000 rwxp 00000000 08:31 582134     /usr/lib/gconv/ISO8859-1.so
b586f000-b5962000 r-xp 00000000 08:31 764844     /usr/share/xbmc/system/ImageLib-i486-linux.so
b5962000-b5969000 rwxp 000f3000 08:31 764844     /usr/share/xbmc/system/ImageLib-i486-linux.so
b5969000-b596a000 rwxp b5969000 00:00 0
b596e000-b596f000 rwxs 00000000 00:09 12419075   /SYSV00000000 (deleted)
b596f000-b5970000 rwxs 00000000 00:09 12386306   /SYSV00000000 (deleted)
b5970000-b59b0000 rwxs d70ad000 00:0e 14336      /dev/nvidia0
b59b0000-b5ab0000 rwxs e8112000 00:0e 14336      /dev/nvidia0
b5ab0000-b5bb0000 rwxs e8011000 00:0e 14336      /dev/nvidia0
b5bb0000-b5c14000 rwxp 00000000 00:0e 1092       /dev/zero
b5c15000-b5c3Aborted (core dumped)
Probably going to be a 64bit issue. We're back to no devs with a 64bit dev environment, so best bet is to install 32bit kubuntu (YUCK! KDE).
But that's exactly what I've got, innit? i386 on an i686. It's a kubu since that's what I've always used. My previous and unproblematic install on the same machine may well have been 64bit, I am really not sure. I've downloaded xbmc live, will try that when I have time. That should give me some hints.

And proof:
Code:
kevin@chief:~/Desktop$ uname -m
i686
sovietfunk Wrote:But that's exactly what I've got, innit? i386 on an i686.

And I prove to myself yet again that I shouldn't try to answer questions immediately after waking up...

Looks like your skin is set to mediastream, but it isn't installed properly (it belongs in ~/.xbmc/skin not /usr/share/xbmc/skin). Though that shouldn't cause a crash unless PM3.HD is also not installed correctly. I'd recommend reinstalling PM3.HD in apt (or w/e the gui is in kubuntu) and deleting ~/.xbmc/userdata/guisettings.xml .
Ok, I went one further on that and did "apt-get remove --purge xbmc*" after backing up the files i had altered, such as Lircmap.xml. I moved ˝/.xbmc to a safe haven elsewhere so xbmc would generate a fresh dir. Then I reinstalled xbmc, xbmc-common, xbmc-skin-pm3* and all deps which also went out with the --purge. There's only the slightest change in the logs now.

The problem started before Mediastream was lost (i'm still guessing moved to a different repository but i haven't bothered to find out..)

Here's the log of the first run after the purge:
http://www.pastebin.ca/1262169

Subsequent runs are ending pretty much on the same note but the weather data fetch last, as before.

This is all a bit beyond my insight. I have downloaded the Live CD and will give it a whirl if I have time today. Hopefully it has an ssh server on it so i can gather something relevant.
Check in the nvidia-settings app what the color depth is ("X Screen" tab under the "X Server Display Configuration" section), it should be 24bit, anything lower will cause problems. I think you're further along in the startup process though. Is XBMC generating core files? A backtrace is next logical step, see http://forum.xbmc.org/showthread.php?tid=34655.
Isn't this the issue where WINS is set in the /etc/nsswitch.conf?

If you have it in there, please remove it.
Big Grin Amazing. That was it. When I checked in here, I was just in the final seconds of backing up before installing the LiveCD to the hdd. I knew you were right the moment i read it - i once followed a guide to automounting samba shares (on ubuntuforums) which instructed me to add WINS to that line in nsswitch...

Thank you!
You're welcome. Looks like some ubuntu/linux bug... Other programs run into the same issue...

Glad it's working now for you.