I do not think this is a duplicate of bug #1745799.
At this comment I will try to give a code to solve this bug.
My symbol Xwaylnd-crash shows the next trace:
#6 0x0062b600 in FatalError (f=0x63704e "%s") at ../../../../os/log.c:1015
args = 0xbf9c7844 "\\x\234\277"
args2 = 0xbf9c7844 "\\x\234\277"
beenhere = 1
#7 0x004b6296 in xwl_log_handler (format=0xb7dc71ea "%s@%u: error %d: %s\n", args=0xbf9c7994 "\027uܷ\255\001") at ../../../../../hw/xwayland/xwayland.c:1137
msg = "wl_surface@429: error 2: Failed to create a texture for surface 429: Failed to create texture 2d due to size/format constraints\n", '\000' <repeats 127 times>
#8 0xb7dc5fef in wl_log (fmt=0xb7dc71ea "%s@%u: error %d: %s\n") at ../src/wayland-util.c:404
Problem can be solved by using slicing at shm_buffer_attach() at src/wayland/meta-wayland-buffer.c, if size of texture is too large for graphics card. Code for freeing the bitmap is now positioned after the if.
This results into the following code:
texture = COGL_TEXTURE (cogl_texture_2d_new_from_bitmap (bitmap));
cogl_texture_set_components (COGL_TEXTURE (texture), components);
This code is working and makes it possible to login with wayland with dual screen without any monitors.xml-config on small/old graphic cards.
Slicing is causing next message:
Oct 13 15:51:36 Gert2 gnome-shell[1994]: Skipping layers 1..n of your pipeline since the first layer is sliced. We don't currently support any multi-texturing with sliced textures but assume layer 0 is the most important to keep
I do not think this is a duplicate of bug #1745799. ./../os/ log.c:1015 ./../.. /hw/xwayland/ xwayland. c:1137 wayland- util.c: 404
At this comment I will try to give a code to solve this bug.
My symbol Xwaylnd-crash shows the next trace:
#6 0x0062b600 in FatalError (f=0x63704e "%s") at ../../.
args = 0xbf9c7844 "\\x\234\277"
args2 = 0xbf9c7844 "\\x\234\277"
beenhere = 1
#7 0x004b6296 in xwl_log_handler (format=0xb7dc71ea "%s@%u: error %d: %s\n", args=0xbf9c7994 "\027uܷ\255\001") at ../../.
msg = "wl_surface@429: error 2: Failed to create a texture for surface 429: Failed to create texture 2d due to size/format constraints\n", '\000' <repeats 127 times>
#8 0xb7dc5fef in wl_log (fmt=0xb7dc71ea "%s@%u: error %d: %s\n") at ../src/
Problem can be solved by using slicing at shm_buffer_attach() at src/wayland/ meta-wayland- buffer. c, if size of texture is too large for graphics card. Code for freeing the bitmap is now positioned after the if.
This results into the following code: 2d_new_ from_bitmap (bitmap)); texture_ set_components (COGL_TEXTURE (texture), components);
texture = COGL_TEXTURE (cogl_texture_
cogl_
if (!cogl_ texture_ allocate (COGL_TEXTURE (texture), error)) clear_pointer (&texture, cogl_object_unref); 2d_sliced_ new_from_ bitmap (bitmap, COGL_TEXTURE_ MAX_WASTE) ); texture_ set_components (COGL_TEXTURE (texture), components); texture_ allocate (COGL_TEXTURE (texture), error))
g_clear_ pointer (&texture, cogl_object_unref);
{
g_
texture = COGL_TEXTURE (cogl_texture_
cogl_
if (!cogl_
}
wl_shm_ buffer_ end_access (shm_buffer);
cogl_object_unref (bitmap);
buffer->texture = texture;
This code is working and makes it possible to login with wayland with dual screen without any monitors.xml-config on small/old graphic cards.
Slicing is causing next message:
Oct 13 15:51:36 Gert2 gnome-shell[1994]: Skipping layers 1..n of your pipeline since the first layer is sliced. We don't currently support any multi-texturing with sliced textures but assume layer 0 is the most important to keep