PDA

View Full Version : Fatal Error on startup when executed from BUILD dir


doesntcount
2008-09-24, 03:03
I was previously running make manually and using the xbmc.bin that was built in my svn directory (/usr/src/XBMC/), until I learned about the build.sh script. When I build with that and run xbmc.bin that lives in the BUILD directory, xbmc crashes like this:

$ ./xbmc.bin
The XBMC_HOME environment variable is not set.
++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading
Fatal error encountered, aborting
Error log at /usr/src/XBMC/BUILD/xbmc.log
Aborted (core dumped)


Here's the backtrace:

(gdb) bt
#0 0x00002ad6f561f3c5 in raise () from /lib/libc.so.6
#1 0x00002ad6f562073e in abort () from /lib/libc.so.6
#2 0x000000000087a20d in CApplication::FatalErrorHandler (this=0x13c66a0,
InitD3D=false, MapDrives=false, InitNetwork=true) at Application.cpp:455
#3 0x000000000087b199 in CApplication::Create (this=0x13c66a0, hWnd=0x0)
at Application.cpp:895
#4 0x0000000000afadeb in main (argc=1, argv=0x7fffba98aa28)
at XboxMediaCenter.cpp:102
(gdb)

And here's what's in the log:

23:48:35 T:1580383680 M:156844032 WARNING: Emergency recovery console starting...

Full log at: http://pastebin.ca/1209877

It seems to have something to do with permissions. When I diff the binaries in the /usr/src/XBMC and /usr/src/XBMC/BUILD directories, they're the same. If I copy the binary to another location (/tmp, etc), the crash still happens so it seems it needs to live in /usr/src/XBMC for some reason. Anybody know what this reason is?


SVN: 15668
Linux 2.6.24-gentoo-r7 x86_64

jmarshall
2008-09-24, 03:13
The XBMC_HOME environment variable is not set. Simple as that. Set it to wherever you are running XBMC from and it'll be all good.

Yes, it's not pretty, but atm, you need it set in order to run, and it will abort if not.

doesntcount
2008-09-24, 03:57
I had thought the same thing and tried setting the env var but it didn't work:

$ export XBMC_HOME=/usr/src/XBMC/BUILD/
$ ./xbmc.bin
++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading
Fatal error encountered, aborting
Error log at /usr/src/XBMC/BUILD//xbmc.log
Aborted (core dumped)

althekiller
2008-09-24, 04:08
PLEASE DON'T USE BUILD.SH! See README.linux for appropriate build instructions!

doesntcount
2008-09-24, 04:12
I see. I read a bunch of posts suggesting it as a method for building and assumed it was the official method. Perhaps the script should be removed from SVN if it is as broken as it is.

kimbecause
2008-11-17, 04:26
My two cents:
I compiled xbmc from svn from about 2 weeks ago (./configure -> make && make install) and got the same problem with the installed binaries.

I found the problem though to be with the permissions ... when I run as sudo it worked ...

tslayer
2008-11-17, 04:55
You should NEVER have to run as root.

althekiller
2008-11-17, 05:00
You should NEVER have to run as root.
NEVER! EVER! You really need to sort out the root cause rather than brute forcing an unsafe solution.