Resize error with Qt4 backend

Hello Darren,

Darren Dale <dsdale24@...287...> writes:

I can't produce a segfault with the attached script. I have Qt-4.5.2,
PyQt-4.5.1, and a checkout of the matplotlib trunk.

OK, in this context it seems to work.

I attach a script that shows the problem.

Run it, move the second diagram below the first, adjust their sizes so
that they take roughly the same size:

sf.py (1.58 KB)

···

+---------------+-------+

Diagram 1 | |
              > >
              > Hello |

+---------------+ World |

Diagram 2 | |
              > >
              > >

+---------------+-------+

(you will see that the Diagram 2 will not alway update properly :frowning: [*] )
and then move the slider between the diagrams and the "Hello World"
label. There is a good chance that the program will segfault. If it does
not, increase the number of points in the diagrams.

BTW,could you reproduce my last example with diagram and scrollbar? It
still remains unsolved (and is reproduced here [*]).

Versions (all 64 bit):

openSUSE 11.1:
Qt Open Source Edition 4.4.3
PyQt 4.4.3
Matplotlib 0.98.5.2

Kubuntu 9.04:
Qt Open Source Edition 4.5.0
PyQt 4.4.4
Matplotlib 0.98.5.2

Best regards

Ole

Hello Darren,

Darren Dale <dsdale24@…287…> writes:

I can’t produce a segfault with the attached script. I have Qt-4.5.2,

PyQt-4.5.1, and a checkout of the matplotlib trunk.

OK, in this context it seems to work.

I attach a script that shows the problem.

Run it, move the second diagram below the first, adjust their sizes so

that they take roughly the same size:

±--------------±------+

Diagram 1 | |

          >       >
          > Hello |

±--------------+ World |

Diagram 2 | |

          >       >
          >       >

±--------------±------+

(you will see that the Diagram 2 will not alway update properly :frowning: [*] )

and then move the slider between the diagrams and the “Hello World”

label. There is a good chance that the program will segfault. If it does

not, increase the number of points in the diagrams.

I can’t reproduce the problem. The diagrams update properly and I don’t see a segfault. Maybe it is an issue that was fixed in Qt-4.5.[1,2] or PyQt-4.5.1.

BTW,could you reproduce my last example with diagram and scrollbar? It

still remains unsolved (and is reproduced here [*]).

Yes, I responded this afternoon and I have asked on the pyqt mailing list.

Darren

···

On Thu, Jul 2, 2009 at 9:46 AM, Ole Streicher <ole-usenet-spam@…361…> wrote:

On my system, this example appears to be working just fine. I even bumped the number of data points from 1000 to 10,000. I’m on OS X 10.5.7 with:

matplotlib 0.98.5.2
PyQt 4.5.1 (GPL)
Qt 4.5 (LGPL)

Maybe try updating your PyQt installation?

BZ

···

On Thu, Jul 2, 2009 at 6:46 AM, Ole Streicher <ole-usenet-spam@…361…> wrote:

Hello Darren,

OK, in this context it seems to work.

I attach a script that shows the problem.

Run it, move the second diagram below the first, adjust their sizes so

that they take roughly the same size:

±--------------±------+

Diagram 1 | |

          >       >
          > Hello |

±--------------+ World |

Diagram 2 | |

          >       >
          >       >

±--------------±------+

(you will see that the Diagram 2 will not alway update properly :frowning: [*] )

and then move the slider between the diagrams and the “Hello World”

label. There is a good chance that the program will segfault. If it does

not, increase the number of points in the diagrams.

BTW,could you reproduce my last example with diagram and scrollbar? It

still remains unsolved (and is reproduced here [*]).

Versions (all 64 bit):

openSUSE 11.1:

Qt Open Source Edition 4.4.3

PyQt 4.4.3

Matplotlib 0.98.5.2

Kubuntu 9.04:

Qt Open Source Edition 4.5.0

PyQt 4.4.4

Matplotlib 0.98.5.2

Best regards

Ole