alexis bory wrote: > Hi, > > I can't get logging facilitty work with 3 days old SG and FG. > > Very annoying :-( > > > Alexis
Adding a <PropertyList> level in the XML fixes the bug. I'll correct the example in data/Docs/README.logging Sorry for the noise Alexis > > - here is the XML: > > <logging> <log> <enabled>true</enabled> > <filename>steering.csv</filename> <interval-ms>1000</interval-ms> > <delimiter>,</delimiter> <entry> <enabled>true</enabled> > <title>Rudder</title> <property>/controls/rudder</property> </entry> > </log> </logging> > > - here is the backtrace in gdb: > > [EMAIL PROTECTED]:~/fgfs/A-10-docs/logs$ gdb fgfs GNU gdb 6.6-debian > Copyright (C) 2006 Free Software Foundation, Inc. GDB is free > software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. There is > absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-linux-gnu"... Using host > libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) > run --config=commandes.xml Starting program: /usr/local/bin/fgfs > --config=commandes.xml [Thread debugging using libthread_db enabled] > [New Thread -1231849760 (LWP 28781)] > > Uncaught Exception: you should see a meaningful error message here, > but your GLUT (or SDL) library was apparently compiled and/or linked > without exception support. Please complain to its provider! > > > Program received signal SIGABRT, Aborted. [Switching to Thread > -1231849760 (LWP 28781)] 0xffffe410 in __kernel_vsyscall () (gdb) bt > #0 0xffffe410 in __kernel_vsyscall () #1 0xb7307875 in raise () from > /lib/tls/i686/cmov/libc.so.6 #2 0xb7309201 in abort () from > /lib/tls/i686/cmov/libc.so.6 #3 0x08065097 in fg_terminate () at > bootstrap.cxx:154 #4 0xb74eaf65 in ?? () from /usr/lib/libstdc++.so.6 > #5 0xb74eafa2 in std::terminate () from /usr/lib/libstdc++.so.6 #6 > 0xb74eb0ca in __cxa_throw () from /usr/lib/libstdc++.so.6 #7 > 0x085c4327 in PropsVisitor::startElement (this=0xbf9a9404, > name=0x8842970 "logging", [EMAIL PROTECTED]) at props_io.cxx:157 #8 > 0x085dc78f in start_element (userData=0xbf9a9404, name=0x8842970 > "logging", atts=0x8842458) at easyxml.cxx:180 #9 0x085e143e in > doContent (parser=0x8842280, startTagLevel=0, enc=0x864c460, > s=0xbf9a5258 > "<logging>\n<log>\n<enabled>true</enabled>\n<filename>steering.csv</filename>\n<interval-ms>1000</interval-ms>\n<delimiter>,</delimiter>\n<entry>\n<enabled>true</enabled>\n<title>Rudder</title>\n<property>/cont"..., > end=0xbf9a5352 > "a\bM\213a\b?S\232???\200\b\224S\232?0?\200\b?S\232?1^\\\b?S\232?", > nextPtr=0xbf9a5198) at xmlparse.c:1263 #10 0x085e20a3 in > prologProcessor (parser=0x8842280, s=0xbf9a5258 > "<logging>\n<log>\n<enabled>true</enabled>\n<filename>steering.csv</filename>\n<interval-ms>1000</interval-ms>\n<delimiter>,</delimiter>\n<entry>\n<enabled>true</enabled>\n<title>Rudder</title>\n<property>/cont"..., > end=0xbf9a5352 > "a\bM\213a\b?S\232???\200\b\224S\232?0?\200\b?S\232?1^\\\b?S\232?", > nextPtr=0xbf9a5198) at xmlparse.c:2031 #11 0x085df3ea in XML_Parse > (parser=0x8842280, s=0xbf9a5258 > "<logging>\n<log>\n<enabled>true</enabled>\n<filename>steering.csv</filename>\n<interval-ms>1000</interval-ms>\n<delimiter>,</delimiter>\n<entry>\n<enabled>true</enabled>\n<title>Rudder</title>\n<property>/cont"..., > len=250, isFinal=0) at xmlparse.c:780 #12 0x085dcc25 in readXML > ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at > easyxml.cxx:237 #13 0x085dd6d2 in readXML ([EMAIL PROTECTED], > [EMAIL PROTECTED]) at easyxml.cxx:270 #14 0x085c323f in > readProperties ([EMAIL PROTECTED], start_node=0x8745d28, > default_mode=0) at props_io.cxx:357 #15 0x08097bc4 in fgOptConfig > (arg=0x884a12c "commandes.xml") at options.cxx:1060 #16 0x0809c350 in > parse_option ([EMAIL PROTECTED]) at options.cxx:1529 #17 0x0809d016 in > fgParseArgs (argc=2, argv=0xbf9a9904) at options.cxx:1571 #18 > 0x08082d44 in do_options (argc=2, argv=0xbf9a9904) at fg_init.cxx:516 > #19 0x080860e2 in fgInitConfig (argc=2, argv=0xbf9a9904) at > fg_init.cxx:688 #20 0x08067c99 in fgMainInit (argc=2, > argv=0xbf9a9904) at main.cxx:1036 #21 0x080650f1 in main (argc=Cannot > access memory at address 0x706d ) at bootstrap.cxx:220 (gdb) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Flightgear-devel > mailing list Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel