Bug 104526

Summary: 0x00007fce563644fb in update_buffers (dri2_surf=dri2_surf@entry=0x55b5be7fc690) at drivers/dri2/platform_wayland.c:541
Product: Mesa Reporter: Frank <zyklon87>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: jan.public
Version: 17.2   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Frank 2018-01-07 14:54:55 UTC
Although in your Bugzillaa it is mentioned that bugs for Intel HD graphics should be reported to i965, my dmesg just shows i915, so I’ll report here. I own a Dell XPS 15 9550 and an “Intel® Core™ i7-6700HQ CPU @ 2.60GHz × 8” with “Intel® HD Graphics 530 (Skylake GT2) / NV117”. I use Fedora 27 with Wayland and have a mixed-dpi setup (UHD & HD screens). Mesa version is 17.2.4.

The bug is occurring by usage of the application Lollypop (via Flatpak), see my bug report there:
https://gitlab.gnome.org/gnumdk/lollypop/issues/1322#note_21741

Lollypop crashes reproducibly when I open this mentioned widget, close it and want to open it once again (I added a screencast there). The author was able to reproduce it, added a backtrace and asked me to open a bug report here. I don’t have any idea about the graphics stack and hope that this is somewhat self-explaining… :/


```
#0  0x00007fce563644fb in update_buffers (dri2_surf=dri2_surf@entry=0x55b5be7fc690)
    at drivers/dri2/platform_wayland.c:541
541    if (dri2_surf->base.Width != dri2_surf->wl_win->width ||
[Current thread is 1 (Thread 0x7fcf0040c540 (LWP 28330))]
(gdb) backtrace
#0  0x00007fce563644fb in update_buffers (dri2_surf=dri2_surf@entry=0x55b5be7fc690)
    at drivers/dri2/platform_wayland.c:541
#1  0x00007fce563645e4 in image_get_buffers (driDrawable=driDrawable@entry=0x55b5be65a7e0, format=<optimized out>, stamp=stamp@entry=0x55b5be65a810, loaderPrivate=loaderPrivate@entry=0x55b5be7fc690, buffer_mask=buffer_mask@entry=1, buffers=buffers@entry=0x7ffdcc8754a0)
    at drivers/dri2/platform_wayland.c:669
#2  0x00007fce54c1bc2e in intel_update_image_buffers (drawable=0x55b5be65a7e0, brw=0x55b5bdc241a0) at brw_context.c:1657
#3  0x00007fce54c1bc2e in intel_update_renderbuffers (context=context@entry=0x55b5bd2c53b0, drawable=drawable@entry=0x55b5be65a7e0) at brw_context.c:1325
#4  0x00007fce54c1bf51 in intel_prepare_render (brw=brw@entry=0x55b5bdc241a0)
    at brw_context.c:1346
#5  0x00007fce54c1d364 in brw_try_draw_prims (indirect=0x0, stream=0, xfb_obj=0x0, max_index=5, min_index=0, index_bounds_valid=<optimized out>, ib=0x0, nr_prims=1, prims=0x7ffdcc8755f0, arrays=0x55b5be634e68, ctx=0x55b5bdc241a0) at brw_draw.c:647
#6  0x00007fce54c1d364 in brw_draw_prims (ctx=0x55b5bdc241a0, prims=0x7ffdcc8755f0, nr_prims=1, ib=0x0, index_bounds_valid=<optimized out>, min_index=<optimized out>, max_index=<optimized out>, gl_xfb_obj=0x0, stream=0, indirect=0x0) at brw_draw.c:869
#7  0x00007fce549990fb in vbo_draw_arrays (ctx=ctx@entry=0x55b5bdc241a0, mode=mode@entry=4, start=start@entry=0, count=count@entry=6, numInstances=numInstances@entry=1, baseInstance=baseInstance@entry=0, drawID=0) at vbo/vbo_exec_array.c:486
#8  0x00007fce54999378 in vbo_exec_DrawArrays (mode=4, start=0, count=6)
    at vbo/vbo_exec_array.c:641
#9  0x00007fcef449de2c in gdk_gl_texture_quads (paint_context=paint_context@entry=0x55b5bda6f4e0 [GdkWaylandGLContext], texture_target=texture_target@entry=3553, n_quads=n_quads@entry=1, quads=quads@entry=0x7ffdcc8757f0, flip_colors=flip_colors@entry=1) at gdkgl.c:286
#10 0x00007fcef449e18c in gdk_gl_texture_from_surface (surface=0x55b5be835370, region=region@entry=0x55b5be724e00) at gdkgl.c:809
#11 0x00007fcef44b4aac in gdk_window_end_paint_internal (window=window@entry=0x55b5be050010 [GdkWaylandWindow]) at gdkwindow.c:3038
#12 0x00007fcef44b4c88 in gdk_window_end_draw_frame (window=window@entry=0x55b5be050010 [GdkWaylandWindow], context=context@entry=0x55b5bd90e6f0 [GdkDrawingContext])
    at gdkwindow.c:3289
#13 0x00007fceedb9b6e3 in gtk_widget_render (widget=widget@entry=0x55b5bc8f42a0 [lollypop+window+Window], window=0x55b5be050010 [GdkWaylandWindow], region=<optimized out>)
    at gtkwidget.c:17522

```
Comment 1 GitLab Migration User 2019-09-18 19:40:40 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/780.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.