Jump to content

sound issue on linux-ppc


Guest frostwork

Recommended Posts

Guest frostwork

>Hmm, yes, this is the same valgrind bug. Apparently the fix isn't available for you yet.

 

To not keep this unanswered, I'll keep an eye on valgrind-svn occasionally & post any useful news

here when time's up :(

cheers,

frostwork

Link to comment
Guest frostwork

Hi!

 

Just have found gemrb-0.27 on sourceforge! :p

Thanks a lot for the new version!

Will build it tomorrow - it's short before midnight here :p

friendly,

Marcel "frostwork" Unbehaun

Link to comment
Guest Raz_Lobo
There is a new release also i got email that the valgrind bug was fixed.

Please give it a try :rant:

 

We also improved a lot on the weapon selection/inventory management.

 

Hello all,

 

I was testing gemrb from cvs built about two days ago, ang Gemrb runs well, but I don't have Frostwork issue with Valgrind.

 

Adding to this, until Gemrb not have sound on ppc.

 

And crash when I try to buy in candlekeep, see it:

 

---------- cut from console ------

 

[GUIScript]: Runtime Error:

Traceback (most recent call last):

File "/home/razer/GemRB/GUIScripts/bg1/GUISTORE.py", line 124, in OpenStoreWindow

PortraitWindow = OpenPortraitWindow(0)

File "/home/razer/GemRB/GUIScripts/bg1/GUICommonWindows.py", line 456, in OpenPortraitWindow

Button = GemRB.GetControl (Window, 6)

RuntimeError: Control is not found

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalchapter: 0

CheckVariable globalpardaspawn: 0

CheckVariable globalcarbos: 0

CheckVariable globalkaranspawn: 0

CheckVariable globalshank: 0

CheckVariable globalobe: 0

CheckVariable global2643door: 1

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalcriminal: 0

Freeing script act11 because its refcount has reached 0.

---------- end of cut --------------

 

And, I continue having bad issue with weapon skill when I choose multiclass character.

 

Tell me about how to get more info for valgrind stuff, if I can, i'll do.

 

Regards.

 

Salud y Revolución.

 

Lobo.

Link to comment
Guest Raz_Lobo

Hello,

 

You have a simple guiscript problem, this isn't something that you could investigate with Valgrind.

 

I don't explained well.

 

I want to help you about Frostwork's stuff with Valgrind, I was imagine about "my crash at Candelkeep" don't be something related with Valgrind.

 

I report my crash why if it was a stuff with ppc or is a know bug or simply not implemented yet.

 

Sorry about my bad english, I hope you understand what I want to say.

 

What are about sound on ppc?

 

Regards.

 

Salud y Revolución.

 

Lobo.

Link to comment

Hi again,

 

Probably you just have to remove the nullsound plugins to have sound. (If you have a working openal).

 

Yes, I remove nullsound plugins and I got sound, I can listen initial videos but when I generate character and go to play:

 

------- cut from console --------

[KEYImporter]: Searching for fish1l.bam...[FOUND]

Loading entrances

Loading variables

Loading ambients

Loading automap notes

Loading tiles

Loading explored bitmap

Loading wallgroups

[KEYImporter]: Searching for amb_tav.wav...[FOUND]

*** glibc detected *** corrupted double-linked list: 0x13de4660 ***

[ACMImp::Play]: Can't create sound reader. Abortado

----------- end of cut ----------

 

For remove nullsound plugins I do:

-------------- cut from console ----------

razer@mac-lobo:~/GemRB$ ll plugins/ |grep -i null

-rwxr-xr-x 1 razer razer 989 2007-01-25 19:27 libNullSound.la.no

-rwxr-xr-x 1 razer razer 71K 2007-01-25 19:27 libNullSound.so.0.0.0.no

lrwxrwxrwx 1 razer razer 24 2007-01-25 19:27 libNullSound.so.0.no -> libNullSound.so.0.0.0.no

lrwxrwxrwx 1 razer razer 21 2007-01-25 19:27 libNullSound.so.no -> libNullSound.so.0.0.0

------------ end of cut ----------------

 

There are any way for do this in configure or automatic way?

 

Can I analyze this crash with any tool (valgrind of gdb)? How to active gemrb to do it gdb compatible?

 

I run gemrb from cvs build at this time.

 

Thanks for reporting the problem, it is definitely a bug (but not a crash).

I'll fix it soon.

 

Not for nothing, I'm happy to help gemrb.

 

Regards.

 

Salud y Revolución.

 

Lobo.

Link to comment

Yeah, that's something for valgrind, and if you find the cause (or even provide a patch), it would be really helpful.

And yes, you did right with the plugin.

I also fixed the guiscript bug with the stores. (will appear in public cvs soon).

Link to comment
Guest Raz_Lobo

Hi all,

 

Well, I'm too busy last two days, sorry about.

 

Yeah, that's something for valgrind, and if you find the cause (or even provide a patch), it would be really helpful.

And yes, you did right with the plugin.

 

O.k, I try today after build gemr from cvs. Two test realized:

 

1· Remove nullsound and try to execute gemrb with BG1. Gemrb crash at same point, after character generation and start game.

 

2· With nullsound pluging remove, try gemrb with Valgrind, wow! What's happening? Sound in videos but sound lost after character generation and start game but, gemrb NO crash!

 

Here are valgrind output:

 

--------- console cut ------------

[KEYImporter]: Searching for fountn.bam...[FOUND]

[KEYImporter]: Searching for chimsmk.bam...[FOUND]

[KEYImporter]: Searching for butrfly.bam...[FOUND]

[KEYImporter]: Searching for fish3l.bam...[FOUND]

[KEYImporter]: Searching for fish1l.bam...[FOUND]

Loading entrances

Loading variables

Loading ambients

Loading automap notes

Loading tiles

Loading explored bitmap

Loading wallgroups

[KEYImporter]: Searching for amb_tav.wav...[FOUND]

==30226==

==30226== Invalid read of size 4

==30226== at 0xECF95F4: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:352)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

==30226== by 0x10001858: main (GemRB.cpp:53)

==30226== Address 0xA5587D8 is 0 bytes inside a block of size 4,136 free'd

==30226== at 0xFFBB1D0: operator delete(void*) (vg_replace_malloc.c:244)

==30226== by 0xFF39A6C: CachedFileStream::~CachedFileStream() (CachedFileStream.cpp:114)

==30226== by 0xECF751C: CACMReader::~CACMReader() (readers.h:63)

==30226== by 0xECF61E4: CreateSoundReader(DataStream*, int, int, bool) (readers.cpp:219)

==30226== by 0xECF9668: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:349)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

==30226==

==30226== Invalid write of size 4

==30226== at 0xFF33908: DataStream::~DataStream() (DataStream.cpp:34)

==30226== by 0xECF9604: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:352)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

==30226== by 0x10001858: main (GemRB.cpp:53)

==30226== Address 0xA5587D8 is 0 bytes inside a block of size 4,136 free'd

==30226== at 0xFFBB1D0: operator delete(void*) (vg_replace_malloc.c:244)

==30226== by 0xFF39A6C: CachedFileStream::~CachedFileStream() (CachedFileStream.cpp:114)

==30226== by 0xECF751C: CACMReader::~CACMReader() (readers.h:63)

==30226== by 0xECF61E4: CreateSoundReader(DataStream*, int, int, bool) (readers.cpp:219)

==30226== by 0xECF9668: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:349)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

==30226==

==30226== Invalid free() / delete / delete[]

==30226== at 0xFFBB1D0: operator delete(void*) (vg_replace_malloc.c:244)

==30226== by 0xFF3390C: DataStream::~DataStream() (DataStream.cpp:36)

==30226== by 0xECF9604: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:352)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

==30226== by 0x10001858: main (GemRB.cpp:53)

==30226== Address 0xA5587D8 is 0 bytes inside a block of size 4,136 free'd

==30226== at 0xFFBB1D0: operator delete(void*) (vg_replace_malloc.c:244)

==30226== by 0xFF39A6C: CachedFileStream::~CachedFileStream() (CachedFileStream.cpp:114)

==30226== by 0xECF751C: CACMReader::~CACMReader() (readers.h:63)

==30226== by 0xECF61E4: CreateSoundReader(DataStream*, int, int, bool) (readers.cpp:219)

==30226== by 0xECF9668: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:349)

==30226== by 0xECFB52C: AmbientMgrAL::AmbientSource::AmbientSource(Ambient*) (AmbientMgrAL.cpp:177)

==30226== by 0xECFB7AC: AmbientMgrAL::setAmbients(std::vector<Ambient*, std::allocator<Ambient*> > const&) (AmbientMgrAL.cpp:57)

==30226== by 0xFF13998: Map::SetupAmbients() (Map.cpp:2131)

==30226== by 0xFEF1368: Game::GetMap(char const*, bool) (Game.cpp:504)

==30226== by 0xFEF7604: GameControl::ChangeMap(Actor*, bool) (GameControl.cpp:1793)

==30226== by 0xFF29674: Interface::HandleFlags() (Interface.cpp:601)

==30226== by 0xFF2D9F4: Interface::Main() (Interface.cpp:911)

[ACMImp::Play]: Can't create sound reader. Invalid SoundResRef: amb_tav, Dequeueing...

[KEYImporter]: Searching for amb_e28.wav...[FOUND]

[ACMImp::Play]: Can't create sound reader. Invalid SoundResRef: amb_e28, Dequeueing...

[KEYImporter]: Searching for amb_e28.wav...[FOUND]

[ACMImp::Play]: Can't create sound reader. Invalid SoundResRef: amb_e28, Dequeueing...

[KEYImporter]: Searching for amb_e28.wav...[FOUND]

[ACMImp::Play]: Can't create sound reader. Invalid SoundResRef: amb_e28, Dequeueing...

[KEYImporter]: Searching for amb_e28.wav...[FOUND]

[ACMImp::Play]: Can't create sound reader. Invalid SoundResRef: amb_e28, Dequeueing...

[KEYImporter]: Searching for music.2da...[Found in GemRB Override]

[KEYImporter]: Searching for GUIW.chu...[FOUND]

[KEYImporter]: Searching for guiwbtp2.mos...[FOUND]

[KEYImporter]: Searching for guiwsbr.bam...[FOUND]

[KEYImporter]: Searching for guiwsbr.bam...[FOUND]

[KEYImporter]: Searching for guiwctlc.bam...[FOUND]

------- end of cut ---------

 

After this, there are some more valgrind debug output (after the story screen):

 

---------- console output --------

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

 

--------------- too long searching for fist.itm --------

 

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for cmnk1g1.bam...[FOUND]

[KEYImporter]: Searching for cemf1g1.bam...[FOUND]

[KEYImporter]: Searching for chmf1g1.bam...[FOUND]

Using weapon ref wpLQSg1

[KEYImporter]: Searching for wpLQSg1.bam...[FOUND]

CheckVariable globalchapter: -1

[KEYImporter]: Searching for GUICHAP.chu...[FOUND]

/home/razer/Baldur_gate/Spanishmusic/chapter.mus [NOT FOUND]

[KEYImporter]: Searching for guichp0b.mos...[FOUND]

[KEYImporter]: Searching for bigbutt.bam...[FOUND]

[KEYImporter]: Searching for bigbutt.bam...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for chptxt0.2da...[FOUND]

[KEYImporter]: Searching for GUIW.chu...[FOUND]

Displaying string on: ar2600

[KEYImporter]: Searching for textpop.wav...[FOUND]

==30226==

==30226== Invalid read of size 4

==30226== at 0xECF95F4: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:352)

==30226== by 0xECF9858: ACMImp::Play(char const*, int, int, unsigned) (ACMImp.cpp:389)

==30226== by 0xFEE60D4: DisplayStringCore(Scriptable*, int, int) (GSUtils.cpp:305)

==30226== by 0xFED5278: GameScript::DisplayString(Scriptable*, Action*) (Actions.cpp:1236)

==30226== by 0xFEC49AC: GameScript::ExecuteAction(Scriptable*, Action*) (GameScript.cpp:2881)

==30226== by 0xFF4AB2C: Scriptable::ProcessActions(bool) (ActorBlock.cpp:341)

==30226== by 0xFF18418: Map::UpdateScripts() (Map.cpp:602)

==30226== by 0xFEF3118: Game::UpdateScripts() (Game.cpp:1013)

==30226== by 0xFEF98C8: GameControl::Draw(unsigned short, unsigned short) (GameControl.cpp:272)

==30226== by 0xFF05FD8: Window::DrawWindow() (Window.cpp:121)

==30226== by 0xFF27A18: Interface::DrawWindows() (Interface.cpp:2969)

==30226== by 0xFF2D8B4: Interface::Main() (Interface.cpp:917)

==30226== Address 0x60C1828 is 0 bytes inside a block of size 4,136 free'd

==30226== at 0xFFBB1D0: operator delete(void*) (vg_replace_malloc.c:244)

==30226== by 0xFF39A6C: CachedFileStream::~CachedFileStream() (CachedFileStream.cpp:114)

==30226== by 0xECF751C: CACMReader::~CACMReader() (readers.h:63)

==30226== by 0xECF61E4: CreateSoundReader(DataStream*, int, int, bool) (readers.cpp:219)

==30226== by 0xECF9668: ACMImp::LoadSound(char const*, int*) (ACMImp.cpp:349)

==30226== by 0xECF9858: ACMImp::Play(char const*, int, int, unsigned) (ACMImp.cpp:389)

==30226== by 0xFEE60D4: DisplayStringCore(Scriptable*, int, int) (GSUtils.cpp:305)

==30226== by 0xFED5278: GameScript::DisplayString(Scriptable*, Action*) (Actions.cpp:1236)

==30226== by 0xFEC49AC: GameScript::ExecuteAction(Scriptable*, Action*) (GameScript.cpp:2881)

==30226== by 0xFF4AB2C: Scriptable::ProcessActions(bool) (ActorBlock.cpp:341)

==30226== by 0xFF18418: Map::UpdateScripts() (Map.cpp:602)

==30226== by 0xFEF3118: Game::UpdateScripts() (Game.cpp:1013)

[ACMImp::Play]: Can't create sound reader. Setting variable("globaltethtoril", 16665191)

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalcriminal: 0

[KEYImporter]: Searching for chmf1g1e.bam...[FOUND]

Using weapon ref wpLQSg1e

[KEYImporter]: Searching for wpLQSg1e.bam...[FOUND]

CheckVariable globalchapter: 0

CheckVariable globalpardaspawn: 0

CheckVariable globalcarbos: 0

CheckVariable globalkaranspawn: 0

CheckVariable globalshank: 0

CheckVariable globalobe: 0

CheckVariable global2643door: 0

Setting variable("global2643door", 1)

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalcriminal: 0

Using weapon ref wpLQSg1

[KEYImporter]: Searching for wpLQSg1.bam...[FOUND]

CheckVariable globalchapter: 0

CheckVariable globalpardaspawn: 0

CheckVariable globalcarbos: 0

CheckVariable globalkaranspawn: 0

CheckVariable globalshank: 0

CheckVariable globalobe: 0

CheckVariable global2643door: 1

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalcriminal: 0

CheckVariable globalchapter: 0

[KEYImporter]: Searching for watch3.cre...[FOUND]

[KEYImporter]: Searching for watch3.bcs...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[CREImp]: Invalid item index (512) in creature!

[CREImp]: Invalid item index (256) in creature!

[KEYImporter]: Searching for staf01.itm...[FOUND]

SLOT 10 staf01

EQUIP 0x0000

UpdateWeaponAnimation: 0, 35, 35, 4

UpdateWeaponAnimation: 35

UpdateWeaponAnimation: 0, 35, 35, 4

UpdateWeaponAnimation: 35

EQUIP2 0x0040

[CREImp]: Dangling item in creature: helm10!

[CREImp]: Dangling item in creature: plat01!

UpdateWeaponAnimation: 0, 35, 35, 4

UpdateWeaponAnimation: 35

CreateCreature: watch3 at [1572.2453] face:0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalattackedcandlekeep: 0

CheckVariable globalcriminal: 0

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

[KEYImporter]: Searching for fist.itm...[FOUND]

CheckVariable globalchapter: 0

CheckVariable globalpardaspawn: 0

-------- end of console output ---------

 

I note too that in character generation I can't to choose sound character, I supposed that this feature is not implemented yet.

 

About send a patch, I'll be really happy sending a patch, but I don't know

program in python or c++, perhaps in a future... :-(

 

I also fixed the guiscript bug with the stores. (will appear in public cvs soon).

 

O.k. I try now.

 

Yes, you fixed, great work!

I note that there are not items to store or to steal, not implemented I suppose.

 

Well, that's all for now, when I have a little of time I'll open a new thread about some BG1 stuffs and dudes.

 

Regards,

 

Salud y Revolución.

 

Lobo.

Link to comment

Hi all,

 

Sorry again for delay in reply.

 

Well, first of all, IT WORKS!!! Great work for you Avenger. Now, Gemrb get sound, I until need to revised my directory game because play some english voice instead spanish voice and lost some sound, but Gemrb plays well BG1 with sound.

 

You helped already, wjp found the problem with the sound reader.

I also tried to make it compatible with ppc.

So, chances are it will be working now.

 

I'm happy for this fact, helping Gemrb helps me too :p

 

I'll continue testing Gemrb and send you the bug, troubles and other stuff that I'll have to encounter in BG1.

 

Regards,

 

Salud y Revolución.

 

Lobo.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...