9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: akumar@mail.nanosouffle.net, 9fans@9fans.net
Subject: Re: [9fans] page(1)
Date: Fri, 20 Feb 2009 20:49:45 -0500	[thread overview]
Message-ID: <74ee0d6dde76ef599cef73ba21f1b04b@quanstro.net> (raw)

On Fri Feb 20 20:29:55 EST 2009, akumar@mail.nanosouffle.net wrote:

> Neither works for me.
>
> term% hget http://9grid.es/screens/screen1.png|page
> reading through graphics...
> warning: couldn't read image: readimage: read count 32400 not 64800: screen id in use
>

you should also try running png directly from sources.
assuming that this does not work, ...

it seems that here:
/sys/src/libdraw/readimage.c:103

		m = readn(fd, tmp, n);
		if(m != n){
>>>			werrstr("readimage: read count %d not %d: %r", m, n);
   Err:
			if(dolock)
				lockdisplay(d);

things are getting confused.  i think it would
be easier to debug if you added

	werrstr("");

right before the readn() and recompiled png.
i can't quite see how that error message could
result from reading an image.

- erik



             reply	other threads:[~2009-02-21  1:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-21  1:49 erik quanstrom [this message]
2009-02-21  3:38 ` Federico G. Benavento
  -- strict thread matches above, loose matches on Subject: below --
2009-02-23 20:15 Akshat Kumar
2009-02-23 20:18 ` erik quanstrom
2009-02-24  0:06   ` geoff
2009-02-21  1:40 Akshat Kumar
2009-02-21  1:28 Akshat Kumar
2009-02-21  1:03 Akshat Kumar
2009-02-21  1:09 ` erik quanstrom
2009-02-21  1:32 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74ee0d6dde76ef599cef73ba21f1b04b@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    --cc=akumar@mail.nanosouffle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).