Bug 110452

Summary: totem crashed with SIGTRAP in __glXSendError() from MakeContextCurrent()
Product: Mesa Reporter: El jinete sin cabeza <romanescu.2019>
Component: GLXAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: eero.t.tamminen, romanescu.2019
Version: 18.0   
Hardware: Other   
OS: All   
See Also: https://launchpad.net/bugs/1758287
Whiteboard:
i915 platform: i915 features:

Description El jinete sin cabeza 2019-04-16 17:06:03 UTC
Open bug in launchpad.net
https://bugs.launchpad.net/bugs/1758287

"totem crashed with signal 5"

BackTrace:
#0  _g_log_abort (breakpoint=breakpoint@entry=1) at ../../../../glib/gmessages.c:583
        debugger_present = 1
#1  0x00007f07050f8571 in g_log_writer_default (log_level=6, log_level@entry=G_LOG_LEVEL_ERROR, fields=fields@entry=0x7fff141276e0, n_fields=n_fields@entry=6, user_data=user_data@entry=0x0) at ../../../../glib/gmessages.c:2735
        __func__ = "g_log_writer_default"
#2  0x00007f07050f67de in g_log_structured_array (log_level=G_LOG_LEVEL_ERROR, fields=0x7fff141276e0, n_fields=6) at ../../../../glib/gmessages.c:1970
        writer_func = 0x7f07050f8400 <g_log_writer_default>
        writer_user_data = 0x0
        recursion = 0
        depth = <optimized out>
        n_fields = 6
        log_level = G_LOG_LEVEL_ERROR
        writer_user_data = <optimized out>
        depth = <optimized out>
        fields = 0x7fff141276e0
        writer_func = <optimized out>
        recursion = <optimized out>
        _g_boolean_var_ = <optimized out>
        writer_func = <optimized out>
        writer_user_data = <optimized out>
        recursion = <optimized out>
        depth = <optimized out>
        _g_boolean_var_ = <optimized out>
#3  0x00007f07050f722e in g_log_structured_standard (log_domain=log_domain@entry=0x7f070236b28e "Gdk", log_level=log_level@entry=G_LOG_LEVEL_ERROR, file=file@entry=0x7f0702389a78 "../../../../../gdk/x11/gdkdisplay-x11.c", line=line@entry=0x7f07023894cf "2766", func=func@entry=0x7f070238a190 <__func__.74387> "_gdk_x11_display_error_event", message_format=message_format@entry=0x7f070238a50b "%s") at ../../../../glib/gmessages.c:2027
        fields = {{key = 0x7f0705142464 "PRIORITY", value = 0x7f07051422f9, length = -1}, {key = 0x7f070514246d "CODE_FILE", value = 0x7f0702389a78, length = -1}, {key = 0x7f0705142477 "CODE_LINE", value = 0x7f07023894cf, length = -1}, {key = 0x7f0705142481 "CODE_FUNC", value = 0x7f070238a190 <__func__.74387>, length = -1}, {key = 0x7f0705142451 "MESSAGE", value = 0x56326c71ad30, length = -1}, {key = 0x7f07051424be "GLIB_DOMAIN", value = 0x7f070236b28e, length = -1}}
        n_fields = <optimized out>
        message_allocated = 0x56326c71ad30 "The program 'totem' received an X Window System error.\nThis probably reflects a bug in the program.\nThe error was 'GLXBadContext'.\n  (Details: serial 53257 error_code 169 request_code 155 (GLX) minor_"...
        buffer = "vec2 UV)\n{\n  vec\377\377\377\377\000\000\000\000l_sample0\222\n\005\a\177\000\000\020\272\247\005\a\177\000\000\000XProtoError\000LIB", '\000' <repeats 17 times>, "\200?D", '\000' <repeats 14 times>, "?\303\000\000\000\000(\345[\002\a\177\000\000\240\202;l2V\000\000\251\000\000\000\000\000\000\000`|\022\024\377\177\000\000\032\000\000\000\000\000\000\000\233\000\000\000\000\000\000\000\303>\211\005\a\177\000\000\005", '\000' <repeats 23 times>, "\060\222\n\005\a\177\000\000\060|\022\024\377\177\000\000"...
        args = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fff14127c58, reg_save_area = 0x7fff14127b80}}
#4  0x00007f070232de31 in _gdk_x11_display_error_event (display=display@entry=0x56326c2e3110, error=error@entry=0x7fff14127d30) at ../../../../../gdk/x11/gdkdisplay-x11.c:2766
        buf = "GLXBadContext", '\000' <repeats 50 times>
        msg = <optimized out>
        display_x11 = 0x56326c2e3110
        tmp_list = <optimized out>
        ignore = 0
        __func__ = "_gdk_x11_display_error_event"
#5  0x00007f070233acb3 in gdk_x_error (xdisplay=0x56326c2d49e0, error=0x7fff14127d30) at ../../../../../gdk/x11/gdkmain-x11.c:307
        error_display = 0x56326c2e3110
        manager = <optimized out>
        displays = 0x0
        error = 0x7fff14127d30
        xdisplay = 0x56326c2d49e0
        error_display = <optimized out>
        manager = <optimized out>
        displays = <optimized out>
        gdk_display = <optimized out>
        __inst = <optimized out>
        __t = <optimized out>
        __r = <optimized out>
#6  0x00007f0704a0cc8d in _XError (dpy=dpy@entry=0x56326c2d49e0, rep=rep@entry=0x7fff14127e20) at ../../src/XlibInt.c:1434
        rtn_val = <optimized out>
        event = {type = 0, xany = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785}, xkey = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, root = 8655628632, subwindow = 94774576511872, time = 3437855993206445056, x = 39845959, y = 0, x_root = 0, y_root = 0, state = 1815665024, keycode = 22066, same_screen = 39845959}, xbutton = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, root = 8655628632, subwindow = 94774576511872, time = 3437855993206445056, x = 39845959, y = 0, x_root = 0, y_root = 0, state = 1815665024, button = 22066, same_screen = 39845959}, xmotion = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, root = 8655628632, subwindow = 94774576511872, time = 3437855993206445056, x = 39845959, y = 0, x_root = 0, y_root = 0, state = 1815665024, is_hint = 50 '2', same_screen = 39845959}, xcrossing = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, root = 8655628632, subwindow = 94774576511872, time = 3437855993206445056, x = 39845959, y = 0, x_root = 0, y_root = 0, mode = 1815665024, detail = 22066, same_screen = 39845959, focus = 0, state = 1815685952}, xfocus = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, mode = 65694040, detail = 2}, xexpose = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, x = 65694040, y = 2, width = 1828158336, height = 22066, count = -1341877248}, xgraphicsexpose = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, drawable = 1743785, x = 65694040, y = 2, width = 1828158336, height = 22066, count = -1341877248, major_code = 800438223, minor_code = 39845959}, xnoexpose = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, drawable = 1743785, major_code = 65694040, minor_code = 2}, xvisibility = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, state = 65694040}, xcreatewindow = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, parent = 1743785, window = 8655628632, x = 1828158336, y = 22066, width = -1341877248, height = 800438223, border_width = 39845959, override_redirect = 0}, xdestroywindow = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632}, xunmap = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, from_configure = 1828158336}, xmap = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, override_redirect = 1828158336}, xmaprequest = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, parent = 1743785, window = 8655628632}, xreparent = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, parent = 94774576511872, x = -1341877248, y = 800438223, override_redirect = 39845959}, xconfigure = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, x = 1828158336, y = 22066, width = -1341877248, height = 800438223, border_width = 39845959, above = 0, override_redirect = 1815665024}, xgravity = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, x = 1828158336, y = 22066}, xresizerequest = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, width = 65694040, height = 2}, xconfigurerequest = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, parent = 1743785, window = 8655628632, x = 1828158336, y = 22066, width = -1341877248, height = 800438223, border_width = 39845959, above = 0, detail = 1815665024, value_mask = 39845959}, xcirculate = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, event = 1743785, window = 8655628632, place = 1828158336}, xcirculaterequest = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, parent = 1743785, window = 8655628632, place = 1828158336}, xproperty = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, atom = 8655628632, time = 94774576511872, state = -1341877248}, xselectionclear = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, selection = 8655628632, time = 94774576511872}, xselectionrequest = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, owner = 1743785, requestor = 8655628632, selection = 94774576511872, target = 3437855993206445056, property = 39845959, time = 0}, xselection = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, requestor = 1743785, selection = 8655628632, target = 94774576511872, property = 3437855993206445056, time = 39845959}, xcolormap = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, colormap = 8655628632, new = 1828158336, state = 22066}, xclient = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, message_type = 8655628632, format = 1828158336, data = {b = "\000\224\004\260\317\267\265/G\000`\002\000\000\000\000\000\000\000", s = {-27648, -20476, -18481, 12213, 71, 608, 0, 0, 0, 0}, l = {3437855993206445056, 39845959, 0, 94774564018560, 39845959}}}, xmapping = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, request = 65694040, first_keycode = 2, count = 1828158336}, xerror = {type = 0, display = 0x56326c2d49e0, resourceid = 0, serial = 53257, error_code = 169 '\251', request_code = 155 '\233', minor_code = 26 '\032'}, xkeymap = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, window = 1743785, key_vector = "Xi\352\003\002\000\000\000\200{\367l2V\000\000\000\224\004\260\317\267\265/G\000`\002\000\000\000"}, xgeneric = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, extension = 1743785, evtype = 0}, xcookie = {type = 0, serial = 94774563260896, send_event = 0, display = 0xd009, extension = 1743785, evtype = 0, cookie = 65694040, data = 0x56326cf77b80}, pad = {0, 94774563260896, 0, 53257, 1743785, 8655628632, 94774576511872, 3437855993206445056, 39845959, 0, 94774564018560, 39845959, 94774564039488, 0, 94774564125520, 139667776560994, 94774564018560, 3437855993206445056, 39845959, 94774565782016, 0, 139667776382059, 39845959, 94774563260896}}
        async = <optimized out>
        next = <optimized out>
#7  0x00007f06f03293e4 in __glXSendError (dpy=dpy@entry=0x56326c2d49e0, errorCode=errorCode@entry=0 '\000', resourceID=resourceID@entry=0, minorCode=minorCode@entry=26, coreX11error=coreX11error@entry=false) at ../../../src/glx/glx_error.c:62
        glx_dpy = 0x56326c3f6f00
        error = {type = 0 '\000', errorCode = 169 '\251', sequenceNumber = 53257, resourceID = 0, minorCode = 26, majorCode = 155 '\233', pad1 = 176 '\260', pad3 = 800438223, pad4 = 1832992848, pad5 = 22066, pad6 = 0, pad7 = 0}
#8  0x00007f06f03292c9 in MakeContextCurrent (dpy=0x56326c2d49e0, draw=39845959, read=39845959, gc_user=0x56326d414050) at ../../../src/glx/glxcurrent.c:216
        gc = 0x56326d414050
        oldGC = <optimized out>
#9  0x00007f06f05831dd in InternalMakeCurrentVendor (dpy=dpy@entry=0x56326c2d49e0, draw=draw@entry=39845959, read=read@entry=39845959, ctxInfo=ctxInfo@entry=0x56326d3f6910, callerOpcode=<optimized out>, threadState=threadState@entry=0x56326c6aee90, vendor=0x56326c479200) at ../../../src/GLX/libglx.c:823
        ret = <optimized out>
#10 0x00007f06f0584f82 in CommonMakeCurrent (dpy=0x56326c2d49e0, draw=39845959, read=39845959, context=<optimized out>, callerOpcode=<optimized out>) at ../../../src/GLX/libglx.c:1005
        threadState = <optimized out>
        oldVendor = 0x56326c479200
        newVendor = 0x56326c479200
        oldDpy = 0x56326c2d49e0
        oldDraw = 39856857
        oldRead = 39856857
        oldCtxInfo = 0x56326c47cd60
        newCtxInfo = 0x56326d3f6910
        ret = <optimized out>
#11 0x00007f06afdb76f0 in destroy_objects (texture=0x56326c71fed0) at ../../../../gst-libs/gst/vaapi/gstvaapitexture_glx.c:87
        old_cs = {display = 0x56326c2d49e0, window = 39856857, visual = 0x7f070387ccb0 <_priv_tracer_enabled>, context = 0x56326c472800, swapped_buffers = 0}
        old_cs = <optimized out>
#12 destroy_texture_unlocked (texture=0x56326c71fed0) at ../../../../gst-libs/gst/vaapi/gstvaapitexture_glx.c:111
        texture_id = 6
        texture_id = <optimized out>
#13 gst_vaapi_texture_glx_destroy (texture=0x56326c71fed0) at ../../../../gst-libs/gst/vaapi/gstvaapitexture_glx.c:124
No locals.
#14 0x00007f06afd6c652 in gst_vaapi_object_finalize (object=0x56326c71fed0) at ../../../../gst-libs/gst/vaapi/gstvaapiobject.c:50
        klass = <optimized out>
#15 0x00007f06afd6c49e in gst_vaapi_mini_object_free (object=0x56326c71fed0) at ../../../../gst-libs/gst/vaapi/gstvaapiminiobject.c:39
        klass = 0x7f06affff440 <g_class>
#16 0x00007f06afd6c638 in gst_vaapi_mini_object_unref_internal (object=<optimized out>) at ../../../../gst-libs/gst/vaapi/gstvaapiminiobject.h:202
No locals.
#17 gst_vaapi_mini_object_replace (old_object_ptr=<optimized out>, new_object=<optimized out>) at ../../../../gst-libs/gst/vaapi/gstvaapiminiobject.c:173
        old_object = <optimized out>
        __func__ = "gst_vaapi_mini_object_replace"
#18 0x00007f06afd70785 in gst_vaapi_object_replace_internal (new_object=<optimized out>, old_object_ptr=<optimized out>) at ../../../../gst-libs/gst/vaapi/gstvaapiobject_priv.h:215
No locals.
#19 gst_vaapi_texture_replace (old_texture_ptr=<optimized out>, new_texture=<optimized out>) at ../../../../gst-libs/gst/vaapi/gstvaapitexture.c:203
No locals.
#20 0x00007f06afd4ce50 in meta_texture_free (meta=0x7f069c1a12c0) at ../../../gst/vaapi/gstvaapivideometa_texture.c:128
No locals.
#21 0x00007f07035807fe in _gst_buffer_free (buffer=0x7f06b40b1230) at gstbuffer.c:734
        meta = 0x7f069c1a9978
        info = 0x7f069c198f20
        walk = 0x7f069c1a9970
        next = <optimized out>
        i = <optimized out>
        len = <optimized out>
        msize = <optimized out>
        __func__ = "_gst_buffer_free"
        __PRETTY_FUNCTION__ = "_gst_buffer_free"
#22 0x00007f0703585c02 in default_stop (pool=0x7f06b406cc50) at gstbufferpool.c:414
        priv = 0x7f06b406cbc0
        buffer = 0x7f06b40b1230
#23 0x00007f0703585650 in do_stop (pool=pool@entry=0x7f06b406cc50) at gstbufferpool.c:432
        pclass = 0x7f069c018fc0
        priv = 0x7f06b406cbc0
        __PRETTY_FUNCTION__ = "do_stop"
#24 0x00007f07035875e8 in dec_outstanding (pool=0x7f06b406cc50) at gstbufferpool.c:1201
        pool = 0x7f06b406cc50
#25 gst_buffer_pool_release_buffer (pool=0x7f06b406cc50, buffer=0x7f06b40b1230) at gstbufferpool.c:1364
        pclass = 0x7f069c018fc0
        __func__ = "gst_buffer_pool_release_buffer"
#26 0x00007f0703580933 in _gst_buffer_dispose (buffer=0x7f06b40b1230) at gstbuffer.c:711
        pool = 0x7f06b406cc50
        __PRETTY_FUNCTION__ = "_gst_buffer_dispose"
#27 0x00007f07035b588c in gst_mini_object_unref (mini_object=0x7f06b40b1230) at gstminiobject.c:449
        do_free = <optimized out>
        old_refcount = 1
        new_refcount = 0
        __func__ = "gst_mini_object_unref"
        __PRETTY_FUNCTION__ = "gst_mini_object_unref"
#28 0x00007f07025f3bc8 in _cogl_object_default_unref (object=0x56326cf93560) at cogl-object.c:85
        entry = 0x56326cf93568
        i = 0
        count = 1
        free_func = <optimized out>
        obj = 0x56326cf93560
        __func__ = "_cogl_object_default_unref"
#29 0x00007f0702609564 in _cogl_pipeline_layer_free (layer=0x56326c97ae30) at cogl-pipeline-layer.c:739
No locals.
#30 _cogl_object_pipeline_layer_indirect_free (obj=0x56326c97ae30) at cogl-pipeline-layer.c:60
No locals.
#31 0x00007f07050ec45d in g_list_foreach (list=<optimized out>, func=0x7f07025f39f0 <cogl_object_unref>, user_data=user_data@entry=0x0) at ../../../../glib/glist.c:1011
        next = 0x0
#32 0x00007f0702605f47 in _cogl_pipeline_free (pipeline=0x56326cf7dea0) at cogl-pipeline.c:500
        _g_boolean_var_ = <optimized out>
        uniforms_state = <optimized out>
        n_overrides = <optimized out>
        i = <optimized out>
#33 _cogl_object_pipeline_indirect_free (obj=0x56326cf7dea0) at cogl-pipeline.c:98
No locals.
#34 0x00007f0702605888 in _cogl_pipeline_node_unparent_real (node=node@entry=0x56326cf9e5c0) at cogl-node.c:94
        parent = 0x56326cf7dea0
        __func__ = "_cogl_pipeline_node_unparent_real"
#35 0x00007f0702605de8 in _cogl_pipeline_unparent (pipeline=0x56326cf9e5c0) at cogl-pipeline.c:245
No locals.
#36 _cogl_pipeline_free (pipeline=0x56326cf9e5c0) at cogl-pipeline.c:474
        _g_boolean_var_ = <optimized out>
        uniforms_state = <optimized out>
        n_overrides = <optimized out>
        i = <optimized out>
#37 _cogl_object_pipeline_indirect_free (obj=0x56326cf9e5c0) at cogl-pipeline.c:98
No locals.
#38 0x00007f070150f087 in clutter_gst_frame_free (data=0x56326c538340) at clutter-gst-types.c:66
        frame = 0x56326c538340
#39 0x00007f07053c801b in g_boxed_free (boxed_type=94774570284864, boxed=0x56326c538340) at ../../../../gobject/gboxed.c:401
        value_table = 0x56326c9ef0f8
        __func__ = "g_boxed_free"
#40 0x00007f070151986a in update_frame (self=self@entry=0x56326c97ba60, new_frame=<optimized out>) at clutter-gst-content.c:166
        priv = <optimized out>
        old_frame = <optimized out>
        old_res = {width = 336757792, height = 32767, par_n = 22081671, par_d = 32519}
        new_res = {width = 1821931328, height = 22066, par_n = 87851035, par_d = 32519}
#41 0x00007f07015198b4 in _new_frame_from_pipeline (sink=<optimized out>, self=0x56326c97ba60) at clutter-gst-content.c:188
No locals.
#42 0x00007f07053c9f6d in g_closure_invoke (closure=0x56326c9ef7d0, return_value=0x0, n_param_values=1, param_values=0x7fff14128420, invocation_hint=0x7fff141283a0) at ../../../../gobject/gclosure.c:804
        marshal = 0x7f07053cbe60 <g_cclosure_marshal_VOID__VOID>
        marshal_data = 0x0
        in_marshal = 0
        real_closure = 0x56326c9ef7b0
        __func__ = "g_closure_invoke"
#43 0x00007f07053dcd3e in signal_emit_unlocked_R (node=node@entry=0x56326c9b9dc0, detail=detail@entry=0, instance=instance@entry=0x56326c9b6ed0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fff14128420) at ../../../../gobject/gsignal.c:3635
        tmp = <optimized out>
        handler = 0x56326c9a0d80
        accumulator = 0x0
        emission = {next = 0x0, instance = 0x56326c9b6ed0, ihint = {signal_id = 456, detail = 0, run_type = G_SIGNAL_RUN_FIRST}, state = EMISSION_RUN, chain_type = 4}
        class_closure = <optimized out>
        hlist = <optimized out>
        handler_list = 0x56326c9a0d80
        return_accu = 0x0
        accu = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
        signal_id = 456
        max_sequential_handler_number = 8225
        return_value_altered = 0
#44 0x00007f07053e53f5 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fff141285e0) at ../../../../gobject/gsignal.c:3391
        instance_and_params = 0x7fff14128420
        signal_return_type = <optimized out>
        param_values = 0x7fff14128438
        node = <optimized out>
        i = <optimized out>
        n_params = <optimized out>
        __func__ = "g_signal_emit_valist"
#45 0x00007f07053e5e0f in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=detail@entry=0) at ../../../../gobject/gsignal.c:3447
        var_args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fff141286c0, reg_save_area = 0x7fff14128600}}
#46 0x00007f070151c695 in clutter_gst_source_dispatch (source=source@entry=0x56326d701a30, callback=<optimized out>, user_data=<optimized out>) at clutter-gst-video-sink.c:2075
        gst_source = 0x56326d701a30
        priv = <optimized out>
        buffer = <optimized out>
        pipeline_ready = 1
        caps_parsed = <optimized out>
        __func__ = "clutter_gst_source_dispatch"
#47 0x00007f07050f0287 in g_main_dispatch (context=0x56326c3012b0) at ../../../../glib/gmain.c:3177
        dispatch = 0x7f070151c0b0 <clutter_gst_source_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x0
        callback = 0x0
        cb_funcs = <optimized out>
        cb_data = 0x0
        need_destroy = <optimized out>
        source = 0x56326d701a30
        current = 0x56326c33d560
        i = 0
        current = <optimized out>
        i = <optimized out>
        source = <optimized out>
        _g_boolean_var_ = <optimized out>
        was_in_call = <optimized out>
        user_data = <optimized out>
        callback = <optimized out>
        cb_funcs = <optimized out>
        cb_data = <optimized out>
        need_destroy = <optimized out>
        dispatch = <optimized out>
        prev_source = <optimized out>
        _g_boolean_var_ = <optimized out>
#48 g_main_context_dispatch (context=context@entry=0x56326c3012b0) at ../../../../glib/gmain.c:3830
No locals.
#49 0x00007f07050f04c0 in g_main_context_iterate (context=context@entry=0x56326c3012b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3903
        max_priority = 2147483647
        timeout = 116
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 5
        fds = 0x7f06e40118e0
#50 0x00007f07050f054c in g_main_context_iteration (context=context@entry=0x56326c3012b0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3964
        retval = <optimized out>
#51 0x00007f0704da8d0d in g_application_run (application=0x56326c2d01a0, argc=<optimized out>, argv=<optimized out>) at ../../../../gio/gapplication.c:2470
        arguments = 0x56326c2cce60
        status = 0
        context = 0x56326c3012b0
        acquired_context = <optimized out>
        __func__ = "g_application_run"
#52 0x000056326b7fde08 in main (argc=<optimized out>, argv=<optimized out>) at ../src/totem.c:83
        totem = 0x56326c2d01a0
Comment 1 Andre Klapper 2019-04-16 17:13:20 UTC
Which exact Mesa/GLX version has this been tested with?
Comment 2 El jinete sin cabeza 2019-04-16 17:25:47 UTC
(In reply to Andre Klapper from comment #1)
> Which exact Mesa/GLX version has this been tested with?

Apparently "libgl1-mesa-glx 18.0.0~rc5-1ubuntu1" up. Since there are also reports in the Ubuntu Disco version.
Comment 3 El jinete sin cabeza 2019-04-16 19:31:04 UTC
The first report in Ubuntu with this error was using 'libgl1-mesa-glx 18.0.0~rc5-1ubuntu1'. But then new reports of totem appeared that fail in the same. The latest version of Ubuntu (Disco Dingo 19.04) also crashes with the updated mesa package.

The version of mesa: '18.0.0~rc5-1ubuntu1' was obtained by reviewing the parent report of launchpad.net. Specifically in https://bugs.launchpad.net/bugs/1758287 in the attached file 'Dependencies.txt' of that report.

If you need any other information, please just let them know. I will try to help as much as I can.
Comment 4 El jinete sin cabeza 2019-04-16 19:50:25 UTC
More about the package mesa:
https://launchpad.net/ubuntu/+source/mesa
Comment 5 El jinete sin cabeza 2019-04-16 20:02:32 UTC
The last version of the package mesa that occurs the crash is:
libglx-mesa0 19.0.0-1ubuntu1

This I know because I reviewed the last duplicate report: https://bugs.launchpad.net/bugs/1821051 in this report I also checked 'Dependencies.txt' and found that the version.
Comment 6 Eero Tamminen 2019-04-17 10:29:20 UTC
Backtrace goes through:

totem -> clutter-gst (frame update) -> cogl (pipeline free) -> gstreamer (buffer free) -> gstreamer-vaapi (destroy objects) -> Nvidia libglvd (CommonMakeCurrent / InternalMakeCurrentVendor) -> Mesa GLX (MakeContextCurrent) -> Xlib (XError)

Ubuntu bug doesn't say anything about what's the use-case / when this happens and whether it's reproducible (is it e.g. timing related), it seems just some random crash that Apport collects.

In the backtrace Mesa MakeContextCurrent() calls __glXSendError() to tell that it was given invalid/bad context.  Corresponding Mesa code:
---------------------------
   if (gc) {
      /* Attempt to bind the context.  We do this before mucking with
       * gc and __glXSetCurrentContext to properly handle our state in
       * case of an error.
       *
       * If an error occurs, set the Null context since we've already
       * blown away our old context.  The caller is responsible for
       * figuring out how to handle setting a valid context.
       */
      if (gc->vtable->bind(gc, oldGC, draw, read) != Success) {
         __glXSetCurrentContextNull();
         __glXUnlock();
         __glXSendError(dpy, GLXBadContext, None, X_GLXMakeContextCurrent,
                        False);
         return GL_FALSE;
      }
---------------------------

I.e. bug is in what is given to Mesa, not what Mesa does.

-> NOTOURBUG


To me it looks something that could happen when Totem is exiting, gst-vaapi is trying to use resources that have already been freed, and X catching that when Gstreamer gstvaapitexture_glx.c::destroy_objects() ask libglvnd to do CommonMakeCurrent().

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.