#51544 mgp: bad algorithm for image grabbing

Package:
mgp
Source:
mgp
Description:
MagicPoint — an X11-based presentation tool
Submitter:
Yann Dirson
Date:
2005-07-18 03:33:56 UTC
Severity:
normal
#51544#5
Date:
1999-11-29 09:41:10 UTC
From:
To:
Using "mgp -o -g <geometry> -D <dir>" works fine as long as you don't
switch to another virtual desktop.  In this case you get errors like:

generating page 16... (full image)X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  4541
  Current serial number in output stream:  4541
(thumbnail)convert: Missing an image file name [No such file or directory].
pnmscale: EOF / read error reading magic number
(html)(txt)
generating page 17...


Obviously mgp is already able do generate its pages not on-screen (see
forward cache).  This mechanism should be used - that would prevent:

1. these X errors
2. display locking when not using -o

#51544#10
Date:
1999-12-02 15:24:30 UTC
From:
To:
retitle 51544 mgp: bad algorithm for image grabbing
thanks

The following demonstrates once more how bad the algorithm for
grabbing images for HTML generation:

$ mgp -g800x600 sample.mgp
[lower window]
$ mgp -D html/ -g800x600 myslides.mgp

As long as the "myslides" window is on foreground (higher than
"sample" window ?), the generated images are taken from the "sample"
window !!!  Lowering "myslides" causes further images to be grabbed
from "myslides".  Raising/lowering further goes on switching back and
forth the source window for grabbing.


I'd expect that the image be written to a pixmap drawable instead of
on-screen, and be grabbed from there.  The current symptoms seem to
tell me grabbing is currently done by an external process, although I
did not look at the code (yet).  Maybe something like ImLib would help ?

#51544#17
Date:
1999-12-02 16:48:25 UTC
From:
To:
You wrote:

Where? I searched around the deity mail archives and the BTS and can't seem
to find a fix documented for this problem.  Will the next release fix
this bug?

Seems like it fits critical since it completely breaks the standard potato
boot-floppies install that relies on apt.

#51544#20
Date:
2000-04-26 11:22:56 UTC
From:
To:
This bug has been forwarded to mgp-users-jp 00662
http://www.mew.org/archive/mgp-users-jp/A/msg00658.html