[Bug 93497] spice-gtk out of memory when guest os replay vedio
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 3 06:51:55 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=93497
linp.lin <155270702 at qq.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEEDINFO |RESOLVED
--- Comment #7 from linp.lin <155270702 at qq.com> ---
1. display_handle_stream_data:limit st->msgq len
+ /* st->msgq is full and clear queue */
+ if (g_queue_get_length(st->msgq) >= MAX_HARD_MSGQ_LEN) {
+ CHANNEL_DEBUG(channel, "st->msgq=%d and clear st->msgq",
g_queue_get_length(st->msgq));
+ g_queue_foreach(st->msgq, _msg_in_unref_func, NULL);
+ g_queue_clear(st->msgq);
+ if (st->timeout != 0) {
+ g_source_remove(st->timeout);
+ st->timeout = 0;
+ }
+ }
2. use hardware decoder(hisi chip) decode jpeg,it modify "stream_mjpeg_data"
func
it can make cpu load down 70-80%.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20160303/7f602188/attachment.html>
More information about the spice-bugs
mailing list