*** This bug is a duplicate of bug 1745799 ***
https://bugs.launchpad.net/bugs/1745799
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);
if (!cogl_texture_allocate (COGL_TEXTURE (texture), error))
{
g_clear_pointer (&texture, cogl_object_unref);
texture = COGL_TEXTURE (cogl_texture_2d_sliced_new_from_bitmap (bitmap,
COGL_TEXTURE_MAX_WASTE));
cogl_texture_set_components (COGL_TEXTURE (texture), components);
if (!cogl_texture_allocate (COGL_TEXTURE (texture), error))
g_clear_pointer (&texture, cogl_object_unref);
}
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
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1795760
Title:
Xwayland crashed with SIGABRT in OsAbort()
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1795760/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs