View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001475 | Spring engine | Lua | public | 2009-06-28 00:51 | 2010-11-29 16:50 | ||||
Reporter | cranphin | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.79.1.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001475: COggStream: Out of memory. in Spring.PlaySoundStream | ||||||||
Description | This is on version: Spring 0.79.1.2 (0.79.1.2-0-gbb45722{@}-cmake-tdm) I'm trying to use the widget which can be found in: http://springrts.com/phpbb/viewtopic.php?f=23&t=19100 Which is A modified gui_music.lua, which in turn is a 'battle music' widget. Whenever I start the widget I get the following (From infolog.txt): [ 187] Loading: C:\Program Files\Spring\LuaUI\Widgets\gui_music.lua [ 223] Sound: COggStream: Out of memory. [ 223] Sound: COggStream: Invalid name passed as an argument to an AL call. [ 224] Sound: CSound::Update: Invalid name passed as an argument to an AL call. [ 224] Sound: COggStream: Invalid name passed as an argument to an AL call. [ 224] Sound: COggStream: Invalid name passed as an argument to an AL call. I have valid ogg files (play well in winamp) placed in the correct folder (I can tell cause moving them results in a different error). I think somehow the Spring.PlaySoundStream(...) got broken over time, and noone noticed cause not many use the widget (or noone cares :) ). To make sure it's not something funky in the script, I've added a version stripped to the bare bones, it only plays a single ogg. This script still creates the same error (I'll attach this script, and the .ogg I'm testing with). | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
cranphin (reporter) 2009-06-28 01:51 |
Oh yeah :) Just to be clear, this is on windows XP 32 bit :) |
Auswaschbar (reporter) 2009-06-28 12:00 |
How much RAM do you have, and how much of it is free for spring? |
cranphin (reporter) 2009-06-28 12:56 |
Hi! I've got 4GB of ram, on XP only around 3GB can be addressed tho. There's another 6GB of virtual/swap 'memory' setup. Typically (based on sysinternal process explorers physical memory graph) there's around 750mb in use before starting Spring. This means Spring has pretty much as much ram as it can address :) (Which on win32 normally is 2GB I believe) I'm fairly certain I'm not running into any reasonable memory limits, mayby something tries to allocate unreasonable amounts of memory though. Cheers! |
cranphin (reporter) 2009-06-28 13:36 |
Hmm, interesting, a friend on Spring 0.79.1.1 (0.79.1.1-0-gbdbc2b9{@}-cmake-tdm) does not have the same issue. Just to be sure I'll re-install that old version :) Mayby it has to do with my X-Fi or so though. |
cranphin (reporter) 2009-06-28 13:41 |
Before I try that, this is what the sound system seems to log: [ 0] Sound: OpenAL info: [ 0] Sound: Vendor: Creative Labs Inc. [ 0] Sound: Version: OpenAL version 1.1 [ 0] Sound: Renderer: SB X-Fi Audio [D000] [ 0] Sound: AL Extensions: EAX EAX1.0 EAX2.0 EAX3.0 EAX4.0 EAX5.0 [ 0] Sound: ALC Extensions: None [ 0] Sound: Device: SB X-Fi Audio [D000] [ 0] Sound: Available Devices: [ 0] Sound: SB X-Fi Audio [D000] [ 0] Sound: Generic Hardware [ 0] Sound: Generic Software [ 0] Sound: CSound(): Sucessfully parsed 4 SoundItems from gamedata/sounds.lua Not sure if it helps, but who knows :) |
cranphin (reporter) 2009-06-28 13:53 |
Right, switched off the X-Fi in device manager, enabled my onboard audio. Didn't work, but logged different errors, and no out of memory (note the can not handle more than 29 soundsources): [ 0] Sound: OpenAL info: [ 0] Sound: Vendor: Creative Labs Inc. [ 0] Sound: Version: 1.1 [ 0] Sound: Renderer: Software [ 0] Sound: AL Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE [ 0] Sound: ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX [ 0] Sound: Device: Generic Hardware [ 0] Sound: Available Devices: [ 0] Sound: Generic Hardware [ 0] Sound: Generic Software [ 0] Sound: SoundSource::SoundSource: Invalid Value [ 0] Sound: SoundSource::~SoundSource: Invalid Name [ 0] Sound: Your hardware/driver can not handle more than 29 soundsources [ 0] Sound: CSound(): Sucessfully parsed 4 SoundItems from gamedata/sounds.lua [ 97] Sound: COggStream: Invalid Value [ 97] Sound: CSound::Update: Invalid Name [ 97] Sound: SoundSource::IsPlaying: Invalid Name [ 98] Sound: COggStream: Invalid Name [ 98] Sound: COggStream: Invalid Name |
cranphin (reporter) 2009-06-28 13:55 |
Some succes :) Still with X-Fi disabled and onboard enabled, but thistime simultanous sounds in springsettings.exe down to 20: [ 0] Sound: OpenAL info: [ 0] Sound: Vendor: Creative Labs Inc. [ 0] Sound: Version: 1.1 [ 0] Sound: Renderer: Software [ 0] Sound: AL Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE [ 0] Sound: ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX [ 0] Sound: Device: Generic Hardware [ 0] Sound: Available Devices: [ 0] Sound: Generic Hardware [ 0] Sound: Generic Software [ 0] Sound: CSound(): Sucessfully parsed 4 SoundItems from gamedata/sounds.lua Now we've got music playing! :D Hmm, wonder what happens if I keep simultanous sounds low and re-enable the X-Fi. |
cranphin (reporter) 2009-06-28 14:00 |
And yup, now it works XD Ok, so X-Fi + 128 simultaneous sounds + Spring.PlaySoundStream(...) eats up too much memory, -somewhere-, or something like that, even tho the sound card does seem to support it :) Not sure if that's fixable, mayby error handling could be improved upon a bit tho :) Atlteast I've got a setup that's good enough for me now :) If anyone wants to do anything more with this, I'm happy to help them with debugging, I'm monitoring this call :) Cheers! |
Auswaschbar (reporter) 2009-06-28 14:04 |
Is your card one of those which have some meory built in? |
cranphin (reporter) 2009-06-28 15:28 |
Yes, it's on if the X-Fi with 'X-Ram', most useless fail feature ever :) |
abma (administrator) 2010-11-29 16:50 |
works like a charm... can't say which commit it fixed. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-28 00:51 | cranphin | New Issue | |
2009-06-28 00:51 | cranphin | File Added: gui_music_test.lua | |
2009-06-28 00:52 | cranphin | File Added: 09.ogg | |
2009-06-28 01:51 | cranphin | Note Added: 0003681 | |
2009-06-28 12:00 | Auswaschbar | Note Added: 0003684 | |
2009-06-28 12:56 | cranphin | Note Added: 0003685 | |
2009-06-28 13:36 | cranphin | Note Added: 0003686 | |
2009-06-28 13:41 | cranphin | Note Added: 0003687 | |
2009-06-28 13:53 | cranphin | Note Added: 0003688 | |
2009-06-28 13:55 | cranphin | Note Added: 0003689 | |
2009-06-28 14:00 | cranphin | Note Added: 0003690 | |
2009-06-28 14:04 | Auswaschbar | Note Added: 0003691 | |
2009-06-28 15:28 | cranphin | Note Added: 0003692 | |
2010-11-29 16:50 | abma | Note Added: 0006005 | |
2010-11-29 16:50 | abma | Status | new => resolved |
2010-11-29 16:50 | abma | Resolution | open => fixed |
2010-11-29 16:50 | abma | Assigned To | => abma |