Problem with SuperTuxKart/Irrlicht on FreeBSD

Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby xeno74 » 07 Apr 2010, 23:16

Hi,

SuperTuxKart compiled without problems on FreeBSD :) But there are problems with starting of SuperTuxKart:

{l Code}: {l Select All Code}
Assertion failed: (!(index>=used)), function operator[], file ../../include/irrString.h, line 338.
Abort trap: 6


System: FreeBSD 8.0 i386 with Irrlicht 1.7.1

What can I do?
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby hiker » 08 Apr 2010, 02:27

xeno74 {l Wrote}:What can I do?

FreeBSD is not officially supported, so not sure if we can do anything about this - but at least send us a stack trace and any output to stdout.

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby xeno74 » 08 Apr 2010, 09:53

hiker {l Wrote}:
xeno74 {l Wrote}:What can I do?

FreeBSD is not officially supported, so not sure if we can do anything about this - but at least send us a stack trace and any output to stdout.

Cheers,
Joerg


Hi Joerg

Revision 5131 with Irrlicht Engine version 1.7.1

compile ok
link ok

file supertuxkart

{l Code}: {l Select All Code}
supertuxkart: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), not stripped


ldd supertuxkart

{l Code}: {l Select All Code}
supertuxkart:
        libthr.so.3 => /lib/libthr.so.3 (0x2825c000)
        libGL.so.1 => /usr/local/lib/libGL.so.1 (0x28271000)
        libopenal.so.1 => /usr/local/lib/libopenal.so.1 (0x28313000)
        libvorbisfile.so.6 => /usr/local/lib/libvorbisfile.so.6 (0x28357000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2835f000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28368000)
        libIrrlicht.so.1.7 => /usr/local/lib/libIrrlicht.so.1.7 (0x2845e000)
        libXrandr.so.2 => /usr/local/lib/libXrandr.so.2 (0x288fb000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x28902000)
        libm.so.5 => /lib/libm.so.5 (0x289f6000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28a0f000)
        libc.so.7 => /lib/libc.so.7 (0x28a1a000)
        libGLcore.so.1 => /usr/local/lib/libGLcore.so.1 (0x28b32000)
        libnvidia-tls.so.1 => /usr/local/lib/libnvidia-tls.so.1 (0x29783000)
        libm.so.3 => /usr/local/lib/compat/libm.so.3 (0x29785000)
        libXext.so.6 => /usr/local/lib/libXext.so.6 (0x297a0000)
        libX11.so.6 => /usr/local/lib/libX11.so.6 (0x297b7000)
        librt.so.1 => /usr/lib/librt.so.1 (0x298cd000)
        libvorbis.so.4 => /usr/local/lib/libvorbis.so.4 (0x298d2000)
        libogg.so.6 => /usr/local/lib/libogg.so.6 (0x298fa000)
        libXxf86vm.so.1 => /usr/local/lib/libXxf86vm.so.1 (0x298ff000)
        libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x29904000)
        libxcb.so.2 => /usr/local/lib/libxcb.so.2 (0x2990c000)
        libXau.so.6 => /usr/local/lib/libXau.so.6 (0x29923000)
        libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x29926000)
        libpthread-stubs.so.0 => /usr/local/lib/libpthread-stubs.so.0 (0x2992b000)
        librpcsvc.so.5 => /usr/lib/librpcsvc.so.5 (0x2992d000)


./supertuxkart

{l Code}: {l Select All Code}
Irrlicht Engine version 1.7.1
FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD i386
Data files will be fetched from: '..'
Irrlicht Engine version 1.7.1
FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD i386
Trying OpenGL rendering.
Level 2: Could not create archive for: data/models/
Warning: track 'beach' is not supported by this binary, ignored.
Warning: track 'stadium' is not supported by this binary, ignored.
Music information file 'Ethereal_spectrum.music' not found - ignored.
Warning: track 'startrack' is not supported by this binary, ignored.
Can't find music file 'Ethereal_spectrum.music' - ignored.
TrackManager: Couldn't find track: 'beach'
TrackManager: Couldn't find track: 'startrack'
TrackManager: Couldn't find track: 'islandtrack'
TrackManager: Couldn't find track: 'sandtrack'
TrackManager: Couldn't find track: 'fortmagma'
TrackManager: Couldn't find track: 'snowtuxpeak'
TrackManager: Couldn't find track: 'crescentcrossing'
TrackManager: Couldn't find track: 'olivermath'
TrackManager: Couldn't find track: 'racetrack'
TrackManager: Couldn't find track: 'city'
TrackManager: Couldn't find track: 'xr591'
TrackManager: Couldn't find track: 'tuxtollway'
TrackManager: Couldn't find track: 'skyline'
TrackManager: Couldn't find track: 'fortmagma'
TrackManager: Couldn't find track: 'city'
TrackManager: Couldn't find track: 'snowtuxpeak'
TrackManager: Couldn't find track: 'racetrack'
TrackManager: Couldn't find track: 'sandtrack'
TrackManager: Couldn't find track: 'olivermath'
TrackManager: Couldn't find track: 'islandtrack'
TrackManager: Couldn't find track: 'tuxtollway'
TrackManager: Couldn't find track: 'crescentcrossing'
TrackManager: Couldn't find track: 'skyline'
TrackManager: Couldn't find track: 'startrack'
TrackManager: Couldn't find track: 'xr591'
TrackManager: Couldn't find track: 'beach'
Assertion failed: (!(index>=used)), function operator[], file ../../include/irrString.h, line 338.
Abort trap: 6


gdb ./supertuxkart

{l Code}: {l Select All Code}
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...


run

{l Code}: {l Select All Code}
Starting program: /usr/home/christian/supertuxkart-svn/src/supertuxkart                                                       
(no debugging symbols found)...[New LWP 100886]                                                                               
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 29a01140 (LWP 100886)]                                                               
Irrlicht Engine version 1.7.1                                                                                                 
FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD i386
Data files will be fetched from: '..'
Irrlicht Engine version 1.7.1
FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD i386
Trying OpenGL rendering.
Level 2: Could not create archive for: data/models/
[New Thread 2a1dc300 (LWP 100780)]
Warning: track 'beach' is not supported by this binary, ignored.
Warning: track 'stadium' is not supported by this binary, ignored.
Music information file 'Ethereal_spectrum.music' not found - ignored.
Warning: track 'startrack' is not supported by this binary, ignored.
Can't find music file 'Ethereal_spectrum.music' - ignored.
TrackManager: Couldn't find track: 'beach'
TrackManager: Couldn't find track: 'startrack'
TrackManager: Couldn't find track: 'islandtrack'
TrackManager: Couldn't find track: 'sandtrack'
TrackManager: Couldn't find track: 'fortmagma'
TrackManager: Couldn't find track: 'snowtuxpeak'
TrackManager: Couldn't find track: 'crescentcrossing'
TrackManager: Couldn't find track: 'olivermath'
TrackManager: Couldn't find track: 'racetrack'
TrackManager: Couldn't find track: 'city'
TrackManager: Couldn't find track: 'xr591'
TrackManager: Couldn't find track: 'tuxtollway'
TrackManager: Couldn't find track: 'skyline'
TrackManager: Couldn't find track: 'fortmagma'
TrackManager: Couldn't find track: 'city'
TrackManager: Couldn't find track: 'snowtuxpeak'
TrackManager: Couldn't find track: 'racetrack'
TrackManager: Couldn't find track: 'sandtrack'
TrackManager: Couldn't find track: 'olivermath'
TrackManager: Couldn't find track: 'islandtrack'
TrackManager: Couldn't find track: 'tuxtollway'
TrackManager: Couldn't find track: 'crescentcrossing'
TrackManager: Couldn't find track: 'skyline'
TrackManager: Couldn't find track: 'startrack'
TrackManager: Couldn't find track: 'xr591'
TrackManager: Couldn't find track: 'beach'
Assertion failed: (!(index>=used)), function operator[], file ../../include/irrString.h, line 338.

Program received signal SIGABRT, Aborted.
[Switching to Thread 29a01140 (LWP 100886)]
0x28a622fb in thr_kill () from /lib/libc.so.7


bt

{l Code}: {l Select All Code}
#0  0x28a622fb in thr_kill () from /lib/libc.so.7
#1  0x28268836 in pthread_kill () from /lib/libthr.so.3
#2  0x28266353 in raise () from /lib/libthr.so.3
#3  0x28b0391a in abort () from /lib/libc.so.7
#4  0x28ae9dd6 in __assert () from /lib/libc.so.7
#5  0x2861f565 in irr::core::string<char, irr::core::irrAllocator<char> >::operator[] (this=0xbfbfe3ac, index=4294967295)
    at irrString.h:338
#6  0x287a2b43 in irr::io::CFileSystem::getAbsolutePath (this=0x29a821c0, filename=@0xbfbfe3ac) at CFileSystem.cpp:479
#7  0x287387cd in irr::video::CNullDriver::getTexture (this=0x29ad5500, filename=@0xbfbfe3ac) at CNullDriver.cpp:376
#8  0x0808dd7e in IrrDriver::getTexture ()
#9  0x080909f1 in Material::install ()
#10 0x08091a4f in Material::Material ()
#11 0x08094abc in MaterialManager::pushTempMaterial ()
#12 0x08095773 in MaterialManager::addSharedMaterial ()
#13 0x08095cd3 in MaterialManager::loadMaterial ()
#14 0x08052c3a in main ()


Bye!

Xeno
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby Auria » 08 Apr 2010, 14:16

I don't like "CNullDriver". Make sure you have OpenGL
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby hiker » 09 Apr 2010, 03:52

Auria {l Wrote}:I don't like "CNullDriver". Make sure you have OpenGL

That is actually no problem, some of the basic texture handling (and other stuff) is happening in the null driver.

My guess is that this is mainly caused because you compiled irrlicht with debug (and stk without debugging it appears). There are atm several warnings about textures that are not found, and I think that's probably causing the assertion error in irrlicht debug mode (my irrlicht is compiled without debugging, so the assertions are gone). We are removing all bugs and errors etc., so hopefully that should sort itself out in the near future.

In your case it looks like it's accessing the last character of an empty string, or index= -1 = 4294967295 as shown in your backtrace. If you print the parameter 'filename' of IrrDriver::getTexture we will probably know what is causing this problem.

Cheers,
Joerg
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby xeno74 » 09 Apr 2010, 09:57

Thank you :)

I have compiled Irrlicht without debug. It starts now :D :D :D

Screenshot:

Image
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Re: Problem with SuperTuxKart/Irrlicht on FreeBSD

Postby xeno74 » 09 Apr 2010, 17:49

I have made a package from the SVN 5138 for FreeBSD :) Required FreeBSD 8.0 or later.

Download:

SuperTuxKart-SVN5138-freebsd-8-i386.tar.gz

Xeno
User avatar
xeno74
 
Posts: 356
Joined: 10 Dec 2009, 20:38

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron