[Flightgear-devel] FlightGear/PLIB/CVS: Enabling 3D Clouds results in Floating point interrupt (SIGFPE)
Hi Everybody, I'm still catching-up in installing a plib based FlightGear, after my crazy travel schedule the last few weeks. I didn't have the time to check whether this error has already been reported, but I'm encountering the following problem. Starting-up and running flightgear works just fine, but then when I'm activating the 3D Clouds through the menu: View-Render Options-Enable 3D Clouds I'm getting a repeated printout saying: Floating point interrupt (SIGFPE), and FlightGear freezes. I've installed Simgear-plib (CVS as of yesterday), and FlightGear-Plib source, CVS as of yesterday. System is Linux, Suse 10.2, gcc (GCC) 4.1.2 20061115 (prerelease) Cheers, Durk - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear/PLIB/CVS: Enabling 3D Clouds results in Floating point interrupt (SIGFPE)
Hi Durk, On Thursday 31 May 2007 07:57:15 Durk Talsma wrote: View-Render Options-Enable 3D Clouds I'm getting a repeated printout saying: Floating point interrupt (SIGFPE), and FlightGear freezes. Before you change to 3D clouds, ensure one of the file size cache settings (I forget which one) is NOT set to 0. Nick - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear/PLIB/CVS: Enabling 3D Clouds results in Floating point interrupt (SIGFPE)
On Thu, 31 May 2007 08:57:15 +0200 Durk Talsma [EMAIL PROTECTED] wrote: Hi Everybody, I'm still catching-up in installing a plib based FlightGear, after my crazy travel schedule the last few weeks. I didn't have the time to check whether this error has already been reported, but I'm encountering the following problem. Starting-up and running flightgear works just fine, but then when I'm activating the 3D Clouds through the menu: View-Render Options-Enable 3D Clouds I'm getting a repeated printout saying: Floating point interrupt (SIGFPE), and FlightGear freezes. I've installed Simgear-plib (CVS as of yesterday), and FlightGear-Plib source, CVS as of yesterday. System is Linux, Suse 10.2, gcc (GCC) 4.1.2 20061115 (prerelease) Cheers, Durk Hi Durk , make sure the cloud cache and resolution aren't zero before enabling them -- syd sandy [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear/PLIB/CVS: Enabling 3D Clouds results in Floating point interrupt (SIGFPE)
syd sandy wrote: View-Render Options-Enable 3D Clouds I'm getting a repeated printout saying: Floating point interrupt (SIGFPE), and FlightGear freezes. I've installed Simgear-plib (CVS as of yesterday), and FlightGear-Plib source, CVS as of yesterday. System is Linux, Suse 10.2, gcc (GCC) 4.1.2 20061115 (prerelease) Cheers, Durk Hi Durk , make sure the cloud cache and resolution aren't zero before enabling them Please (before 0.9.11-pre2), could someone slip in some code to the effect: if (cloud_cache == 0 || resolution == 0) grey_out_menu_item(View-Render Options-Enable3DClouds); :-) This is basic, basic GUI design stuff. We don't want FlightGear to appear on the interface hall of shame page now, do we? GUI design rule 1: If it doesn't work or is temporarily unavailable, grey it out. If rule 1 turns out to be confusing (not obvious to the user how to enable the greyed-out item, try the following: GUI design rule 1A: If it doesn't work and you can't or won't grey out the button, have the button pop up an explanation-dialog. I recall a similar situation months ago with the autopilot menu for the c172 that used to pop up a dialog but didn't do anything because that 'plane has its own autopilot controlled via the 3D cockpit. The latest c172 (and quite a few other 'planes) grey out the 'autopilot' menu with a bit of Nasal as I recall. Much better. Steve - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FlightGear/PLIB/CVS: Enabling 3D Clouds results in Floating point interrupt (SIGFPE) [PATCH]
On Thursday 31 May 2007 09:40:47 Steve Hosgood wrote: Hi Durk , make sure the cloud cache and resolution aren't zero before enabling them Please (before 0.9.11-pre2), could someone slip in some code to the effect: if (cloud_cache == 0 || resolution == 0) grey_out_menu_item(View-Render Options-Enable3DClouds); :-) This is basic, basic GUI design stuff. We don't want FlightGear to appear on the interface hall of shame page now, do we? Yes, although looking at the this, I don't think the GUI is at fault. I think, the issue is Texture Resolution, not file cache. When you start FG, Texture resolution is set to 0 (even though the drop down box only allows 64| 128|256). I cannot see where this is set to 64|128|256 anywhere. What happens is in simgear/scene/sky/cloudfield.cxx there is a calculation done and as texture resolution is 0, there is a divide by 0 issue (why it doesn't crash I don't know. This only happens when you first have started FG and never/ever set the Texture resolution up before - as then, it gets set in autosave.xml. Here is a quick fix in Simgear code: simgear/scene/sky/cloudfield.cxx (line 84): void SGCloudField::set_CacheResolution(int resolutionPixels) { +if (resolutionPixels 64) +resolutionPixels = 64; if(cacheResolution == resolutionPixels) return; cacheResolution = resolutionPixels; if(enable3D) { int count = last_cache_size * 1024 / (cacheResolution * cacheResolution * 4); if(count == 0) count = 1; SGNewCloud::cldCache-setCacheSize(count, cacheResolution); } } Nick - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel