Created attachment 175987 [details]
Patch combining simgear git commits b9deeb and a97c14
A known bug in the release version of the simgear 2016.3.1 can lead to flightgear crashing with an assertion failure when the pilot changes a comm radio frequency or silences the radio.
A forum thread describing the issue is at
The bug has been fixed in the simgear project's git repo, but until the next release that leaves FreeBSD's port somewhat broken.
To reproduce, one has to have flightgear set up so that it starts up with the radios turned on and receiving ATIS information. If you then turn the volume knob to zero or click the "swap frequency" button on the com1 radio, the code exits with the assertion failure.
I have applied the changes made in simgear's git commits b9deeb and a97c14, and found that it fixes the problem with flightgear. These commits may be found at
The attached patch, if dropped into devel/simgear/files will fix the problem until the next release of simgear and flightgear, which won't have the bug.
I should note that because the simgear port produces only static libraries, after the patch is applied and the port rebuilt, one also has to rebuild and reinstall flightgear to get the fix.
A commit references this bug:
Date: Mon Oct 24 10:13:50 UTC 2016
New revision: 424558
Backport radio bug patch from upstream
Submitted by: firstname.lastname@example.org
Thanks a lot for your patch, it has been committed with a few changes as the patch provided didn't match exactly the changes brought by b9deeb and a97c14: the return statement should be outside the #ifdef/#endif block.
Egad. I saw that the return statement was supposed to be outside the ifdef/endif (it is the entire point of commit a97c14), and then goofed myself when applying the change by hand to produce my patch. I'm sorry it wasn't correct.
But thanks for catching that and merging the change.
No pb! Thanks to you :)