Re: [dev] sent-0.1 or libxft bug

From: v4hn <me_AT_v4hn.de>
Date: Tue, 17 Nov 2015 01:14:54 +0100

Sorry in advance in case my sarcasm detector failed me...

On Mon, Nov 16, 2015 at 11:43:30PM +0000, Nick wrote:
> Quoth ret set:
> > > At least describe in one sentence what you mean.
> > Segmentation fault in in sent-0.1.
>
> Christoph is right, you really should have provided more description
> of what the fault is,

On Tue, Nov 17, 2015 at 01:34:30AM +0300, ret set wrote:
>> Subject: [dev] [...] bug
>> [...]
>> Segmentation fault

> how to reproduce it,

On Tue, Nov 17, 2015 at 01:34:30AM +0300, ret set wrote:
>> $ make && ./sent <(python -c 'print "A\n"*4000')
>> sent build options:
>> CFLAGS = -g -std=c99 -pedantic -Wall -I. -I/usr/include -I/usr/include/freetype2 -I/usr/X11R6/include -DVERSION="0.1" -D_XOPEN_SOURCE=600
>> LDFLAGS = -g -L/usr/lib -lc -lm -L/usr/X11R6/lib -lXft -lfontconfig -lX11 -lpng
>> CC = cc
>> Segmentation fault

> and what you think was causing it.

On Tue, Nov 17, 2015 at 01:34:30AM +0300, ret set wrote:
>> Subject: [dev] sent-0.1 or libxft bug
>> [...]
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff7529980 in XftCharExists () from /usr/lib/x86_64-linux-gnu/libXft.so.2

Everything you requested was there in the first mail
and I would send pretty much the same message if
I didn't have the time to fix this myself.

> But regardless, as far as I can see this is fixed in the latest code
> in git, aa713a8a342ec0e6eca173cd4489834f8baa0a86.

Yes, there is no segmentation fault anymore.
I do think the current behavior w.r.t. long lines or long paragraphs could be improved though.

Over here using the latest HEAD ret set's example yields a slide with *one* rather small "A" at the top center.
Also I just noticed that `./sent <(python -c 'print "A"*4000')` (might vary with screen size/available fonts?)
gives me a number of rather big As partially overlaying each other,
whereas `./sent <(python -c 'print "A"*400')` works pretty much as expected:
the line is too long for the screen with a reasonable font size, so a long string of rather small As
is printed from side to side.


v4hn

Received on Tue Nov 17 2015 - 01:14:54 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 17 2015 - 01:24:09 CET