[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Frederic Bouvier -- Sunday 12 February 2006 16:54:
 Isao Yamashita wrote :
  ...
  Audio initialization failed!
 Could not change the current ALC context
  Adding subsystem fx
  Adding subsystem voice
ATC Display
ATC Manager

 It looks like the new voice subsystem is causing you problems.

No, it doesn't look like it.

m.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Isao Yamashita
I hope it's an OpenAL problem. I tried with --disable-sound option too, didn't work either.  IsaoMelchior FRANZ [EMAIL PROTECTED] wrote: * Frederic Bouvier -- Sunday 12 February 2006 16:54: Isao Yamashita wrote :  ...  Audio initialization failed! Could not change the current ALC context  Adding subsystem fx  Adding subsystem voiceATC DisplayATC Manager It looks like the new voice subsystem is causing you problems.No, it doesn't look like it.m.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as 
 surfing
 the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Flightgear-devel mailing listFlightgear-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/flightgear-devel

[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Isao Yamashita -- Sunday 12 February 2006 19:07:
  #6  0x083a0ff8 in SGSoundSample::load_file (this=0xb2da290, path=0x0,
  file=0xb2da10c default.wav) at sample_openal.cxx:388
[...]
  I suspect somewhere around the trace #6 or #7 is causing the problem.

Yes, and I say it the last time: your sound isn't working. Either
the openal lib is too old, or the driver for your sound card, or
something. May I remember you:

| [Thread -1435599952 (zombie) exited]
| Audio initialization failed!
| Could not change the current ALC context

Try running the sound tests in SimGear/simgear/sound/.

m.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Mathias Fröhlich
On Sunday 12 February 2006 19:12, Melchior FRANZ wrote:
 Yes, and I say it the last time: your sound isn't working. Either
 the openal lib is too old, or the driver for your sound card, or
Well, yes.
But is that a reason for flightgear to quit?

  Greetings

   Mathias

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Mathias Fröhlich -- Sunday 12 February 2006 19:17:
 On Sunday 12 February 2006 19:12, Melchior FRANZ wrote:
  Yes, and I say it the last time: your sound isn't working. Either
  the openal lib is too old, or the driver for your sound card, or
 Well, yes.
 But is that a reason for flightgear to quit?

No, but that's not the problem we are discussing here, is it?

m.


PS: and I know it should be May I *remind* you :-)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Mathias Fröhlich -- Sunday 12 February 2006 19:28:
 On Sunday 12 February 2006 19:19, Melchior FRANZ wrote:
  No, but that's not the problem we are discussing here, is it?
 I believe it is.

Others will profit from better error message, yes. But Isao's problem
won't be solved by that.


 
 We have fg that just aborts. That is a problem regardless of the availability 
 of a soundcard.

One cause for this is that people use wrongly compiled freeglut/SDL libs,
where exceptions aren't enabled and thus the stack unwinding informaion
is lost. So the boostrap function never gets the exception, but rather
calls terminate() and aborts. This is not a FlightGear bug. OTOH, we
suffer from it and should maybe add a hint to the error message or
a trouble-shooting README.



 Do you already have a clue where in simgears code this exception is thrown?

Nope. But linking with a (free)glut/SDL lib that was configured/compiled/linked
with CFLAGS=-fexceptions $CFLAGS LDFLAGS=-fexceptions $LDFLAGS ./configure
should be more helpful.

m.  :-)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Isao Yamashita
I've installed my SimGear in /home/knoppix/ , not in /home/knoppix/FlightGear-0.9.9/  For some reason, there is only source directory for SimGear. I don't see any other SimGear related stuff in /home/knoppix/ .  Anyway, I went to /home/knoppix/source/simgear/sound , and did ./openal_test1 jet.wav and ./openal_test2 jet.wav  With ./openal_test1 jet.wav , I get no error but no sound. But with ./openal_test2 jet.wav, I get the same exception !  terminate called after throwing an instance of 'sg_io_exception' Aborted  But I hear the jet.wav just fine with XMMS.  That's what gets me confused.  Isao Melchior FRANZ [EMAIL PROTECTED] wrote: * Isao Yamashita -- Sunday 12 February 2006 19:07:  #6  0x083a0ff8 in SGSoundSample::load_file (this=0xb2da290, path=0x0,&
 gt; 
 file=0xb2da10c "default.wav") at sample_openal.cxx:388[...]  I suspect somewhere around the trace #6 or #7 is causing the problem.Yes, and I say it the last time: your sound isn't working. Eitherthe openal lib is too old, or the driver for your sound card, orsomething. May I remember you:| [Thread -1435599952 (zombie) exited]| Audio initialization failed!| Could not change the current ALC contextTry running the sound tests in SimGear/simgear/sound/.m.---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Flightgear-devel mailing
 listFlightgear-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/flightgear-devel

Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Frederic Bouvier
Melchior FRANZ wrote :
 Do you already have a clue where in simgears code this exception is thrown?
 

 Nope. But linking with a (free)glut/SDL lib that was 
 configured/compiled/linked
 with CFLAGS=-fexceptions $CFLAGS LDFLAGS=-fexceptions $LDFLAGS ./configure
 should be more helpful.
   


May I remind you the helpfull stack sent by Isao ?

 This is the stack trace I've got :

 (gdb) info stack
 #0  0xb7a9a7a7 in raise () from /lib/tls/libc.so.6
 #1  0xb7a9c04b in abort () from /lib/tls/libc.so.6
 #2  0xb7c66de9 in __gnu_cxx::__verbose_terminate_handler ()
from /usr/lib/libstdc++.so.6
 #3  0xb7c64765 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
 #4  0xb7c647a2 in std::terminate () from /usr/lib/libstdc++.so.6
 #5  0xb7c6490a in __cxa_throw () from /usr/lib/libstdc++.so.6
 #6  0x083a0ff8 in SGSoundSample::load_file (this=0xb2da290, path=0x0,
 file=0xb2da10c default.wav) at sample_openal.cxx:388
 #7  0x080c61f2 in FGATCVoice::LoadVoice (this=0xb1e8040,
 [EMAIL PROTECTED])
 at ATCVoice.cxx:58
 #8  0x0809552a in FGATCMgr::init (this=0xb1e48f8) at ATCmgr.cxx:113
 #9  0x08065d7f in fgInitSubsystems () at fg_init.cxx:1698
 #10 0x08054408 in fgIdleFunction () at main.cxx:885
 #11 0xb7e86206 in glutMainLoop () from /usr/lib/libglut.so.3
 #12 0x08051aa2 in fgMainInit (argc=2, argv=0xbf800064) at main.cxx:1023
 #13 0x080511dc in main (argc=0, argv=0x0) at bootstrap.cxx:198
 (gdb)


line 388, file sample_openal.cxx, there is :

 #if defined(ALUT_API_MAJOR_VERSION)  ALUT_API_MAJOR_VERSION = 1
 ALfloat freqf;
 data = alutLoadMemoryFromFile(samplepath.c_str(), format, size,
 freqf );
 if (data == NULL) {
 throw sg_io_exception(Failed to load wav file.,
 sg_location(samplepath.str()));
 }
 freq = (ALsizei)freqf;
 #else


This throw needs a try {} catch {} somewhere. I will commit a fix soon.

-Fred






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Frederic Bouvier -- Sunday 12 February 2006 20:08:
 May I remind you the helpfull stack sent by Isao ?

Sure. But now I was talking with Mathias about the other problem. :-P



  #7  0x080c61f2 in FGATCVoice::LoadVoice (this=0xb1e8040,
  [EMAIL PROTECTED])
  at ATCVoice.cxx:58

(BTW: this has nothing to do with the new voice code.)



 line 388, file sample_openal.cxx, there is :
[...]
 This throw needs a try {} catch {} somewhere. I will commit a fix soon.

Would be useful. But it is not the reason why fgfs doesn't show
the exception text, as I explained above.

m.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Isao Yamashita
PS: and I know it should be "May I *remind* you" :-)  You may REMEMBER me as much as you'd like, but I just wanna get this thing successfully running with all the latest frills !  Eventually I just wanna make my net fdm control code to work.  I'm doing all this on my TabletPC, so changing the sound card is not an option.  IsaoMelchior FRANZ [EMAIL PROTECTED] wrote: * Mathias Fröhlich -- Sunday 12 February 2006 19:17: On Sunday 12 February 2006 19:12, Melchior FRANZ wrote:  Yes, and I say it the last time: your sound isn't working. Either  the openal lib is too old, or the driver for your sound card, or Well, yes. But is that a reason for flightgear to quit?No, but that's not the problem we are discussing here, is it?m.PS: and I k
 now it
 should be "May I *remind* you" :-)---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Flightgear-devel mailing listFlightgear-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/flightgear-devel

Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Isao Yamashita
I stared at the stack trace for a while, and I suspect the following code section from ATCVoice.cxx :   bool FGATCVoice::LoadVoice(const string voice) { // FIXME CLO: disabled to try to see if this is causign problemcs // return false;   ifstream fin;   SGPath path = globals-get_fg_root();  path.append( "ATC" );  string file = voice + ".wav";SoundData = new SGSoundSample(); rawSoundData = (char *)SoundData-load_file(path.c_str(), file.c_str());I think the file path for the  "/data/ATC/default.wav" SGPath path = globals-get_fg_root(); path.append( "ATC" ); is not resolved correctly.  #6  0x083a0ff8 in SGSoundSample::load_file (this=0xb2da290, path=0x0, file=0xb2da10c "default.wav") at sample_openal.cxx:388 #7  0x080c61f2 in FGATCVoice::LoadVoice (this=0xb1e8040, [EMAIL PROTECTED]) at ATCVoice.cxx:58  How you guys think ?  I'm gonna set a breakpoint right after "path.append("ATC");" to see what is set in the path string.  Boy, I haven't done any coding / debugging in the last several years, so it's gonna take a while.  Isao Frederic Bouvier [EMAIL PROTECTED] wrote: Melchior FRANZ wrote : Do you already have a clue where in simgears code this exception is thrown?  Nope. But linking with a (free)glut/SDL lib that was configured/compiled/linked with CFLAGS="-fexceptions $CFLAGS" LDFLAGS="-fexceptions $LDFLAGS" ./configure should be more helpful.   May I remind you the helpfull stack sent by Isao ? This is the stack trace I've got : (gdb) info stack #0  0xb7a9a7a7 in raise () from /lib/tls/libc.so.6 #1  0xb7a9c04b in abort () from /lib/tls/libc.so.6 #2  0xb7c66de9 in __gnu_cxx::__verbose_terminate_handler ()from /usr/lib/libstdc++.so.6 #3  0xb7c64765 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6 #4  0xb7c647a2 in std::terminate () from /usr/lib/libstdc++.so.6 #5  0xb7c6490a in __cxa_throw () from /usr/lib/libstdc++.so.6 #6  0x083a0ff8 in
 SGSoundSample::load_file (this=0xb2da290, path=0x0, file=0xb2da10c "default.wav") at sample_openal.cxx:388 #7  0x080c61f2 in FGATCVoice::LoadVoice (this=0xb1e8040, [EMAIL PROTECTED]) at ATCVoice.cxx:58 #8  0x0809552a in FGATCMgr::init (this=0xb1e48f8) at ATCmgr.cxx:113 #9  0x08065d7f in fgInitSubsystems () at fg_init.cxx:1698 #10 0x08054408 in fgIdleFunction () at main.cxx:885 #11 0xb7e86206 in glutMainLoop () from /usr/lib/libglut.so.3 #12 0x08051aa2 in fgMainInit (argc=2, argv=0xbf800064) at main.cxx:1023 #13 0x080511dc in main (argc=0, argv=0x0) at bootstrap.cxx:198 (gdb)line 388, file sample_openal.cxx, there is : #if defined(ALUT_API_MAJOR_VERSION)  ALUT_API_MAJOR_VERSION = 1 ALfloat freqf; data = "" format, size, freqf ); if (data == NULL)
 { throw sg_io_exception("Failed to load wav file.", sg_location(samplepath.str())); } freq = (ALsizei)freqf; #elseThis throw needs a try {} catch {} somewhere. I will commit a fix soon.-Fred---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?  Stop!  Download the new AJAX search engine that makessearching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Flightgear-devel mailing listFlightgear-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/flightgear-devel

Re: [Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Frederic Bouvier
Melchior FRANZ wrote :
 line 388, file sample_openal.cxx, there is :
 
 [...]
   
 This throw needs a try {} catch {} somewhere. I will commit a fix soon.
 

 Would be useful. But it is not the reason why fgfs doesn't show
 the exception text, as I explained above.
   


It's a bit frustrating to exit because the sound is not working, or not
setup correctly. That draws a lot of frustrations, and angry complains
we see on the forums could be attributed to that.
I commited a patch where exceptions are caught nearer of their throw, so
we can use a degraded, silent, but working, code path.
An alert should be displayed, because the try/catch is at the right side
of GLUT.


Isao, update CVS, and tell us if FG is still aborting for you. If yes,
send a new backtrace.

-Fred




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Re: Help ! on a Run-Time Error !

2006-02-12 Thread Melchior FRANZ
* Melchior FRANZ -- Sunday 12 February 2006 21:11:
 Going on although basic files are missing -- which can only mean that
 the base package is corrupted -- 

Gah ... forget this. There isn't anything missing at all. Just openal
doesn't work.

m.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel