Re: [Qgis-developer] Map canvas flickers

2012-08-09 Thread Kuhn Matthias, Vermessung
Message- From: Marco Hugentobler [mailto:marco.hugentob...@sourcepole.ch] Sent: Wednesday, August 08, 2012 11:16 AM To: Kuhn Matthias, Vermessung Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Map canvas flickers If there is a good reason to leave it this way, I would hide

Re: [Qgis-developer] Map canvas flickers

2012-08-09 Thread Marco Hugentobler
[mailto:marco.hugentob...@sourcepole.ch] Sent: Wednesday, August 08, 2012 11:16 AM To: Kuhn Matthias, Vermessung Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Map canvas flickers If there is a good reason to leave it this way, I would hide the incremental drawing option for mac completely as I'm

Re: [Qgis-developer] Map canvas flickers

2012-08-08 Thread Kuhn Matthias, Vermessung
I'll disable this option and remove it from the dialog on any other than Q_WS_X11 or do you think this can be useful for Mac as well? Disabling is fine for Mac as well (Qt::WA_PaintOnScreen has no effect on Mac). I was more thinking about incremental drawing. At the moment processEvents

Re: [Qgis-developer] Map canvas flickers

2012-08-08 Thread Marco Hugentobler
If there is a good reason to leave it this way, I would hide the incremental drawing option for mac completely as I'm working on this code anyway. Yes, good point. Please hide that option for Mac. Marco Am 08.08.2012 10:36, schrieb Kuhn Matthias, Vermessung: I'll disable this option and

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Matthias Kuhn
Hi Salvatore, What do you mean with run QGIS by shell? Is there another way you can run your self-compiled version and it works? I started working on a git repo, based on 1.8. So far only the patch adjusted by Ivan for 1.8 is applied. https://github.com/matthias-kuhn/Quantum-GIS.git release-1_8

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Salvatore Larosa
Hi, 2012/8/7 Matthias Kuhn matthias.k...@gmx.ch Hi Salvatore, What do you mean with run QGIS by shell? I mean, running QGIS by CL interface (shell bash linux). Also I noticed that the exception does not always occur! Oddly, if I run QGIS (CLI) by the following command: $ qgis --lang us

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Matthias Kuhn
Hi all, There is now a config option to turn this fix on and off ( Setting=Options=Rendering: Enable backbuffer ) The more people that test it, the better are the chances to get this into the main code. Thanks to everybody who is participating in this discussion and testing! On Fre, 2012-07-27

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Marco Hugentobler
Hi Matthias I didn't try it yet, but from a first look at the patch source, it seems to me backbuffering is enabled by default: settings.value( /Map/enableBackbuffer, 1 ).toBool(); That would be ok on X11. But the windows users (who are not affected by the flickering) would loose the paint

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Matthias Kuhn
Thanks for the review and good point. I'll disable this option and remove it from the dialog on any other than Q_WS_X11 or do you think this can be useful for Mac as well? (You diabled some code and mentioned resizing as cause for this) Regards On Die, 2012-08-07 at 17:37 +0200, Marco

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Marco Hugentobler
I'll disable this option and remove it from the dialog on any other than Q_WS_X11 or do you think this can be useful for Mac as well? Disabling is fine for Mac as well (Qt::WA_PaintOnScreen has no effect on Mac). Am 07.08.2012 17:45, schrieb Matthias Kuhn: Thanks for the review and good

Re: [Qgis-developer] Map canvas flickers

2012-08-07 Thread Ivan Mincik
On 08/07/2012 05:45 PM, Matthias Kuhn wrote: Thanks for the review and good point. I'll disable this option and remove it from the dialog on any other than Q_WS_X11 or do you think this can be useful for Mac as well? (You diabled some code and mentioned resizing as cause for this) Maybe I

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On 08/06/2012 12:10 PM, Matthias Kuhn wrote: Hi Ivan, thank you for testing. Did you also check if qgis does not crash (as described earlier in this thread, big vector layer, resizing of window)? I'm considering releasing a configure option as proposed by Marco. I am getting segfault

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Kuhn Matthias, Vermessung
An: Matthias Kuhn; qgis-developer@lists.osgeo.org Betreff: Re: [Qgis-developer] Map canvas flickers On 08/06/2012 12:10 PM, Matthias Kuhn wrote: Hi Ivan, thank you for testing. Did you also check if qgis does not crash (as described earlier in this thread, big vector layer, resizing

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On 08/06/2012 01:31 PM, Kuhn Matthias, Vermessung wrote: Which patch did you test? The first one is known to be broken. Are you sure you didn't test this one? I did my test against second one. I am attaching my backported version to QGIS 1.8 -- Ivan Mincik diff --git

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Kuhn Matthias, Vermessung
If that one still crashes, I'm out of ideas. The strange thing is, that the warnings you posted on pastebin still appear for you. I'm pretty sure they disappeared on my machine. I'm currently working on a windows system, so I'm unable to verify right now. -Ursprüngliche Nachricht- Von:

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On 08/06/2012 02:11 PM, Kuhn Matthias, Vermessung wrote: If that one still crashes, I'm out of ideas. The strange thing is, that the warnings you posted on pastebin still appear for you. I'm pretty sure they disappeared on my machine. I'm currently working on a windows system, so I'm

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Kuhn Matthias, Vermessung
I'm on Fedora Core 17, Qt 4.8. But it seems odd to me, that qt changed these warnings, as there is a good reason for them to appear in the unpatched code and in the case they still appear with the patched code there would be a second call that can result in a paint event somewhere. Just to be

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On 08/06/2012 03:00 PM, Kuhn Matthias, Vermessung wrote: I'm on Fedora Core 17, Qt 4.8. But it seems odd to me, that qt changed these warnings, as there is a good reason for them to appear in the unpatched code and in the case they still appear with the patched code there would be a second

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On Mon, 2012-08-06 at 14:34 +, Kuhn Matthias, Vermessung wrote: I don't think that's the problem. I'll try to reproduce as soon as I'm back on my machine I have a good news. When building on Debian Wheezy with Gnome 3 and QT 4.8.2 I have no QPainter warnings and no resize crashes. Strange,

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Matthias Kuhn
Thank you for the information Ivan, I was already setting up a virtual machine on Squeeze to verify. if I understand correctly, you tested a patched 1.8? I'll fork 1.8 and commit a configurable fix for this, so hopefully we can get this as a quickfix to be released with the next 1.8 upgrade on

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Salvatore Larosa
2012/8/6 Ivan Mincik ivan.min...@gmail.com On Mon, 2012-08-06 at 14:34 +, Kuhn Matthias, Vermessung wrote: I don't think that's the problem. I'll try to reproduce as soon as I'm back on my machine I have a good news. When building on Debian Wheezy with Gnome 3 and QT 4.8.2 I have no

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On Mon, 2012-08-06 at 21:20 +0200, Salvatore Larosa wrote: 2012/8/6 Ivan Mincik ivan.min...@gmail.com On Mon, 2012-08-06 at 14:34 +, Kuhn Matthias, Vermessung wrote: I don't think that's the problem. I'll try to reproduce as soon as I'm back on my machine

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Salvatore Larosa
2012/8/6 Ivan Mincik ivan.min...@gmail.com On Mon, 2012-08-06 at 21:20 +0200, Salvatore Larosa wrote: 2012/8/6 Ivan Mincik ivan.min...@gmail.com On Mon, 2012-08-06 at 14:34 +, Kuhn Matthias, Vermessung wrote: I don't think that's the problem. I'll

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
Are you sure you compiled with CMAKE_BUILD_TYPE = Debug? No warnings with CMAKE_BUILD_TYPE = Debug. No crashes on resize. -- Ivan Mincik ivan.min...@gmail.com signature.asc Description: This is a digitally signed message part ___ Qgis-developer

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
if I understand correctly, you tested a patched 1.8? Yes. -- Ivan Mincik ivan.min...@gmail.com signature.asc Description: This is a digitally signed message part ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
Sorry, but my test was without patch! Anyway I did try the patch in current master and the flickering is disappear, but when run QGIS I get an exception: std::bad_alloc. can it is avoid? It could be some another problem with master. Are You sure it happens only with the patch? Did You

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Salvatore Larosa
2012/8/6 Ivan Mincik ivan.min...@gmail.com Sorry, but my test was without patch! Anyway I did try the patch in current master and the flickering is disappear, but when run QGIS I get an exception: std::bad_alloc. can it is avoid? It could be some another problem with master. Are You

Re: [Qgis-developer] Map canvas flickers

2012-08-06 Thread Ivan Mincik
On Mon, 2012-08-06 at 22:43 +0200, Salvatore Larosa wrote: 2012/8/6 Ivan Mincik ivan.min...@gmail.com Sorry, but my test was without patch! Anyway I did try the patch in current master and the flickering is disappear, but when run QGIS I

Re: [Qgis-developer] Map canvas flickers

2012-08-04 Thread Matthias Kuhn
Hi Ivan, As far as I can see, it is very likely that these issues are related. If you want to be sure and you are able to compile qgis by yourself, you can check the patch I attached in the other thread. Regards On Fri, 2012-08-03 at 22:05 +0200, Ivan Mincik wrote: Hi Matthias, do you think

Re: [Qgis-developer] Map canvas flickers

2012-08-03 Thread Ivan Mincik
Hi Matthias, do you think that this problem is the same as discussed it this [1] thread ? Thanks for interest to this issue. 1 - http://lists.osgeo.org/pipermail/qgis-developer/2012-August/021472.html -- Ivan Mincik ivan.min...@gmail.com signature.asc Description: This is a digitally

Re: [Qgis-developer] Map canvas flickers

2012-08-03 Thread Marco Hugentobler
Marco Hugentobler Gesendet: Donnerstag, 2. August 2012 16:33 Cc: qgis-developer@lists.osgeo.org Betreff: Re: [Qgis-developer] Map canvas flickers Hi Matthias Disabling that piece of code means there is no possibility to interrupt long rendering with the 'esc' key. Also the possibility to have

Re: [Qgis-developer] Map canvas flickers

2012-07-27 Thread Marco Hugentobler
Hi Matthias I still have the resize crash with Qt 4.8.1. To reproduce, load a layer with many objects. Go with the mouse to the right corner and resize several times without releasing the mouse. After the mouse release, the crash occures. Note: this problem (and the flicker with the

Re: [Qgis-developer] Map canvas flickers

2012-07-27 Thread Marco Hugentobler
I still have the crash with the patch (Qt::WA_NativeWindow) on my machine (Qt 4.8.1). Regards, Marco Am 27.07.2012 15:10, schrieb Matthias Kuhn: Hi Marco, thank you for verifying and advises on how to reproduce. I missed the part with without releasing the mouse I have created a patch that