v2.22 crashes when zooming-in or out on graph

Hi,

I recently upgraded to v2.22 (from v2.19) and I noticed that with the new
version when I use the roller button on the mouse to zoom in or out, the
application crashes with a segmentation fault - this was NOT the case with
v2.19.

I was wondering if anybody else has experienced similar issues or have any
ideas how to resolve the issue.

Regards,
Vaggelis

I've never observed any problems of this kind.

Whenever reporting problems, it is crucial to give some basic background
information (e.g. what OS and distribution you are using), and some simple
and clear reproduction steps, otherwise it is virtually impossible to help.

Best,
Tiago

Tiago,

I am using Ubuntu 16.04 (on a fresh install) and the way I plot the graph
is using a GraphWidget that is attached to a Glade-generated GUI. The error
I get is a segmentation fault that kills the whole python environment,
which leads me to believe that there is something going on with the
rendering library - you can see the code dies in the middle of rendering.
Note that this happens on v2.22 and v2.23 but NOT on v.2.19.

I know I am not being much more specific than before, but posting the code
that currently crashes would be of zero help since it far from the simple
example that you are asking.

I was hoping that somebody else on the forum might have observed similar
behavior. If not I will spend some time trying to create a simple and
self-contained example that captures this behavior.

Regards,
Vaggelis

attachment.html (2.61 KB)

Without a specific example, there is virtually zero that anything can be
done, unfortunately. I don't observe any crashes when doing said operations,
so it must be tied to the specific way you are doing things, and it is
difficult to guess blindly...

Tiago,

Here a small example that causes the graph to crash on v2.23:

    from graph_tool.all import *
    import graph_tool as gt
    g = gt.collection.data["celegansneural"]
    interactive_window(g)

Once the window comes up, make sure you maximize it, and then start moving
the roller up and down to zoom in/out rapidly.

The crash behavior is very erratic, in the sense that sometimes it crashes
immediately, and some other times you have to keep zooming in/out for a few
seconds. But it is important to maximize your window (on smaller windows it
does not happen).

Coincidentally, is there a way to install previous versions of graph-tool
using apt-get?

Regards,
Vaggelis

attachment.html (2.78 KB)

Hi,

I tried to compile the v2.23 code to see if it will exhibit the same
behavior as the pre-compiled one since the v2.19 was compiled on my
computer.

I got the following error. Any suggestions what might be wrong?

Thanks in advance,
Vaggelis

attachment.html (8.68 KB)

Please ignore the previous email regarding compilation error. I unpacked
files in windows and it seems that the maximum path length was reached, and
thus the last few characters of the file had been concatenated.

Apologies for the false alarm.

attachment.html (9.76 KB)

Tiago,

Here a small example that causes the graph to crash on v2.23:

from graph\_tool\.all import \*
import graph\_tool as gt
g = gt\.collection\.data\["celegansneural"\]
interactive\_window\(g\)

Once the window comes up, make sure you maximize it, and then start moving
the roller up and down to zoom in/out rapidly.

The crash behavior is very erratic, in the sense that sometimes it crashes
immediately, and some other times you have to keep zooming in/out for a few
seconds. But it is important to maximize your window (on smaller windows it
does not happen).

Sorry, it seems I forgot to answer you.

I can't reproduce this behavior... I get no crashes, regardless of how fast
I zoom in and out.

Coincidentally, is there a way to install previous versions of graph-tool
using apt-get?

You just have to download the .deb file and install it using dpkg.

Best,
Tiago

FYI, a compiled version of Graph-Tool v2.25 on Ubuntu 17.04 does not
exhibit the crash when zooming in/out.

attachment.html (2.17 KB)