Avenger Posted June 23, 2006 Share Posted June 23, 2006 ok, the weapon selection and such are not implemented fully Link to comment
Guest Raz_Lobo Posted June 23, 2006 Share Posted June 23, 2006 Hi, ok, the weapon selection and such are not implemented fully <{POST_SNAPBACK}> Perfect, I'll wait next gemrb develops, and I hope to learn the necessary python someday to help gemrb. Thanks for all. Regards, Salud y Revolución. Lobo. Link to comment
Avenger Posted June 30, 2006 Share Posted June 30, 2006 frostwork: i've submitted the bug at the valgrind site but they need additional info. http://bugs.kde.org/show_bug.cgi?id=129390 Link to comment
Guest frostwork Posted July 3, 2006 Share Posted July 3, 2006 Hi, Avenger! Sorry for late reply! OK I made an objdump, but how can I figure out what instruction this is? I could post the whole part which has s.th. to do with ConvertAltivec32to32_prefetch, but I doubt this is funny to read Here are the 1st lines... 00041d38 <ConvertAltivec32to32_prefetch>: 41d38: 94 21 ff 20 stwu r1,-224(r1) 41d3c: 7c 08 02 a6 mflr r0 41d40: 90 01 00 e4 stw r0,228(r1) 41d44: 90 61 00 b8 stw r3,184(r1) 41d48: 38 00 00 10 li r0,16 41d4c: 90 01 00 90 stw r0,144(r1) .............. Link to comment
Avenger Posted July 3, 2006 Share Posted July 3, 2006 No idea, the address in your initial report is just too far from this one. It is not the same address space. So, the only hope is to list the whole function and look for the familiar bytes in it: 7E 29 02 AC Link to comment
Guest frostwork Posted July 3, 2006 Share Posted July 3, 2006 Argh... I forgot that I upgraded SDL to 1.2.11 some times ago... I'll build latest gemrb-cvs against it now and reproduce the crash Link to comment
Guest frostwork Posted July 3, 2006 Share Posted July 3, 2006 Hi! OK, rebuilt it! It's still at the same location... The error is somewhere in the SDL_SetTimer function (to be exact even twice) : ...... 431b4: 3c 00 02 20 lis r0,544 431b8: 60 00 04 00 ori r0,r0,1024 431bc: 7e 29 02 ac dstt r9,r0,1 431c0: 80 1f 00 90 lwz r0,144(r31) 431c4: 54 00 10 3a rlwinm r0,r0,2,0,29 ....... ....... 433fc: 48 00 00 e4 b 434e0 <SDL_SetTimer+0x25108> 43400: 80 1f 00 8c lwz r0,140(r31) 43404: 54 00 10 3a rlwinm r0,r0,2,0,29 43408: 7c 09 03 78 mr r9,r0 4340c: 80 1f 00 84 lwz r0,132(r31) 43410: 7d 29 02 14 add r9,r9,r0 43414: 3c 00 02 20 lis r0,544 43418: 60 00 04 00 ori r0,r0,1024 4341c: 7e 29 02 ac dstt r9,r0,1 43420: 80 1f 00 8c lwz r0,140(r31) 43424: 54 00 10 3a rlwinm r0,r0,2,0,29 I hope this can be of some use...(?) cheers frostwork Link to comment
Guest frostwork Posted July 3, 2006 Share Posted July 3, 2006 Good to hear! cheers frostwork Link to comment
Avenger Posted August 12, 2006 Share Posted August 12, 2006 I got a mail that the valgrind bug might have been fixed. Frostwork, try it again (with the very very very last -from cvs- valgrind for ppc). And, once the valgrind bug is off the table, try to update the gemrb sources too. I've been busy fixing lots of uninitialized memory stuff, it might be that i've fixed your problem. Even if not, the fixed valgrind will surely catch this one! Link to comment
Guest frostwork Posted August 19, 2006 Share Posted August 19, 2006 Ok, I will check out both within the next few days Thanks a lot! frostwork Link to comment
Guest Guest Posted August 19, 2006 Share Posted August 19, 2006 Hi! Just built valgrind svn from today (rv6008) & gemrb cvs from today. Haven't tried much till now, but unfortunately valgrind still crashes: ---- biiig snip ------ ==18875== by 0xF736640: SDL_SetVideoMode (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF7B62DC: SDLVideoDriver::CreateDisplay(int, int, int, bool) (SDLVideoDriver.cpp:102) ==18875== Address 0x40780CB is 19 bytes inside a block of size 16,384 alloc'd ==18875== at 0xFFBA9F0: calloc (vg_replace_malloc.c:279) ==18875== by 0xF2CFBDC: XOpenDisplay (in /usr/lib/libX11.so.6.2.0) ==18875== by 0xF7461E0: (within /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF753550: (within /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF735354: SDL_VideoInit (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF6E3F30: SDL_InitSubSystem (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF7B6898: SDLVideoDriver::Init() (SDLVideoDriver.cpp:78) ==18875== by 0xFF2DEBC: Interface::Init() (Interface.cpp:980) ==18875== by 0x10001944: main (GemRB.cpp:47) disInstr(ppc): unhandled instruction: 0x7E2902AC primary 31(0x1F), secondary 684(0x2AC) ==18875== valgrind: Unrecognised instruction at address 0xF71D1BC. ==18875== Your program just tried to execute an instruction that Valgrind ==18875== did not recognise. There are two possible reasons for this. ==18875== 1. Your program has a bug and erroneously jumped to a non-code ==18875== location. If you are running Memcheck and you just saw a ==18875== warning about a bad jump, it's probably your program's fault. ==18875== 2. The instruction is legitimate but Valgrind doesn't handle it, ==18875== i.e. it's Valgrind's fault. If you think this is the case or ==18875== you are not sure, please let us know and we'll try to fix it. ==18875== Either way, Valgrind will now raise a SIGILL signal which will ==18875== probably kill your program. ==18875== ==18875== Process terminating with default action of signal 4 (SIGILL) ==18875== Illegal opcode at address 0xF71D1BC ==18875== at 0xF71D1BC: (within /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF701F9C: (within /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF7334A0: SDL_LowerBlit (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF734BD4: SDL_ConvertSurface (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF737718: SDL_DisplayFormat (in /usr/lib/libSDL-1.2.so.0.11.0) ==18875== by 0xF7B656C: SDLVideoDriver::CreateDisplay(int, int, int, bool) (SDLVideoDriver.cpp:122) ==18875== by 0xFF312E4: Interface::Main() (Interface.cpp:838) ==18875== by 0x10001954: main (GemRB.cpp:53) ==18875== ==18875== ERROR SUMMARY: 934 errors from 105 contexts (suppressed: 238 from 4) ==18875== malloc/free: in use at exit: 4,598,999 bytes in 9,542 blocks. ==18875== malloc/free: 25,755 allocs, 16,213 frees, 16,323,164 bytes allocated. ==18875== For counts of detected errors, rerun with: -v ==18875== searching for pointers to 9,542 not-freed blocks. ==18875== checked 22,002,068 bytes. ==18875== ==18875== LEAK SUMMARY: ==18875== definitely lost: 0 bytes in 0 blocks. ==18875== possibly lost: 1,512 bytes in 5 blocks. ==18875== still reachable: 4,597,487 bytes in 9,537 blocks. ==18875== suppressed: 0 bytes in 0 blocks. ==18875== Reachable blocks (those to which a pointer was found) are not shown. ==18875== To see them, rerun with: --show-reachable=yes gemrb exits with this output: -- snip--- [sDLVideo]: Checking for HardWare Acceleration...[OK] [sDLVideo]: Creating Main Surface...[OK] [sDLVideo]: Creating Back Buffer...Killed localhost GemRB # What next? Do you need the complete valgrind log? cheers, frostwork Link to comment
Guest frostwork Posted August 19, 2006 Share Posted August 19, 2006 Me again! (removed libACMImporter) BG1 exits with: .... Loading game type-specific GemRB setup...[OK] [Core]: Checking for Dialogue Manager...[OK] [KEYImporter]: Searching for months.2da...[FOUND] [Core]: Loading Dialog.tlk file...[ERROR] Cannot find Dialog.tlk. Termination in Progress... [KEYImporter]: Searching for defsound.2da...[Found in GemRB Override] Press enter to continue... PST exits after creating a new char & pressing OK-button with: ... [KEYImporter]: Searching for object.ids...[FOUND] [KEYImporter]: Searching for script.2da...[Found in GemRB Override] Warning: Couldn't assign trigger: isinguardianmantle Warning: Couldn't assign trigger: failedtoopen Warning: Couldn't assign trigger: wasindialog Warning: Couldn't assign trigger: harmlessclosed Warning: Couldn't assign trigger: watchme Warning: Couldn't assign trigger: assaltedby Warning: Couldn't assign trigger: picklockfailed Warning: Couldn't assign trigger: stealfailed Warning: Couldn't assign trigger: pickpocketfailed Warning: Couldn't assign trigger: reset Warning: Couldn't assign trigger: detected Warning: Couldn't assign trigger: killed Warning: Couldn't assign trigger: trigger Warning: Couldn't assign trigger: unusable Warning: Couldn't assign trigger: turnedby Warning: Couldn't assign trigger: said Warning: Couldn't assign trigger: receivedorder Warning: Couldn't assign trigger: leaves Warning: Couldn't assign trigger: joins Warning: Couldn't assign action: generatepartymember Warning: Couldn't assign action: transformpartyitemall Warning: Couldn't assign action: transformitemall Warning: Couldn't assign action: fullhealex Warning: Couldn't assign action: forceusecontainer Warning: Couldn't assign action: enablefogdither Warning: Couldn't assign action: disablefogdither Warning: Couldn't assign action: enablespritedither Warning: Couldn't assign action: disablespritedither Warning: Couldn't assign action: setnamelessdeathparty Warning: Couldn't assign action: setnamelessdeath Warning: Couldn't assign action: fixengineroom Warning: Couldn't assign action: playsequenceglobal [GameScript]: setteam(o:object*,i:value*team) is a synonym of changeteam(o:object*,i:value*team) [GameScript]: setfaction(o:object*,i:value*faction) is a synonym of changefaction(o:object*,i:value*faction) Warning: Couldn't assign action: floatrebus Warning: Couldn't assign action: buystuff Warning: Couldn't assign action: changecolor Warning: Couldn't assign action: runfollow Warning: Couldn't assign action: generatemodronmaze Warning: Couldn't assign action: followcreature Warning: Couldn't assign action: transformpartyitem Warning: Couldn't assign action: transformitem Warning: Couldn't assign action: startrandomtimer Warning: Couldn't assign action: incrementkillstat [GameScript]: addexperienceparty(i:xp*) is a synonym of addpartyexperience(i:xp*) Warning: Couldn't assign action: changeaitype Warning: Couldn't assign action: polymorphex Warning: Couldn't assign action: ankheghide Warning: Couldn't assign action: ankhegemerge Warning: Couldn't assign action: deactivateex Warning: Couldn't assign action: startcutsceneex Warning: Couldn't assign action: forcespellpoint Warning: Couldn't assign action: reallyforcespelllevel Warning: Couldn't assign action: useitempoint Warning: Couldn't assign action: spellpoint Warning: Couldn't assign action: groupattack Warning: Couldn't assign action: follow Warning: Couldn't assign action: leader Warning: Couldn't assign action: protectobject Warning: Couldn't assign action: nidspecial12 Warning: Couldn't assign action: nidspecial11 Warning: Couldn't assign action: nidspecial10 Warning: Couldn't assign action: nidspecial9 Warning: Couldn't assign action: nidspecial8 Warning: Couldn't assign action: nidspecial7 Warning: Couldn't assign action: nidspecial6 Warning: Couldn't assign action: nidspecial5 Warning: Couldn't assign action: nidspecial4 Warning: Couldn't assign action: calllightning Warning: Couldn't assign action: sendtrigger Warning: Couldn't assign action: doubleclickrbuttonobject Warning: Couldn't assign action: doubleclickrbuttonpoint Warning: Couldn't assign action: doubleclicklbuttonobject Warning: Couldn't assign action: doubleclicklbuttonpoint Warning: Couldn't assign action: clickrbuttonobject Warning: Couldn't assign action: clickrbuttonpoint Warning: Couldn't assign action: clicklbuttonobject Warning: Couldn't assign action: clicklbuttonpoint Warning: Couldn't assign action: formation Warning: Couldn't assign action: followpath Warning: Couldn't assign action: useitem Warning: Couldn't assign action: spell [GameScript]: setglobal(s:name*,s:area*,i:value*) is a synonym of globalset(s:name*,s:area*,i:value*) Warning: Couldn't assign action: runawayfromex Warning: Couldn't assign action: removetraps Warning: Couldn't assign action: protectpoint Warning: Couldn't assign action: movetoobjectex Warning: Couldn't assign action: layhands Warning: Couldn't assign action: joinpartyex Warning: Couldn't assign action: giveorder Warning: Couldn't assign object: marked Warning: Couldn't assign object: protectorof Warning: Couldn't assign object: groupof Warning: Couldn't assign object: leaderof [KEYImporter]: Searching for baldur.bcs...[Found in GemRB Override] [KEYImporter]: Searching for mastarea.2da...[FOUND] [KEYImporter]: Searching for restmov.2da...[ERROR] [KEYImporter]: Searching for STARTARE.2da...[FOUND] [KEYImporter]: Searching for wmwrldb.mos...[FOUND] [KEYImporter]: Searching for wmlocat.bam...[FOUND] [KEYImporter]: Searching for strmod.2da...[FOUND] [KEYImporter]: Searching for strmodex.2da...[FOUND] [KEYImporter]: Searching for charbase.cre...[FOUND] [KEYImporter]: Searching for clskills.2da...[Found in GemRB Override] [KEYImporter]: Searching for damage.2da...[Found in GemRB Override] [KEYImporter]: Searching for overlay.2da...[Found in GemRB Override] [KEYImporter]: Searching for csound.2da...[FOUND] [KEYImporter]: Searching for qslots.2da...[ERROR] [KEYImporter]: Searching for randcolr.2da...[ERROR] [KEYImporter]: Searching for pcname.bcs...[FOUND] [KEYImporter]: Searching for fistweap.2da...[Found in GemRB Override] [KEYImporter]: Searching for fist.itm...[FOUND] SLOT 7 eyeball EQUIP 0x0000 [KEYImporter]: Searching for eyeball.itm...[FOUND] EQUIP2 0x0040 [KEYImporter]: Searching for avatars.2da...[Found in GemRB Override] Segmentation fault Cheers, frostwork Link to comment
Avenger Posted August 19, 2006 Share Posted August 19, 2006 The missing dialog.tlk is surely some configuration problem. Either try to rename it all lowercase (check how it is written in the pst install). Or set CaseSensitive=1 in your gemrb.cfg Please give more info about the segfault. Link to comment
Guest frostwork Posted August 20, 2006 Share Posted August 20, 2006 Hi! My bg1 is installed on a vfat partition. I wanted to rename dialog.tlk to Dialog.tlk, but it was still lowercase afterwards. (vfat... ). Anyway bg1 worked then... () >Please give more info about the segfault. The pst one? I tried to hunt pst through valgrind, but a nasty bug prevents me from even getting into the char-edit screen: ..... [Core]: Initializing area aliases... [KEYImporter]: Searching for WMAPLAY.2da...[FOUND] [OK] [Core]: Reading item tables... [KEYImporter]: Searching for itemexcl.2da...[ERROR] [KEYImporter]: Searching for itemdial.2da...[ERROR] [KEYImporter]: Searching for tooltip.2da...[FOUND] [OK] [Core]: Core Initialization Complete! [sDLVideo]: Creating display [sDLVideo]: SDL_SetVideoMode...[OK] [sDLVideo]: Checking for HardWare Acceleration...[OK] [sDLVideo]: Creating Main Surface...[OK] disInstr(ppc): unhandled instruction: 0x7E2902AC primary 31(0x1F), secondary 684(0x2AC) ==12490== valgrind: Unrecognised instruction at address 0xF71D1BC. ==12490== Your program just tried to execute an instruction that Valgrind ==12490== did not recognise. There are two possible reasons for this. ==12490== 1. Your program has a bug and erroneously jumped to a non-code ==12490== location. If you are running Memcheck and you just saw a ==12490== warning about a bad jump, it's probably your program's fault. ==12490== 2. The instruction is legitimate but Valgrind doesn't handle it, ==12490== i.e. it's Valgrind's fault. If you think this is the case or ==12490== you are not sure, please let us know and we'll try to fix it. ==12490== Either way, Valgrind will now raise a SIGILL signal which will ==12490== probably kill your program. ==12490== ==12490== Process terminating with default action of signal 4 (SIGILL) ==12490== Illegal opcode at address 0xF71D1BC ==12490== at 0xF71D1BC: (within /usr/lib/libSDL-1.2.so.0.11.0) ==12490== by 0xF701F9C: (within /usr/lib/libSDL-1.2.so.0.11.0) ==12490== by 0xF7334A0: SDL_LowerBlit (in /usr/lib/libSDL-1.2.so.0.11.0) ==12490== by 0xF734BD4: SDL_ConvertSurface (in /usr/lib/libSDL-1.2.so.0.11.0) ==12490== by 0xF737718: SDL_DisplayFormat (in /usr/lib/libSDL-1.2.so.0.11.0) ==12490== by 0xF7B656C: SDLVideoDriver::CreateDisplay(int, int, int, bool) (SDLVideoDriver.cpp:122) ==12490== by 0xFF312E4: Interface::Main() (Interface.cpp:838) ==12490== by 0x10001954: main (GemRB.cpp:53) [sDLVideo]: Creating Back Buffer...==12490== ==12490== ERROR SUMMARY: 988 errors from 105 contexts (suppressed: 232 from 4) ==12490== malloc/free: in use at exit: 4,556,461 bytes in 9,101 blocks. ==12490== malloc/free: 25,257 allocs, 16,156 frees, 16,263,348 bytes allocated. ==12490== For counts of detected errors, rerun with: -v ==12490== searching for pointers to 9,101 not-freed blocks. ==12490== checked 5,195,408 bytes. ==12490== ==12490== LEAK SUMMARY: ==12490== definitely lost: 0 bytes in 0 blocks. ==12490== possibly lost: 1,224 bytes in 3 blocks. ==12490== still reachable: 4,555,237 bytes in 9,098 blocks. ==12490== suppressed: 0 bytes in 0 blocks. ==12490== Reachable blocks (those to which a pointer was found) are not shown. ==12490== To see them, rerun with: --show-reachable=yes Illegal instruction localhost GemRB # friendly, frostwork Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.