[Kde-hardware-devel] Review Request 110930: Delay call to saveCurrentConfig() to prevent crash in case multiple events arrive

Dan Vrátil dvratil at redhat.com
Mon Jun 10 09:43:33 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110930/
-----------------------------------------------------------

(Updated June 10, 2013, 11:43 a.m.)


Review request for Solid and Àlex Fiestas.


Changes
-------

Reviewboard deleted my description. Bad bad reviewboard!


Description (updated)
-------

This crash is not easily reproduce on physical HW, but is easy to do in VirtualBox. Just install Guest Additions and start resizing the window. Every size change emits a XRandR event, so we can get insane amount of events within a very small time.

This patch adds a guard that will call saveConfig() only when there's no new event delivered for at least 300ms. With this patch, I can no longer crash KDED in VirtualBox (and trust me, I tried xD)


This addresses bug 319878.
    http://bugs.kde.org/show_bug.cgi?id=319878


Diffs
-----

  kded/daemon.h cdf0905 
  kded/daemon.cpp d582ad6 

Diff: http://git.reviewboard.kde.org/r/110930/diff/


Testing
-------


Thanks,

Dan Vrátil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20130610/bf74e0b5/attachment.html>


More information about the Kde-hardware-devel mailing list