Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Geoff McLane wrote: > As expected, the console output shows the line :- > ALC Error (sound manager): ALC_INVALID_DEVICE at load file > indicating some previous un-check, thus un-handled, ALC > error... Ok I'll try to see why that is. Erik -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Hi Erik, >> ... added the checks ... Thanks. Deleted my modified soundmgr_openal.cxx, did a CVS update, and re-compile, and it all worked, at least for the default Cessna... As expected, the console output shows the line :- ALC Error (sound manager): ALC_INVALID_DEVICE at load file indicating some previous un-check, thus un-handled, ALC error... But it FLIES, with sounds! TAB (for Thanks A Bunch ;=))... Regards, Geoff. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Ok, the returned error turned out to be an uncatched ALC or AL error situation. I've now added the checks for them prior to calling the alutLoad* function. This will probably not solve the problem but it will give a more precise hint on what's going on. Erik -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Hi Erik, Again, thank you for taking the time to reply... >> line 'int error = alutGetError();' should clear >> any error for the next call. Yes, but that call is done AFTER the WAV load, but taking your idea, and the fact that the previous error message does state 'already' an error, applied the following small patch - added 5 lines :- Index: simgear/sound/soundmgr_openal.cxx === RCS file: /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v retrieving revision 1.87 diff -u -r1.87 soundmgr_openal.cxx --- simgear/sound/soundmgr_openal.cxx 4 Jan 2010 14:53:26 - 1.87 +++ simgear/sound/soundmgr_openal.cxx 12 Jan 2010 12:44:03 - @@ -543,6 +543,11 @@ bool SGSoundMgr::load(string &samplepath, void **dbuf, int *fmt, size_t *sz, int *frq ) { +string s = "load: "; +s += samplepath; +testForALError(s); +testForALCError(s); + if ( !_working ) return false; ALenum format; Then fgfs ran fine, with simple sounds, with the console output :- ~/fg/fg7$ ./run_fgfs.sh run_fgfs.sh: Running: ./fgfs --fg-root=/home/geoff/fg/fg7/fgfs/data & ~/fg/fg7$ FGMultiplayMgr - No receiver port, Multiplayermode disabled KI266 dme indicator #0 initialized loading scenario 'nimitz_demo' creating 3D noise texture... DONE Initializing Nasal Electrical System ALC Error (sound manager): ALC_INVALID_DEVICE at load: /home/geoff/fg/fg7/fgfs/data/Sounds/rumble.wav PNG lib warning : Incomplete compressed datastream in iCCP chunk PNG lib warning : Profile size field missing from iCCP chunk power up So it seems this ALC error is further back in the code, and is not checked and cleared until 'load' is reached... And once cleared by my patch, the wav load proceeds, and fgfs _FLIES_ ;=)) As indicated, I have libalut0 and -dev 1.1.0-1 only installed, through the Ubuntu Package Manager, and have NOT tried building, and using FreeALUT, OpenAL-Sample nor OpenAL-Soft in Ubuntu. And as previously reported, when I run fgfs with the show 'device' option, I get a 'blank' for device 0, and "weird vorbid_get\n" for device 1, as per :- ~/fg/fg7$ ./run_fgfs.sh --show-sound-devices run_fgfs.sh: Running: ./fgfs --fg-root=/home/geoff/fg/fg7/fgfs/data --show-sound-devices & ~/fg/fg7$ Software provided by OpenAL Community No. Device 0. "" 1. "weird vorbid_get " When I open my Ubuntu 8.04 LTS System -> Preferences -> Sound my 'Sound Preferences' dialog shows as follows, with the results when I selected and tested each with the [Test] button :- Tab: Devices Sound Events Sound playback: Autodetect (selected) Options: Autodetect - test tone works STAC92xx Digital - test failed, nothing STAC92xx Analog - test tone works ATI HDMI - test failed, nothing ALSA - Advanced Linux Sound Architecture - works OSS - Open Sound System - test tone works PulseAudio Sound Server - test tone works Music and Movies: Sound playback: Autodetect (selected) Options: as above list Audio Conferencing Sound playback: Autodetect (selected) Options: as above list Sound capture: STAC92xx Analog (selected) Options: STAC92xx Analog, ALSA, OSS, PulseAudio, Test sound, Silence Default Mixer Tracks Device: HDA Intel (Also mixer) - selected Options: Similar list to the above. And no rush, now that I have fgfs up and running with my above patch ;=)). HTH Regards, Geoff. PS: Still the strange PNG warnings, per console... -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Alan Teeder wrote: > Eric > > Could you let us know which version of Alut and OpenAl you are using for > your sound development work. I've been using FreeALUT (CVS version but it has not many changes compared to version 1.0) and have used OpenAL-Sample (CVS), OpenAL-Soft (CVS) and my own OpenAL implementation (all Linux). Erik -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Eric Could you let us know which version of Alut and OpenAl you are using for your sound development work. It would help if we were all playing from the same sheet of music.. I still see the stack related problem. Alan -- From: "Erik Hofman" Sent: Monday, January 11, 2010 7:45 PM To: "FlightGear developers discussions" Subject: Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav? > Geoff McLane wrote: > >> Thank you for the reply, but now I am even more >> confused ;=() > > Ah wait, I looked at the code for a different ALUT version.. > I must have looked at the wrong code because of "it ran great a few days > ago, when I reported all seemed well... but now..." and the code I > looked at was changed just a few days ago. > > I'm starting to wonder what has changed in the mean time.. need to look > at that this week (I'm quite busy so i can't promise any time frame). > > I looks odd since this line 'int error = alutGetError();' should clear > any error for the next call. > > Erik > > -- > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > ___ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Geoff McLane wrote: > Thank you for the reply, but now I am even more > confused ;=() Ah wait, I looked at the code for a different ALUT version.. I must have looked at the wrong code because of "it ran great a few days ago, when I reported all seemed well... but now..." and the code I looked at was changed just a few days ago. I'm starting to wonder what has changed in the mean time.. need to look at that this week (I'm quite busy so i can't promise any time frame). I looks odd since this line 'int error = alutGetError();' should clear any error for the next call. Erik -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
On Sun, 2010-01-10 at 20:18 +0100, Erik Hofman wrote: > Geoff McLane wrote: > > Hi all, > > > But in Ubuntu 8.04 LTS, now get an error exit when running the > > default c172... it ran great a few days ago, when I reported > > all seemed well... but now... > > > Running it under gdb, and setting a break point > > at SGSoundMgr::load(), and on the 2nd time > > through this function, got the trace attached... > > > > Essentially from the lines of code - > > > > 555 data = alutLoadMemoryFromFile(samplepath.c_str(), &format, > > &size, &freqf ); > > 556 freq = (ALsizei)freqf; > > 557 int error = alutGetError(); > > 558 if (data == NULL || error != ALUT_ERROR_NO_ERROR) { > > > > the 'data' is NULL, but even if it was not, additionally > > 'error' contains a value 518 (0x206)... > > > > Again, I though I had read this before in a recent board > > message, and thought a CVS 'fix' had been made, but now not > > so sure... > > At least it's not the latest CVS code, this code has been replaced by a > (supposedly) better check. > > Erik > Hi Erik, Thank you for the reply, but now I am even more confused ;=() This is the soundmgr_openal.cxx I have... ~/fg/fg7/simgear/source/simgear/sound$ cvs status soundmgr_openal.cxx === File: soundmgr_openal.cxx Status: Up-to-date Working revision: 1.87 Repository revision: 1.87 /var/cvs/SimGear-0.3/source/simgear/sound/soundmgr_openal.cxx,v Sticky Tag:(none) Sticky Date: (none) Sticky Options: (none) And that contains the code, in function SGSoundMgr::load() ... #if defined(ALUT_API_MAJOR_VERSION) && ALUT_API_MAJOR_VERSION >= 1 ALfloat freqf; data = alutLoadMemoryFromFile(samplepath.c_str(), &format, &size, &freqf ); freq = (ALsizei)freqf; int error = alutGetError(); if (data == NULL || error != ALUT_ERROR_NO_ERROR) { string msg = "Failed to load wav file: "; msg.append(alutGetErrorString(error)); throw sg_io_exception(msg.c_str(), sg_location(samplepath)); return false; } #else You mean ALUT_API_MAJOR_VERSION should NOT be defined, or be less than 1??? The included file, through #include , which in my case is in /usr/include/AL/alut.h, contains :- #define ALUT_API_MAJOR_VERSION 1 #define ALUT_API_MINOR_VERSION 1 Is this the WRONG alut.h??? But it all works fine with the simple 'hello world' OpenAL sample code... And doing 'make check' in SG/sound, openal_test1, 2, and 3, each seem to run ok... And when I tried a compile using the 'alternative' coded alutLoadWAVFile() I get a warning that this is 'depreciated', and get the SAME error exit anyway... and the code changes, checking that alutGetErrorString(error) returns a value is only in this 'alternate' code... As stated, getting confused... Is there anything else I can try, check, install? As advised, it all ran fine a week or so ago... Regards, Geoff. gdb debug text: http://geoffair.net/tmp/gdb-02.txt -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Ubuntu fatal error - rumble.wav?
Geoff McLane wrote: > Hi all, > But in Ubuntu 8.04 LTS, now get an error exit when running the > default c172... it ran great a few days ago, when I reported > all seemed well... but now... > Running it under gdb, and setting a break point > at SGSoundMgr::load(), and on the 2nd time > through this function, got the trace attached... > > Essentially from the lines of code - > > 555 data = alutLoadMemoryFromFile(samplepath.c_str(), &format, > &size, &freqf ); > 556 freq = (ALsizei)freqf; > 557 int error = alutGetError(); > 558 if (data == NULL || error != ALUT_ERROR_NO_ERROR) { > > the 'data' is NULL, but even if it was not, additionally > 'error' contains a value 518 (0x206)... > > Again, I though I had read this before in a recent board > message, and thought a CVS 'fix' had been made, but now not > so sure... At least it's not the latest CVS code, this code has been replaced by a (supposedly) better check. Erik -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Ubuntu fatal error - rumble.wav?
Hi all, Yow! I tried to check my WIN32 compile problem in Ubuntu! Did a CVS update SG/FG/data about a few hours ago, and NO PROBLEMS with the linux compile, so will go back and check my WIN32 compile error later... But in Ubuntu 8.04 LTS, now get an error exit when running the default c172... it ran great a few days ago, when I reported all seemed well... but now... Console output :- ~/fg/fg7$ ./run_fgfs.sh run_fgfs.sh: Running: ./fgfs --fg-root=/home/geoff/fg/fg7/fgfs/data & ~/fg/fg7$ FGMultiplayMgr - No receiver port, Multiplayermode disabled KI266 dme indicator #0 initialized loading scenario 'nimitz_demo' creating 3D noise texture... DONE Initializing Nasal Electrical System Fatal error: Failed to load wav file: There was already an ALC error on entry to an ALUT function at /home/geoff/fg/fg7/fgfs/data/Sounds/rumble.wav ~/fg/fg7$ The rumble.wav is there, in the data, but the message does say there was already an ALC error, so maybe the problem is further back??? Running it under gdb, and setting a break point at SGSoundMgr::load(), and on the 2nd time through this function, got the trace attached... Essentially from the lines of code - 555 data = alutLoadMemoryFromFile(samplepath.c_str(), &format, &size, &freqf ); 556 freq = (ALsizei)freqf; 557 int error = alutGetError(); 558 if (data == NULL || error != ALUT_ERROR_NO_ERROR) { the 'data' is NULL, but even if it was not, additionally 'error' contains a value 518 (0x206)... Again, I though I had read this before in a recent board message, and thought a CVS 'fix' had been made, but now not so sure... Others seeing this? Any other information I can provide? Geoff. Well not attached, but online at :- http://geoffair.net/tmp/gdb-02.txt -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel