Re: Memory leaks / Help with memprof & ps output

2002-04-04 Thread Jason Tackaberry
On Thu, 2002-04-04 at 01:31, Joe Pfeiffer wrote: > Remember, you're looking at the virtual space, not (necessarily) the > physical memory. Unix-related OSes regard virtual space as > essentially free: once a process has used to malloc to get some > virtual space from the OS, it doesn't ever give

Memory leaks / Help with memprof & ps output

2002-04-03 Thread Jason Tackaberry
Why do I get the feeling this is a FAQ ... well, I did some archive searches and didn't get any satisfactory answers, so here goes ... I am writing a program (using gtk 2.0) that needs to deal with loading a large number of images into memory (using gdk_pixbuf calls). Everything works fine, exc

Re: pango_layout_set_text not returning?

2002-01-24 Thread Jason Tackaberry
On Thu, 2002-01-24 at 08:07, Jason Tackaberry wrote: > But I don't understand why that would ever happen? I read once that replying to one's own email is considered lame -- well I sure am being lame lately. :) Anyway, I believe the problem is a race condition with the fo

Re: pango_layout_set_text not returning?

2002-01-24 Thread Jason Tackaberry
On Thu, 2002-01-24 at 02:44, Havoc Pennington wrote: > g_message() was called inside another g_message(). But I don't understand why that would ever happen? Jason. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-

Re: pango_layout_set_text not returning?

2002-01-23 Thread Jason Tackaberry
On Thu, 2002-01-24 at 01:26, Havoc Pennington wrote: > You're using threads? No. I am forking, though. But I was able to reproduce the problem even with the code that forks commented out. I do sometimes (typically right before a crash) see stuff like: Message (recursed): Layout text

Re: pango_layout_set_text not returning?

2002-01-23 Thread Jason Tackaberry
On Thu, 2002-01-24 at 00:54, Jason Tackaberry wrote: > I am seeing another strange problem where sometimes > pango_layout_set_text (and also pango_layout_set_markup by extension, I Sorry to keep bothering you, Havoc. I think this may be a red herring. After commenting out a c

pango_layout_set_text not returning?

2002-01-23 Thread Jason Tackaberry
Hi Havoc, I am seeing another strange problem where sometimes pango_layout_set_text (and also pango_layout_set_markup by extension, I guess) does not return. It's not a busy wait. I'm not able to reproduce this deterministically. I started the process with strace process and ran it until it ha

Re: Buffer overruns in gtk 1.3.12 (gdk-pixbuf)?

2002-01-23 Thread Jason Tackaberry
On Wed, 2002-01-23 at 15:27, Owen Taylor wrote: > The fixes to pixops were not in 1.3.12. But they should have no effect > on GDK_INTERP_NEAREST. I just tried cvs gtk+ and the corrupt images problem persists. I took a screenshot of what happens: http://sault.org/~tack/corrupt.png The i

Buffer overruns in gtk 1.3.12 (gdk-pixbuf)?

2002-01-23 Thread Jason Tackaberry
I see on Gnotices that gdk-pixbuf 0.16.0 is released, and in the changes says: * Merged fixes in GTK+ 2.0 to the pixops directory. This should fix some memory overruns in the scaling/compositing code (Merge by Federico; fixes by Owen Taylor, Michael Hore, Sven

Memory Leak? pango_layout_set_markup

2002-01-21 Thread Jason Tackaberry
Either I'm doing something wrong, or there is a memory leak within pango_layout_set_markup. I have a PangoLayout that I am reusing to render text to a drawable. I'm just calling pango_layout_set_markup to change the text. It gets called quite a bit, and I noticed my program growing. I've isola

Pango and wrapping

2002-01-18 Thread Jason Tackaberry
I am calling set_width on a Pango layout in order to force wrapping within a specific boundary. What I want, however, is something of a combination of PANGO_WRAP_WORD and PANGO_WRAP_CHAR. That is, wrap by word if you can, but if a word boundary doesn't fall within the specified width, wrap by ch

Re: How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Jason Tackaberry
On Thu, 2002-01-17 at 17:17, Havoc Pennington wrote: > Yep, you want gdk_draw_layout(). Too easy. Thanks, Havoc. Regards, Jason. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

How to render text to a drawable? (gtk+ 1.3)

2002-01-17 Thread Jason Tackaberry
Hi everyone, I'd done a bit of programming with gtk+ 1.2 (but not much), and I am working on a new project using gtk 1.3. I have a pixmap that I simply need to render some text to. gdk_draw_text is deprecated, so I assume we are supposed to use pango. I see a pango_x_render, which lets you ren