[Flightgear-devel] MacOSX FlightGear patch and question
Hi Mac developers, I decided to get rid of the message 2010-12-06 21:32:32.569 FlightGear[26052:903] *** __NSAutoreleaseNoPool(): Object 0x10020a330 of class NSThread autoreleased with no pool in place - just leaking coming from the Mac flightgear start up GUI. The Net wisdom seems to be that there is a NSAutoreleasePool missing somewhere. Looking into main.m (https://macflightgear.svn.sourceforge.net/svnroot/macflightgear/trunk/FlightGearOSX/main.m) there is a line containing 'detachNewThreadSelector' that causes the problem. I have modified the code to get rid of the message (see attached patch). However I am confused about the code in main.m. Why is the LauncherThread implemented? In my test set up main.m can be 5 (five) straightforward lines: --- working main.m --- #import int main(int argc, const char *argv[]) { return RBApplicationMain("rb_main.rb", argc, argv); } -- Is there any need to include LauncherThread? The main.m code is four years old, maybe there was plans to do something that never was finished? Or maybe it is remains from old code? My Objective-C knowledge is very limited so can someone confirm my findings and, if appropriate, update main.m to something like the above or at least to apply the attached patch to remove the annoying message about leaking. Cheers, Jari Index: main.m === --- main.m (revision 284) +++ main.m (arbetskopia) @@ -23,6 +23,9 @@ int main(int argc, const char *argv[]) { + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [NSThread detachNewThreadSelector:@selector(entry:) toTarget:[LauncherThread class] withObject:nil]; -return RBApplicationMain("rb_main.rb", argc, argv); + int retval=RBApplicationMain("rb_main.rb", argc, argv); + [pool release]; + return retval; } -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] OpenRadar Adoption
Hi All, After reviving an interest in Java, after finding a book in the hospital library during a recent unscheduled stay, I have decided that OpenRadar is a project I'd like to see updated and advanced, and I'd really like to give it a go. I've spent a few days picking it apart and settling it in with my IDE I'm trying to do as much research on it as possible, hard to find anything though in the mailing list archives and forums etc. I was wondering if there was anyone on here who could shed some light on how it was left and what the goals of the project were etc? some obviously may be defunct now etc and If I can get as much an understanding as possible at the start it will hopefully avoid wasting time as it goes on. My first step was going to be getting a repository set up for it on gitorious, unless there are any objections to such? Anyone who can help with history, advice or even lending a hand will be more than welcome. TIA, Alex -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] SegFault on Current Git
On Sun, Dec 5, 2010 at 9:18 AM, Jeff Taylor wrote: > On 02/12/10 12:05 AM, Tim Moore wrote: > > Can you move up the stack into SGText::UpdateCallback::operator() and > > see what is being passed to createUTF8EncodedString? > > > > Thanks, > > Tim > OK, this is bugging me. I needed to recompile OSG with debugging > symbols, so I did a pull from SVN first, which apparantly fixed the > You don't need to recompile OSG with debugging symbols to move up the stack. I'm interested in the values of variables in a SimGear function. Tim -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] SegFault on Current Git
On Sun, 05 Dec 2010 00:18:12 -0800, Jeff wrote in message <4cfb4ac4.4030...@gmail.com>: > On 02/12/10 12:05 AM, Tim Moore wrote: > > Can you move up the stack into SGText::UpdateCallback::operator() > > and see what is being passed to createUTF8EncodedString? > > > > Thanks, > > Tim > OK, this is bugging me. I needed to recompile OSG with debugging > symbols, so I did a pull from SVN first, which apparantly fixed the > segfault (must've been a bug in OSG). Now it starts, but strangely > my system hard locks (frozen mouse, frozen screen) a few minutes > after starting, which means that this is almost certainly a bug in > the Intel display drivers. It looks like I'll have to escalate to > the people responsible for maintaining those drivers, but honestly, I > don't know where to begin. The system hard locks without leaving any > trace. All the log files I've checked show nothing from the time of > the crash, and of course I can't use the debugger to determine what > state the program was in at the time of the crash. ..if you run the crashing compile over a ssh session, you should be able to the output at least until the ssh session dies. -- ..med vennlig hilsen = with Kind Regards from Arnt... ;o) ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case. -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel