-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when resizing map window with Qt 4.6 #12774
Comments
Author Name: Martin Dobias (@wonder-sk) It seems it's caused by the processEvents() calls in [[QgsVectorLayer]] - the crash happens in Qt libraries. If I comment out the processEvents() calls, the segfault is gone. My GSoC project should handle this once the rendering will be completely done in worker thread(s), but that will be too late for 1.5. So probably we should just disable these calls (they are already disabled on OS X). |
Author Name: Marco Hugentobler (@mhugent) Looking forward for a clean solution with the worker thread. Because disable the calls of processEvents would mean no incremental screen updates and no interruption of the rendering for 1.5? This would make handling of large datasets with QGIS very difficult. |
Author Name: Jürgen Fischer (@jef-n) Replying to [comment:2 mhugent]:
The WMS provider now has the same problem. It seems to be a bug in the new Qt "Animation Framework":http://doc.trolltech.com/4.6/animation-overview.html as the "Qt Bug report #15945":http://bugreports.qt.nokia.com/browse/QTBUG-6897 looks related. Following change works around the problem:
|
Author Name: Jürgen Fischer (@jef-n) workaround fixes the crash. |
Author Name: marisn - (marisn -) Replying to [comment:6 jef]:
Resizing window with present vector layer still results in segfault. Can be trigerred also by moving around toolbars (cause canvas resize). And this isn't "minor: annoyance" QGIS trunk 13763 Qt 4.6.3 Gentoo ~AMD64 |
Author Name: marisn - (marisn -) Issue dissapears when I disable "Use render caching" in Options. Also - to make QGIS crash, one needs to issue multiple redraws - resize layer TOC or window and not simply minimize/maximize it. Seems to be some race condition as next redraw has to start before previous is complete. QGIS trunk 14908 Gentoo ~AMD64 x11-libs/qt-core-4.7.1-r1:4 |
Author Name: Giovanni Manghi (@gioman) Replying to [comment:11 jef]: The crash when resizing the overview windows is indeed fixed. Unfortunately it seems that there is a secondary problem (let me know if you want me to open a new ticket): resizing the overview windows is very slow, with both the "cache rendering" enabled or disabled. Just tested it with a couple of polygon/line layers (shapes, wfs). |
Author Name: Giovanni Manghi (@gioman) it doesn't seems to resize vertically at all.
|
Author Name: Markus Neteler (Markus Neteler) Having loaded two vector maps (LAEA, no reprojection on the fly), resizing the window leads to a crash. Logs of two events attached. System: Linux north 2.6.33.7-desktop-2mnb #13929 SMP Mon Sep 20 18:19:20 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux Qt 4.6.2 If it was fixed on trunk, please backport to 1.6 since it is a major showstopper.
|
Author Name: Anne Ghisla (Anne Ghisla) I can reproduce this bug with a huge shapefile - 37k points - and resize the main window from a corner twice. It happens anytime, disregarding render caching setting. f8e10a3 (SVN r15725), Qt 4.7.1 |
Author Name: Radim Blazek (@blazek) I have the same problem with current master with single WMS layer on Debian 5.0 and Qt 4.6.1, backtrace attached. I am not sure if it is still the same problem, but Qt 4.6 suggests that it could be and other people just upgraded Qt to 4.7 and problem was "resolved".
|
Author Name: Matthias Kuhn (@m-kuhn) Could be related, based on the stack trace. Can you try to enable backbuffering in Settings => Options => Rendering. |
Author Name: Jürgen Fischer (@jef-n) Radim Blazek wrote:
lenny is oldoldstable. And if upgrading to Qt 4.7 helps, this might be a Qt problem after all. Should that really be a blocker? |
Author Name: Jürgen Fischer (@jef-n) Jürgen Fischer wrote:
Closing it again.
|
Author Name: Marco Hugentobler (@mhugent)
Original Redmine Issue: 2714
Affected QGIS version: master
Redmine category:map_canvas
Load a large vector file. Resize the main windows several time (or add the attribute table docked). Qgis crashes with Qt 4.6. With 4.5, there was no crash. Maybe this is because of concurrent vector access?
Related issue(s): #13830 (relates)
Redmine related issue(s): 3771
The text was updated successfully, but these errors were encountered: