Re: [Spice-devel] [spice-gtk] If replace me, should nod do refcount plus one

2018-07-17 Thread Frediano Ziglio
> > > > > > > > From: 乐义华 > > > > > > https://gitlab.freedesktop.org/spice/spice-gtk/issues/72 > > > --- > > > src/channel-display.c | 5 - > > > src/spice-channel-cache.h | 8 > > > 2 files changed, 12 insertions(+), 1 deletion(-) > > > > > > diff --git a/src/channel-display

Re: [Spice-devel] Spice console pixelated noise on display changes

2018-07-17 Thread Mitja Mihelič
On 12/07/2018 18:01, Christophe Fergeau wrote: Hey, On Wed, Jul 11, 2018 at 10:45:08AM +0200, Mitja Mihelič wrote: Answering the question for posterity. We found a temporary solution to the described problem. We had an oVirt development cluster with a working SPICE console. By comparing packa

[Spice-devel] [PATCH spice-gtk] If replace me, should not do refcount plus one

2018-07-17 Thread Frediano Ziglio
From: 乐义华 When an image with SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME is received the reference counter should stay the same to avoid the cache to grow continously. This fixes https://gitlab.freedesktop.org/spice/spice-gtk/issues/72 Signed-off-by: 乐义华 Signed-off-by: Frediano Ziglio --- src/channel

Re: [Spice-devel] [spice-gtk] Fix using NULL main channel reference

2018-07-17 Thread Frediano Ziglio
> > The main channel reference d->main of SpiceWidget is initialized on > construction. However, it is used a couple of times before that moment > while setting the default values of some properties, like resize-guest. > This results in some annoying critical log messages. This commit makes > sure

[Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unused org.spice-space.stream.0 spice port as this will create a 'fake' display channel which is offere

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
On Mon, Jul 16, 2018 at 10:03:23AM -0500, Jeremy White wrote: > Hey Christophe, > > On 07/12/2018 11:07 AM, Christophe Fergeau wrote: > > log_draw() is used to debug drawing commands by dumping drawing > > information to the JS console. This commit adds dumping of missing data > > for uncompressed

Re: [Spice-devel] [PATCH spice-gtk] If replace me, should not do refcount plus one

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 08:17:53AM +0100, Frediano Ziglio wrote: > From: 乐义华 > > When an image with SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME is received the > reference counter should stay the same to avoid the cache to grow > continously. > > This fixes https://gitlab.freedesktop.org/spice/spice-gtk/

Re: [Spice-devel] [PATCH spice-gtk 2/2] spice-widget: Use proper pointer type for channel_new/channel_destroy

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 07:57:54AM +0100, Frediano Ziglio wrote: > No need to pass a generic pointer. > This is also used as a callback: spice_g_signal_connect_object(d->session, "channel-new", G_CALLBACK(channel_new), display, 0); and the 'expected' type for

[Spice-devel] [PATCH] Fix two build errors for clang

2018-07-17 Thread Christophe de Dinechin
From: Christophe de Dinechin Clang complains about: 1. [[noreturn]] used on implementation instead of header 2. errno used without Details: clang complains about [[noreturn]] not being on the first declaration. cursor-updater.cpp:77:3: error: function declared '[[noreturn]]' after its first

Re: [Spice-devel] [PATCH] Fix two build errors for clang

2018-07-17 Thread Lukáš Hrázký
On Tue, 2018-07-17 at 14:10 +0200, Christophe de Dinechin wrote: > From: Christophe de Dinechin > > Clang complains about: > 1. [[noreturn]] used on implementation instead of header > 2. errno used without > > Details: > > clang complains about [[noreturn]] not being on the first declaration.

Re: [Spice-devel] [PATCH spice-gtk] If replace me, should not do refcount plus one

2018-07-17 Thread yueyi...@os-easy.com
OK, I have modified it. From 87be8732bf36038c9ba9faabb1aae58f7b830d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=90=E4=B9=89=E5=8D=8E?= Date: Thu, 12 Jul 2018 13:16:53 +0800 Subject: [PATCH] Fix image cache memory usage When image flag is SPICE_IMAGE_FLAGS_CACHE_REPLACE_ME, and if found it

[Spice-devel] VDAgent and XDMCP

2018-07-17 Thread Javier Celaya
Hello list I have a special scenario where I cannot get the VDAgent to run correctly. We are migrating a physical setup to virtual, with Ubuntu booting by PXE from a SLES server. Then, an X session is started with XDMCP, so that the X server runs in the virtual Ubuntu guest and the X clients run i

Re: [Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Frediano Ziglio
> > spice-html5 does not support multiple display channels, and will only > use the first one offered by spice-server, and ignore the others. This > can cause issues when using a VM with a configured but unused > org.spice-space.stream.0 spice port as this will create a 'fake' display > channel wh

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Jeremy White
diff --git a/display.js b/display.js index 7719b23..c55b686 100644 --- a/display.js +++ b/display.js @@ -769,6 +769,12 @@ SpiceDisplayConn.prototype.log_draw = function(prefix, draw) str += "; src_bitmap type " + draw.data.src_bitmap.descriptor.type + ", flags " + draw.data.src_bi

[Spice-devel] [PATCH spice-gtk v2] spice-widget: Use proper pointer type for channel_new/channel_destroy

2018-07-17 Thread Frediano Ziglio
No need to pass a generic pointer. Avoid SpiceDisplay* -> gpointer* -> gpointer -> SpiceDisplay* cast chain. Signed-off-by: Frediano Ziglio --- src/spice-widget.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) Changes since v1: - merge 2 small patches changing pointer argu

Re: [Spice-devel] [spice-html5] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 09:00:33AM -0500, Jeremy White wrote: > > > > diff --git a/display.js b/display.js > > > > index 7719b23..c55b686 100644 > > > > --- a/display.js > > > > +++ b/display.js > > > > @@ -769,6 +769,12 @@ SpiceDisplayConn.prototype.log_draw = > > > > function(prefix, draw) > > >

[Spice-devel] [spice-html5 v2] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unused org.spice-space.stream.0 spice port as this will create a 'fake' display channel which is offere

Re: [Spice-devel] [spice-html5] display: Only use display channel with id 0

2018-07-17 Thread Christophe Fergeau
On Tue, Jul 17, 2018 at 09:51:28AM -0400, Frediano Ziglio wrote: > > > > spice-html5 does not support multiple display channels, and will only > > use the first one offered by spice-server, and ignore the others. This > > can cause issues when using a VM with a configured but unused > > org.spice-

[Spice-devel] [spice-html5 v2] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Christophe Fergeau
log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currently does not deal properly with such bitmaps. Signed-off-by: Christophe Fergea

[Spice-devel] [PATCH spice-server 2/3] Rename SpiceHead::id to monitor_id in the protocol

2018-07-17 Thread Lukáš Hrázký
Signed-off-by: Lukáš Hrázký --- server/dcc-send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dcc-send.c b/server/dcc-send.c index 79c3d48b..e19ee19c 100644 --- a/server/dcc-send.c +++ b/server/dcc-send.c @@ -2294,7 +2294,7 @@ static void marshall_monitors_config(Re

[Spice-devel] [PATCH spice-gtk 3/3] Rename SpiceHead::id to monitor_id in the protocol

2018-07-17 Thread Lukáš Hrázký
Signed-off-by: Lukáš Hrázký --- src/channel-display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel-display.c b/src/channel-display.c index 993d9b7..54f40ba 100644 --- a/src/channel-display.c +++ b/src/channel-display.c @@ -1896,9 +1896,9 @@ static void displ

[Spice-devel] [PATCH spice-common 0/3] rename SpiceHead::id to monitor_id

2018-07-17 Thread Lukáš Hrázký
As an independent step in the monitors_config series, the SpiceHead::id can be renamed to monitor_id. Note the spice-server and spice-gtk patches should contain an update to the spice-common submodule referencing the commit that does the rename, so that the repository is in a consistent state. I'm

[Spice-devel] [PATCH spice-common] Rename SpiceHead::id to monitor_id

2018-07-17 Thread Lukáš Hrázký
The id is called 'monitor_id' throughout the rest of the code, rename for clarity and consistency. Signed-off-by: Lukáš Hrázký --- common/messages.h | 2 +- spice.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/messages.h b/common/messages.h index 4fc03d

[Spice-devel] [PATCH spice-streaming-agent] jpeg: Do not use next_output_byte buf_empty_output_buffer

2018-07-17 Thread Frediano Ziglio
The pointer is not updated to the last byte used so using it to compute the bytes written into the buffer we ignore some bytes causing some image corruptions. Note that also free_in_buffer is not updated to last written byte. When buf_empty_output_buffer is called the buffer is full so use the size

Re: [Spice-devel] [PATCH spice-common] Rename SpiceHead::id to monitor_id

2018-07-17 Thread Frediano Ziglio
> > The id is called 'monitor_id' throughout the rest of the code, rename > for clarity and consistency. > > Signed-off-by: Lukáš Hrázký > --- > common/messages.h | 2 +- > spice.proto | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/common/messages.h b/common/

Re: [Spice-devel] [PATCH spice-common 0/3] rename SpiceHead::id to monitor_id

2018-07-17 Thread Frediano Ziglio
> > As an independent step in the monitors_config series, the SpiceHead::id > can be renamed to monitor_id. > > Note the spice-server and spice-gtk patches should contain an update to > the spice-common submodule referencing the commit that does the rename, > so that the repository is in a consis

[Spice-devel] [PATCH v2 1/2] Fix clang build error on [[noreturn]]

2018-07-17 Thread Christophe de Dinechin
From: Christophe de Dinechin The [[noreturn]] attribute must be visible from call sites. This is a hard error in clang: cursor-updater.cpp:77:3: error: function declared '[[noreturn]]' after its first declaration [[noreturn]] void CursorUpdater::operator()() ^ ./cursor-updater.hpp:24:10: note:

[Spice-devel] [PATCH v2 2/2] Fix clang build error on missing

2018-07-17 Thread Christophe de Dinechin
From: Christophe de Dinechin Using errno requires . Some platforms/compilers are stricter than others in this respect. frame-log.cpp:27:96: error: use of undeclared identifier 'errno' throw Error(std::string("Failed to open log file '") + log_name + "': " + strerror(errno)); Signed-

[Spice-devel] [PATCH v2 0/2] Fix clang build errors

2018-07-17 Thread Christophe de Dinechin
From: Christophe de Dinechin Christophe de Dinechin (2): Fix clang build error on [[noreturn]] Fix clang build error on missing src/cursor-updater.cpp | 2 +- src/cursor-updater.hpp | 2 +- src/frame-log.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) -- 2.13.5 (Apple Git

[Spice-devel] [PATCH spice-server] Update spice-common submodule

2018-07-17 Thread Frediano Ziglio
This brings in the following changes: Christophe Fergeau (20): build: Update git.mk to latest version build: Remove docs/.gitignore build: Add __pycache__/*.pyc to DISTCLEANFILES log: Only install glib log handler if SPICE_DEBUG_LEVEL is set test-logging: Improve debu

Re: [Spice-devel] [spice-html5 v2] display: Dump bitmap metadata in log_draw()

2018-07-17 Thread Jeremy White
Acked-by: Jeremy White On 07/17/2018 10:18 AM, Christophe Fergeau wrote: log_draw() is used to debug drawing commands by dumping drawing information to the JS console. This commit adds dumping of missing data for uncompressed bitmaps. The 'stride' parameter is important, as spice-html5 currentl

Re: [Spice-devel] [PATCH spice-server] Update spice-common submodule

2018-07-17 Thread Lukáš Hrázký
On Tue, 2018-07-17 at 17:10 +0100, Frediano Ziglio wrote: > This brings in the following changes: > > Christophe Fergeau (20): > build: Update git.mk to latest version > build: Remove docs/.gitignore > build: Add __pycache__/*.pyc to DISTCLEANFILES > log: Only install glib