Bug#935913: gle-graphics: qgle segfaults when modifying text strings

2019-08-27 Thread Francesco Poli
On Tue, 27 Aug 2019 21:56:23 +0200 Christian T. Steigies wrote:

[...]
> On Tue, Aug 27, 2019 at 07:15:24PM +0200, Francesco Poli (wintermute) wrote:
> > Package: gle-graphics
> > Version: 4.2.5-7+b1
> > Severity: normal
> > 
> > Hello again!
> > 
> > I found a reproducible segfault in gle-graphics:
> 
> Thanks for your bug reports,

You're welcome!   :-)

> these issues are already being discussed on the
> gle users list.

That's good to know.

> The main issue is that qgle needs to be ported to qt5, or
> (temporarily?) dropped from the package, otherwise the whole package will
> not be in bullseye.

I am aware of this issue: the package is risking an autoremoval from
testing (currently scheduled for September, the 2nd, according to the
[tracker page]) and, possibly, a removal from unstable (like other
packages not ported to Qt5)...

[tracker page]: 

> Laurence already sent me some patches, I will try to
> get this into a package.

That's a relief...

> 
> >   0) start the GUI
> > 
> >  $ qgle
> 
> You know that you can run gle on the command line?

Sure, but I am searching for a tool capable of satisfying a number of
(potentially conflicting) needs.


It has to be able to produce high-quality (vector graphics) plots,
diagrams, and sketches, in both 2D and 3D forms.
gle-graphics seems to qualify (at least judging by the example gallery).

It has to be usable in a non-interactive manner, with a language that's
simple to write, yet expressive. And which avoids too much boilerplate.
This is useful when you want to generate a great number of similarly
looking plots (for instance by feeding different data to be plotted
with the same visual look...).
gle-graphics seems to qualify (at least judging by a quick look at the
documentation).

But it has also to be usable in an interactive manner, with a GUI.
which, in its turn, must be able to read and write the non-interactive
language.
This is useful when you want to quickly construct a sketch or diagram,
or even a plot, to play with in a WYSIWYG way. But you also want to be
ready to turn what you interactively prepared into a non-interactive
script, because your quick need to plot something has evolved into a
more systematic need to generate a great number of similar plots (see
the previous example).
gle-graphics seems to be less than optimal on this front, since the GUI
looks a bit minimalist (do I understand correctly that only a subset of
the features are accessible through the GUI?) and prone to crashes. 


I hope all this makes sense...


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpwAlTkgkl5J.pgp
Description: PGP signature


Bug#935913: gle-graphics: qgle segfaults when modifying text strings

2019-08-27 Thread Christian T. Steigies
Hi,
On Tue, Aug 27, 2019 at 07:15:24PM +0200, Francesco Poli (wintermute) wrote:
> Package: gle-graphics
> Version: 4.2.5-7+b1
> Severity: normal
> 
> Hello again!
> 
> I found a reproducible segfault in gle-graphics:

Thanks for your bug reports, these issues are already being discussed on the
gle users list.  The main issue is that qgle needs to be ported to qt5, or
(temporarily?) dropped from the package, otherwise the whole package will
not be in bullseye.  Laurence already sent me some patches, I will try to
get this into a package.

>   0) start the GUI
> 
>  $ qgle

You know that you can run gle on the command line? I rarely use qgle, for me
it defeats the purpose of "programming" graphics, but I can understand that
new users look at this first. If you want to learn gle, however, I suggest
that you have a look a gle and the examples in the manual or on the website.

Christian



Bug#935913: gle-graphics: qgle segfaults when modifying text strings

2019-08-27 Thread Francesco Poli (wintermute)
Package: gle-graphics
Version: 4.2.5-7+b1
Severity: normal

Hello again!

I found a reproducible segfault in gle-graphics:

  0) start the GUI

 $ qgle

  1) click on "New" in the toolbar

  2) accept the default size by clicking on "OK" in the dialog window

  3) click on "Edit Mode" in the toolbar

  4) click on "Text Tool" in the sidebar

  5) click somewhere on the canvas: the ``X'' string appears

  6) click on the "Pointer Tool" in the sidebar

  7) click on the ``X'' string on the canvas

  8) in the Properties sidepane, double-click on the Value of the
 "Text" Property

  9) enter another string (such as ``foo'') and press [Enter]
 on the keyboard

If you manage to get here, you should see an application crash
with the following output in the terminal:

  Script:
  size 12.0 12.0
  
  GLE 4.2.5[gle-GjwQeU.gle]-C-R-[gle-3XcUnT][.eps]
  GLE 4.2.5[gle-GjwQeU.gle]-C-R-[gle-sXinOo][.eps]
  Segmentation fault

and the following error in /var/log/kern.log:

  traps: qgle[4876] general protection fault ip:7f3a56129a4f sp:7ffcb0605670 
error:0 in libgs.so.9.27[7f3a55ee+357000]


Please note that the segfault may even happen at an earlier step...


Please investigate and fix the bug and/or forward my report upstream,
as appropriate.

Thanks for your time!
Bye.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gle-graphics depends on:
ii  libc6   2.28-10
ii  libcairo2   1.16.0-4
ii  libgcc1 1:9.2.1-4
ii  libgl1  1.1.0-1+b1
ii  libglib2.0-02.60.6-2
ii  libglu1-mesa [libglu1]  9.0.0-2.1+b3
ii  libjpeg62-turbo 1:1.5.2-2+b1
ii  libncurses6 6.1+20190803-1
ii  libpng16-16 1.6.37-1
ii  libpoppler-glib80.71.0-5+b1
ii  libqt4-network  4:4.8.7+dfsg-19
ii  libqt4-opengl   4:4.8.7+dfsg-19
ii  libqtcore4  4:4.8.7+dfsg-19
ii  libqtgui4   4:4.8.7+dfsg-19
ii  libstdc++6  9.2.1-4
ii  libtiff54.0.10+git190818-1
ii  libtinfo6   6.1+20190803-1
ii  zlib1g  1:1.2.11.dfsg-1+b1

Versions of packages gle-graphics recommends:
pn  gle-graphics-doc  
ii  libgs99.27~dfsg-3.1

gle-graphics suggests no packages.

-- no debconf information