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

Commit Hook null at kde.org
Mon Jun 10 10:14:05 UTC 2013


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

(Updated June 10, 2013, 10:14 a.m.)


Status
------

This change has been marked as submitted.


Review request for Solid and Àlex Fiestas.


Description
-------

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/f62e1564/attachment-0001.html>


More information about the Kde-hardware-devel mailing list