Latest Posts

Topic: widelands crash on x86_64 AMD Phenom(tm) II X4 945

uhai

Topic Opener
Joined: 2010-02-14, 13:30
Posts: 5
Ranking
Just found this site
Posted at: 2010-05-23, 08:40

This is the output from "strace widelands":

poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLIN}]) read(5, "\1\1\"\1\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(5, 0x20086a4, 4096) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}]) writev(6, [{"<\3\2\0\0\0@\5+\0\1\0", 12}, {NULL, 0}, {"", 0}], 3) = 12 poll([{fd=6, events=POLLIN}], 1, -1) = 1 ([{fd=6, revents=POLLIN}]) read(6, "\1\1\366\5\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(6, 0x201a294, 4096) = -1 EAGAIN (Resource temporarily unavailable) close(6) = 0 poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLIN|POLLOUT}]) read(5, "\34\0\"\1\3\0\0\5\246\1\0\0\350x&\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 writev(5, [{"<\5\2\0\0\0\0\5+\1\1\0", 12}, {NULL, 0}, {"", 0}], 3) = 12 poll([{fd=5, events=POLLIN}], 1, -1) = 1 ([{fd=5, revents=POLLIN}]) read(5, "\1\1$\1\0\0\0\0 \0 \3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32 read(5, 0x20086a4, 4096) = -1 EAGAIN (Resource temporarily unavailable) close(5) = 0 munmap(0x7feef0b59000, 2130312) = 0 munmap(0x7feef0f6c000, 2169416) = 0 rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [SEGV], SA_RESTORER|SA_RESTART, 0x7feef2e583a0}, face-glasses.png = 0 rt_sigaction(SIGBUS, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, face-glasses.png = 0 rt_sigaction(SIGBUS, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, face-glasses.png = 0 rt_sigaction(SIGFPE, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, face-glasses.png = 0 rt_sigaction(SIGFPE, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, face-glasses.png = 0 rt_sigaction(SIGQUIT, NULL, {0x7feef524ed40, [], SA_RESTORER, 0x7feef5038df0}, face-glasses.png = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x7feef5038df0}, NULL, face-glasses.png = 0 tgkill(7396, 7396, SIGSEGV) = 0 rt_sigreturn(0x1ce4) = 7455824 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Speicherzugriffsfehler

und das gibt uname -a:

Linux Tux 2.6.31-gentoo-r10 #2 SMP Sun Apr 4 22:15:33 CEST 2010 x86_64 AMD Phenom(tm) II X4 945 Processor AuthenticAMD GNU/Linux

Der Editor läuft... ? Nach Auswahl des Spiels ist die Karte kurz zu sehen, dann crash! Mein System ist aktuell, revdep-rebuild hat auch ncihts gebracht.

Was kann ich tun? Welche Info braucht Ihr noch?

uhai


Top Quote
ixprefect

Joined: 2009-02-27, 13:28
Posts: 367
Ranking
Tribe Member
Posted at: 2010-05-23, 14:05

Wichtiger ist, welche Version von Widelands du verwendest. Abstuerze dieser Art liegen sehr oft daran, dass Inkompatibilitaeten bei den gelinkten Shared Libraries existieren. Also: verwendest du ein binaeres Paket, oder kompilierst du selber? In beiden Faellen: genau welche Datei hast du heruntergerladen? Von wo?

Ausserdem: ein Backtrace (mit gdb) hilft in der Regel mehr als ein strace. Auch waere hilfreich zu wissen, was du genau gemachst hast, bevor der Fehler aufgetreten ist.

Edited: 2010-05-23, 14:05

Top Quote
uhai

Topic Opener
Joined: 2010-02-14, 13:30
Posts: 5
Ranking
Just found this site
Posted at: 2010-05-23, 14:26

uhai@Tux ~ $ eix -I widelands [I] games-strategy/widelands Available versions: (~)0.0.14 Installed versions: 0.0.14(23:18:55 24.01.2010) Homepage: http://www.widelands.org/ Description: A game similar to Settlers 2

Ich habe widelands mit emerge aus dem Portage-tree installiert, d.h. auf meinem Rechner kompiliert.

gdb widelands

warning: Can not parse XML syscalls information; XML support was disabled at compile time. GNU gdb (Gentoo 7.0.1 p1) 7.0.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: http://bugs.gentoo.org/... Reading symbols from /usr/games/bin/widelands...(no debugging symbols found)...done. (gdb)

Hilft das so schon weiter?, oder muss ich widelands mit USE=debug neu emergen?

uhai


Top Quote
ixprefect

Joined: 2009-02-27, 13:28
Posts: 367
Ranking
Tribe Member
Posted at: 2010-05-23, 14:59

Angesichts der Tatsache, dass build15 schon seit einer Weile veroeffentlich ist, koenntest du den einmal ausprobieren?

Mit Backtrace in gdb meinte ich:

$ gdb widelands ... (gdb) run ... das Spiel spielen (wichtig: im windowed mode, nicht fullscreen!) bis du zu dem Absturz kommst. Dann..

(gdb) bt

Dann wird dir der Backtrace des Absturzes angezeigt.


Top Quote
uhai

Topic Opener
Joined: 2010-02-14, 13:30
Posts: 5
Ranking
Just found this site
Posted at: 2010-05-23, 19:59

ok, here we go:

uhai@Tux ~ $ gdb widelands

warning: Can not parse XML syscalls information; XML support was disabled at compile time. GNU gdb (Gentoo 7.0.1 p1) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
http://bugs.gentoo.org/...
Reading symbols from /usr/games/bin/widelands...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/games/bin/widelands
[Thread debugging using libthread_db enabled]
Adding directory:.//usr/share/games/widelands
Adding directory:/usr/share/games/widelands
Version file found with id "Build14" (real "Build14" )
No version file found
Adding directory:.
No version file found
Adding directory: /usr/games/bin
No version file found
Set home directory: /home/uhai/.widelands
No version file found
SDL_VIDEODRIVER=&
Graphics: Trying Video driver: 0 x11 SDL_VIDEODRIVER=x11
* GRAPHICS REPORT
VIDEO DRIVER x11
hw surface possible 0
window manager available 1
blitz_hw 0
blitz_hw_CC 0
blitz_hw_A 0
blitz_sw 0
blitz_sw_CC 0
blitz_sw_A 0
blitz_fill 0
video_mem 0
vfmt 0xa069a0
size 800 600
* END GRAPHICS REPORT

hw avail:0Graphics: flags: 0 [New Thread 0x7ffff1b86910 (LWP 6492)] [] Section [global], key 'EXENAME' not used (did you spell the name correctly?) Sound_Handler: loaded song "music/intro_00.ogg"
Sound_Handler: loaded song "music/menu_00.ogg"
* GRAPHICS REPORT
VIDEO DRIVER x11
hw surface possible 0
window manager available 1
blitz_hw 0
blitz_hw_CC 0
blitz_hw_A 0
blitz_sw 0
blitz_sw_CC 0
blitz_sw_A 0
blitz_fill 0
video_mem 0
vfmt 0xa069a0
size 640 480
* END GRAPHICS REPORT

hw avail:0Graphics: flags: 0 No version file found
Parsing world bobs...
Parsing global bobs in world... Reading Elemental Data ... done! Reading Player Names And Tribe Data ... done! Reading Heights Data ... done!
Reading Terrain Data ... done!
Reading Map Objects ... done
Reading Player Start Position Data ... done!
Reading Bob Data ... done!
Reading Resources Data ... done!
Reading Map Extra Data ... done!
Reading Trigger Data ... done!
Reading Objective Data ... done!
Reading Event Data ... done!
Reading Event Chain Data ... done!
Reading Allowed Buildings Data ... done!
Reading Owned-Fields Data ... done!
Reading Seen-Fields Data ... done!
Reading AreaWatchers Data ... done!
Reading Flag Data ... done!
Reading Road Data ... done!
Reading Building Data ... done!
Reading Map Ware Data ... done!
Reading Flagdata Data ... done!
Reading Roaddata Data ... done!
Reading Buildingdata Data ... done!
Reading Waredata Data ... done!
Reading Bobdata Data ... done!
Reading Immovabledata Data ... done!
Second and third phase loading Map Objects ... done Reading Players View Data ... done!
Reading Variable Data ... done!
WARNING: There are 212 unloaded objects. This is a bug, please consider committing! Forcing flag at (65, 23)
Message: adding (wh) (warehouse) 1
Forcing flag at (121, 25)
Message: adding (wh) (warehouse) 2
Forcing flag at (162, 58)
Message: adding (wh) (warehouse) 3
Forcing flag at (157, 119)
Message: adding (wh) (warehouse) 4
Forcing flag at (122, 155)
Message: adding (wh) (warehouse) 5
Forcing flag at (53, 158)
Message: adding (wh) (warehouse) 6
Forcing flag at (18, 120)
Message: adding (wh) (warehouse) 7
Forcing flag at (19, 48)
Message: adding (wh) (warehouse) 8
Starting replay writer
Game: Writing Preload Data ... done
Game: Writing Game Class Data ... done
Game: Writing Player Info ... done
Game: Writing Map Data!
Writing Elemental Data ... done!
Writing Player Names And Tribe Data ... done!
Writing Heights Data ... done!
Writing Terrain Data ... done!
Writing Player Start Position Data ... done!
Writing Bob Data ... done!
Writing Resources Data ... done!
Writing Map Extra Data ... done!
Writing Flag Data ... done!
Writing Road Data ... done!
Writing Building Data ... done!
Writing Map Ware Data ... done!
Writing Area Watchers Data ... done!
Writing Map Objects ... done!
Writing Flagdata Data ... done!
Writing Buildingdata Data ... done!
Writing Bobdata Data ... done!
Writing Owned-Fields Data ... done!
Writing Seen-Fields Data ... done!
Writing Players Unseen Data ... done!
Writing Variable Data ... done!
Writing Objective Data ... done!
Game: Writing Map Data done!
Game: Writing Player Economies Info ... done
Game: Writing Command Queue Data ... done
Game: Writing Interactive Player Data ... done
Reloading the game from replay
Game: Reading Preload Data ... done
Game: Reading Game Class Data ... done
Game: Reading Map Data ... No version file found
Parsing world bobs...
Parsing global bobs in world...
done
Game: Reading Player Info ... done
Game: Reading Map Data Complete!
Reading Elemental Data ... done!
Reading Player Names And Tribe Data ... done!
Reading Heights Data ... done!
Reading Terrain Data ... done!
Reading Map Objects ... done
Reading Player Start Position Data ... done!
Reading Bob Data ... done!
Reading Resources Data ... done!
Reading Map Extra Data ... done!
Reading Trigger Data ... done!
Reading Objective Data ... done!
Reading Event Data ... done!
Reading Event Chain Data ... done!
Reading Allowed Buildings Data ... done!
Reading Owned-Fields Data ... done!
Reading Seen-Fields Data ... done!
Reading AreaWatchers Data ... done!
Reading Flag Data ... done!
Reading Road Data ... done!
Reading Building Data ... Message: adding (wh) (warehouse) 1
Message: adding (wh) (warehouse) 2
Message: adding (wh) (warehouse) 8
Message: adding (wh) (warehouse) 3
Message: adding (wh) (warehouse) 4
Message: adding (wh) (warehouse) 7
Message: adding (wh) (warehouse) 5
Message: adding (wh) (warehouse) 6
done!
Reading Map Ware Data ... done!
Reading Flagdata Data ... done!
Reading Roaddata Data ... done!
Reading Buildingdata Data ... Reading warehouse stuff for 0x358f8e0
Read warehouse stuff for 0x358f8e0
Reading warehouse stuff for 0x3ac8af0
Read warehouse stuff for 0x3ac8af0
Reading warehouse stuff for 0x3acd800
Read warehouse stuff for 0x3acd800
Reading warehouse stuff for 0x3ad24c0
Read warehouse stuff for 0x3ad24c0
Reading warehouse stuff for 0x3ad7180
Read warehouse stuff for 0x3ad7180
Reading warehouse stuff for 0x3adbec0
Read warehouse stuff for 0x3adbec0
Reading warehouse stuff for 0x38c0a60
Read warehouse stuff for 0x38c0a60
Reading warehouse stuff for 0x38c5940
Read warehouse stuff for 0x38c5940
done!
Reading Waredata Data ... done!
Reading Bobdata Data ... done!
Reading Immovabledata Data ... done! Second and third phase loading Map Objects ... done Reading Players View Data ... Vision check successful for player 1 Vision check successful for player 2 Vision check successful for player 3 Vision check successful for player 4 Vision check successful for player 5 Vision check successful for player 6 Vision check successful for player 7 Vision check successful for player 8 done! Reading Variable Data ... done! Game: Reading Map Data Complete done! Game: Reading Player Economies Info ... done Game: Reading Command Queue Data ... done Game: Reading Interactive Player Data ... done Done reloading the game from replay Replay writer has started [sync] Reset ComputerPlayer(2): initializing (2) ComputerPlayer(3): initializing (2) ComputerPlayer(4): initializing (2) ComputerPlayer(5): initializing (2) ComputerPlayer(6): initializing (2) ComputerPlayer(7): initializing (2) ComputerPlayer(8): initializing (2) Autosave: initialized

Program received signal SIGSEGV, Segmentation fault. 0x0000000000000031 in ?? ()

und der Backtrace:

(gdb) bt

0 0x0000000000000031 in ?? ()

1 0x000000000052d7d0 in ?? ()

2 0x000000000050ea80 in ?? ()

3 0x0000000000529db5 in ?? ()

4 0x0000000000503a71 in ?? ()

5 0x000000000052694a in ?? ()

6 0x00000000004f97c0 in ?? ()

7 0x0000000000557982 in ?? ()

8 0x0000000000545a2b in ?? ()

9 0x00000000006ac546 in ?? ()

10 0x00000000006adcc9 in ?? ()

11 0x00000000004f78e9 in ?? ()

12 0x0000000000455909 in ?? ()

13 0x0000000000455e6e in ?? ()

14 0x000000000045629a in ?? ()

15 0x0000000000456805 in ?? ()

16 0x000000000040b302 in ?? ()

17 0x00007ffff5775a26 in ?? ()

18 0x0000000000000000 in ?? ()

Viel Spielen ist da nicht.. aber immerhin bleibt das Startbild auf dem Schirm, so dass ich die Landschaft auch mal ansehen kann face-smile.png

Ich verwende halt das Build aus portage für Gentoo. Was handele ich mir ein, wenn ich abseits von Portage aktualisiere?

uhai


Top Quote
ixprefect

Joined: 2009-02-27, 13:28
Posts: 367
Ranking
Tribe Member
Posted at: 2010-05-23, 22:14

Ein paar Dinge:

  1. Es ist immer noch nicht klar, was du direkt vor dem Absturz getan hast. Hast du eine Kampagne gestartet? Ein Spiel geladen? Ein neues Spiel gestartet? Und so weiter...

  2. Hast du mal build15 ausprobiert? Es ist ja durchaus denkbar, dass ein 64bit-spezifischer Bug seitdem behoben wurde.

  3. Dummerweise wurde deine Executable ohne Debuginformationen kompiliert. Evtl. behebt dieses USE=DEBUG, das du erwaehntest, dieses Problem? Mit den Hex-Adressen kann man naemlich leider nicht so viel anfangen.

Ansonsten kann dir vielleicht jemand anderes weiterhelfen, der sich mit Gentoo auskennt. Ein Stochern im Dunkeln waere auch: probiere mal unterschiedliche Einstellungen bzgl. Grafikaufloesung und Sound an/aus. Vielleicht bist du mit einer davon erfolgreicher.


Top Quote
uhai

Topic Opener
Joined: 2010-02-14, 13:30
Posts: 5
Ranking
Just found this site
Posted at: 2010-05-24, 09:52

Danke ixprefect,

für Deine Tips. USE=debug veranlasst den Compiler die Debuginformationen mit zu übersetzen. Das werde ich machen.

Ich versuche irgendein Spiel zu starten. Alle Einstellmöglichkeiten (Auflösung, Ton, Schrift etc.) habe ich ausprobiert. Widelands crasht zuverlässig nach dem Laden des Spiels in dem Moment, wo die Karte auf dem Monitor erscheint.

Build15 habe ich geholt, das übersetze ich jetzt mal und teste. Aber eigentlich möchte ich nicht außerhalb meines Paketmanagers (Portage) basteln...

uhai

<edit> build15 läuft, schon seit 10 Minuten... Danke schön, ich will mal sehen, ob ich dafür ein ebuild hinbekomme...</edit>

Edited: 2010-05-24, 11:40

Top Quote
timowi

Joined: 2009-11-01, 22:08
Posts: 146
Ranking
At home in WL-forums
Location: Germany
Posted at: 2010-05-24, 11:03

There was a serious bug in build 14: In picture.h boost was included with threads disabled but in the rest of the project without this option. This lead to crashes with x86_64 and optimizations enabled. The best way is to use build15. If you wan to use build14 you can compile with "-DBOOST_SP_DISABLE_THREADS" or remove the define BOOST_SP_DISABLE_THREADS from picture.h or compile without optimization.

Timo


Top Quote
cami

Joined: 2010-06-06, 13:59
Posts: 1
Ranking
Just found this site
Posted at: 2010-06-06, 14:18

I modified the build14 ebuild until it worked (FOR ME) with build 15. The result is too crude to file it on gentoo, but it may help.

For users new to gentoo:

  • save the ebuild as /usr/local/portage/games-strategy/widelands/widelands-0.0.15.ebuild (creating the folder if it does not exist)

  • add the line PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf

  • run the command: ebuild /usr/local/portage/games-strategy/widelands/widelands-0.0.15.ebuild digest

  • now you can merge the new ebuild!

============= Ebuild contents follow ==============

    EAPI=2
    inherit toolchain-funcs eutils versionator games cmake-utils

    MY_PV=$(get_version_component_range 3)
    DESCRIPTION="A game similar to Settlers 2"
    HOMEPAGE="http://www.widelands.org/"
    SRC_URI="http://launchpad.net/${PN}/build${MY_PV}/build${MY_PV}/+download/widelands-build${MY_PV}-src.tar.bz2"

    LICENSE="GPL-2"
    SLOT="0"
    KEYWORDS="~amd64 ~x86"
    IUSE=""

    RDEPEND="media-libs/libsdl[video]
            media-libs/sdl-image[png]
            media-libs/sdl-mixer[vorbis]
            media-libs/sdl-net
            media-libs/sdl-ttf
            media-libs/sdl-gfx
            media-libs/libpng
            dev-libs/boost
            dev-games/ggz-client-libs
            =dev-lang/lua-5.1*"

    DEPEND="${RDEPEND}
            app-arch/p7zip
            dev-util/cmake"

    S=${WORKDIR}/${PN}

    src_prepare() {
            mv ${PN}-build${MY_PV}-src ${PN}
    }

    src_compile() {
            cmake-utils_src_compile
    }

    src_install() {
            cmake-utils_src_install

            insinto "${GAMES_DATADIR}"/${PN}
            doins -r campaigns fonts global maps music pics po sound tribes txts utils worlds \
                    || die "doins failed"

            newicon pics/wl-ico-128.png ${PN}.png
            make_desktop_entry ${PN} Widelands

            dodoc ChangeLog CREDITS

            cd ../${PN}_build
            dogamesbin src/${PN} || die "dogamesbin failed"
            doins -r locale VERSION || die "doins failed."

            prepgamesdirs
    }
Edited: 2010-06-06, 14:20

Top Quote
ixprefect

Joined: 2009-02-27, 13:28
Posts: 367
Ranking
Tribe Member
Posted at: 2010-06-06, 16:01

Thank you, cami. Though why did you post that in this thread? I think it would be more useful to post it in a thread of its own, where people who are looking for Gentoo-related information will actually find it when they search for it.


Top Quote