[Spice-devel] [PATCH v2 3/4] use QXLState instead of RedDispatcher

Francois Gouget fgouget at codeweavers.com
Tue Mar 8 19:33:27 UTC 2016


On Thu, 3 Mar 2016, Frediano Ziglio wrote:
[...]
>  void red_qxl_init(QXLInstance *qxl)
>  {
> -    RedDispatcher *red_dispatcher;
> +    QXLState *qxl_state;
>      RedChannel *channel;
>      ClientCbs client_cbs = { NULL, };
>  
>      spice_return_if_fail(qxl != NULL);
> -    spice_return_if_fail(qxl->st->dispatcher == NULL);
> +    spice_return_if_fail(qxl->st == NULL);

This change causes Xspice to crash on startup:

reds.c:3206:spice_server_add_interface: SPICE_INTERFACE_QXL
(process:3165): Spice-CRITICAL **: red-qxl.c:944:red_qxl_init: condition `qxl->st == NULL' failed

Removing the offending assert gets Xspice to start again but that's 
probably not be the right fix...


-- 
Francois Gouget <fgouget at codeweavers.com>



More information about the Spice-devel mailing list