> > > > Doesn't work here. > > What doesn't work? TrayIcon gets compiled with wsgtktrayicon instead of wsgtk2trayicon if the project is set to use gtk2 while the IDE is running gtk1. > > > > Next I recompiled only LCL for Gtk2 (from the IDE), and it worked. > > > > My lazarus hangs when I do that, > > Can you reproduce that? If yes, please start the IDE in gdb and create a > backtrace. Reproduce ? I cannot get avoid it :) but we are talking about two sepperate bugs here - we shouldn't ASSUME a relationnship Backtrace attached.
This happens on every machine I have access to and has been for about 2 weeks now. . > > > I have to rerun make, then rebuild with > > gtk1, gives me enough gtk2 for my apps to be compiled - but it might > > prevent the GTK2 def from being passed to trayicon ? If so that's a bug > > either in lazarus or in ttrayicon, I'm not sure. > > On a hunch I opened the ttrayicon.lpk file, changed it's compiler options > > to use gtk2, reinstalled, rebuilt wole for gtk2 - same result. Same > > stack trace as well. So it doesn't matter what the component's compiler > > options say - which makes sense, it ought to receive it from the parent > > app. But it also ought to do so regardless of whether the LCL is using > > the same widget set as the project target. > > When the IDE compiles itself (LCL + IDE + installed packages) it compiles > for the target set in the configure build lazarus dialog (Target cpu, os, > widgetset). Even if the project has another target. This has been fixed a > few weeks ago, so it does not always work with 0.9.14. I always run up to date SVN. Either way - this is the other bug - I am happy to work on both but the gtk2 ide bug is much more severe. > > > I reckon I should fix the lazarus issue first but I am stumped as to what > > could be causing it. Even a gdb backtrace didn't tell me anything > > usefull, > > > Where are the crashes? In the IDE? Which widgetset? Which components > installed? IDE starts up, splash screen shows. Then the lazarus editor window comes up, then the source editor window appears - and then the whole thing freezes solid - have to xkill it. 1) This only happens with GTK2 as the IDE widgetset 2) This happens REGARDLESS of what components are installed - even on a brand new fresh install with no .lazarus in existence yet. I also attach an LDD on the lazarus executable. GTK2 version is: gtk+2-2.8.7 But I have the same problem on other versions both older and newer. Ciao A.J. -- "80% Of a hardware engineer's job is application of the uncertainty principle. 80% of a software engineer's job is pretending this isn't so." A.J. Venter Chief Software Architect OpenLab International http://www.getopenlab.com | +27 82 726 5103 (South Africa) http://www.silentcoder.co.za | +55 118 162 2079 (Brazil)
bash-3.00$ gdb ./lazarus GNU gdb 6.3 Copyright 2004 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-slackware-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /home/silentcoder/lazarus/lazarus [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10199)] (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", (lazarus:10199): Gtk-WARNING **: Unable to locate theme engine in module_path: "smooth", TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: editor options config file not found - using defaults NOTE: codetools config file not found - using defaults NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= TPascalParserTool.BuildTree B OnlyIntf=False project1.lpr Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10199)] 0x405f83b2 in memset () from /lib/libc.so.6 (gdb) backtrace #0 0x405f83b2 in memset () from /lib/libc.so.6 #1 0x40838f47 in gray_render_span () from /usr/lib/libfreetype.so.6 #2 0x40839022 in gray_hline () from /usr/lib/libfreetype.so.6 #3 0x408391c0 in gray_sweep () from /usr/lib/libfreetype.so.6 #4 0x408396d7 in gray_convert_glyph () from /usr/lib/libfreetype.so.6 #5 0x408055b0 in FT_Outline_Render () from /usr/lib/libfreetype.so.6 #6 0x40805663 in FT_Outline_Get_Bitmap () from /usr/lib/libfreetype.so.6 #7 0x406e1e9a in cairo_pattern_get_extend () from /usr/lib/libcairo.so.2 #8 0x406e2971 in cairo_pattern_get_extend () from /usr/lib/libcairo.so.2 #9 0x406cf662 in cairo_scaled_font_glyph_extents () from /usr/lib/libcairo.so.2 #10 0x406cd2d4 in cairo_status_to_string () from /usr/lib/libcairo.so.2 #11 0x406e33b9 in cairo_pattern_get_extend () from /usr/lib/libcairo.so.2 #12 0x406cee55 in cairo_scaled_font_destroy () from /usr/lib/libcairo.so.2 #13 0x406cf2b8 in cairo_scaled_font_glyph_extents () from /usr/lib/libcairo.so.2 #14 0x406c00f5 in pango_cairo_fc_font_get_type () from /usr/lib/libpangocairo-1.0.so.0 #15 0x406c01ef in pango_cairo_fc_font_get_type () from /usr/lib/libpangocairo-1.0.so.0 #16 0x406c0234 in pango_cairo_fc_font_get_type () from /usr/lib/libpangocairo-1.0.so.0 #17 0x405475b8 in pango_font_get_glyph_extents () from /usr/lib/libpango-1.0.so.0 #18 0x40e1acd6 in ?? () from /usr/lib/pango/1.4.0/modules/pango-basic-fc.so #19 0x08acbcd8 in ?? () #20 0x00000047 in ?? () #21 0x00000000 in ?? () #22 0xbfd937e8 in ?? () #23 0x08acbcd8 in ?? () #24 0x00000067 in ?? () #25 0x00000000 in ?? () #26 0xeb798801 in ?? () #27 0x08acbcd8 in ?? () #28 0x08a44ec0 in ?? () ---Type <return> to continue, or q <return> to quit--- #29 0x08acbda0 in ?? () #30 0x40e1c3e4 in ?? () from /usr/lib/pango/1.4.0/modules/pango-basic-fc.so #31 0x00000067 in ?? () #32 0x08aa017c in ?? () #33 0xbfd938a0 in ?? () #34 0x40e1af18 in ?? () from /usr/lib/pango/1.4.0/modules/pango-basic-fc.so #35 0x08acbcd8 in ?? () #36 0x08abfa88 in ?? () #37 0x00000004 in ?? () #38 0x00000004 in ?? () #39 0x00000047 in ?? () #40 0x08abfa78 in ?? () #41 0xbfd93850 in ?? () #42 0x4054f9a6 in pango_fontset_simple_size () from /usr/lib/libpango-1.0.so.0 Previous frame inner to this frame (corrupt stack?) (gdb)