Mir

mir_demo_standalone_render_surfaces crashes in glDrawArrays

Bug #1234563 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Alexandros Frantzis
mir (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

render_surfaces crashes in glDrawArrays. Verified with development-branch revision 1106.

(gdb) bt
#0 __memcpy_ssse3_back ()
    at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2274
#1 0x00007ff380ef661d in memcpy (__len=48, __src=0x0, __dest=<optimised out>)
    at /usr/include/x86_64-linux-gnu/bits/string3.h:51
#2 intel_upload_data (brw=brw@entry=0x21a6ef0, ptr=ptr@entry=0x0,
    size=size@entry=48, align=align@entry=12,
    return_bo=return_bo@entry=0x21beb48,
    return_offset=return_offset@entry=0x21beb50)
    at ../../../../../../../src/mesa/drivers/dri/i965/intel_buffer_objects.c:486
#3 0x00007ff380f177fe in copy_array_to_vbo_array (brw=brw@entry=0x21a6ef0,
    min=min@entry=0, max=max@entry=3, buffer=0x21beb48, dst_stride=12,
    element=0x21be9c8)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw_upload.c:383
#4 0x00007ff380f17b34 in brw_prepare_vertices (brw=brw@entry=0x21a6ef0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw_upload.c:570
#5 0x00007ff380f18216 in brw_emit_vertices (brw=0x21a6ef0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw_upload.c:595
#6 0x00007ff380f596da in brw_upload_state (brw=brw@entry=0x21a6ef0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_state_upload.c:513
#7 0x00007ff380f16cc6 in brw_try_draw_prims (max_index=<optimised out>,
    min_index=<optimised out>, ib=<optimised out>, nr_prims=<optimised out>,
    prim=<optimised out>, arrays=<optimised out>, ctx=0x21a6ef0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:445
#8 brw_draw_prims (ctx=0x21a6ef0, prim=<optimised out>,
    nr_prims=<optimised out>, ib=<optimised out>,
    index_bounds_valid=<optimised out>, min_index=0, max_index=3,
    tfb_vertcount=0x0)
    at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:530
#9 0x00007ff380a40974 in vbo_draw_arrays (ctx=0x21a6ef0, mode=5, start=0,
    count=4, numInstances=1, baseInstance=0)
    at ../../../../../src/mesa/vbo/vbo_exec_array.c:660
#10 0x00007ff386aedc16 in mir::compositor::GLRenderer::render(std::function<void (std::shared_ptr<void> const&)>, mir::compositor::CompositingCriteria const&, mir::surfaces::BufferStream&) (this=0x7ff374000e00, save_resource=..., criteria=
    ..., stream=...)
    at /home/dan/bzr/mir/dev/src/server/compositor/gl_renderer.cpp:276
#11 0x00007ff386aecdf6 in mir::compositor::RenderingOperator::operator() (
    this=0x7ff37af6bc80, info=..., stream=...)
    at /home/dan/bzr/mir/dev/src/server/compositor/rendering_operator.cpp:38
#12 0x00007ff386b4c71f in mir::surfaces::SurfaceStack::for_each_if (
    this=0x22ef768, filter=..., op=...)
    at /home/dan/bzr/mir/dev/src/server/surfaces/surface_stack.cpp:64
#13 0x00007ff386ae5d40 in mir::compositor::DefaultDisplayBufferCompositor::composite (this=0x7ff3740cc780)
    at /home/dan/bzr/mir/dev/src/server/compositor/default_display_buffer_compositor.cpp:133
#14 0x000000000045ccf4 in (anonymous namespace)::RenderSurfacesServerConfiguration::RenderSurfacesDisplayBufferCompositor::composite (this=0x7ff37401be80)
    at /home/dan/bzr/mir/dev/examples/render_surfaces.cpp:336
#15 0x00007ff386af0269 in mir::compositor::CompositingFunctor::operator() (
    this=0x22e8c30)
    at /home/dan/bzr/mir/dev/src/server/compositor/multi_threaded_compositor.cpp:94
#16 0x00007ff386af35bd in std::__invoke<mir::compositor::CompositingFunctor> (
    __f=...) at /usr/include/c++/4.8/functional:234
#17 0x00007ff386af3592 in std::reference_wrapper<mir::compositor::CompositingFunctor>::operator()<>() const (this=0x2279800)
    at /usr/include/c++/4.8/functional:467
#18 0x00007ff386af352c in std::_Bind_simple<std::reference_wrapper<mir::compositor::CompositingFunctor> ()>::_M_invoke<>(std::_Index_tuple<>) (this=0x2279800)
    at /usr/include/c++/4.8/functional:1732
#19 0x00007ff386af3479 in std::_Bind_simple<std::reference_wrapper<mir::compositor::CompositingFunctor> ()>::operator()() (this=0x2279800)
    at /usr/include/c++/4.8/functional:1720
#20 0x00007ff386af3412 in std::thread::_Impl<std::_Bind_simple<std::reference_wr---Type <return> to continue, or q <return> to quit---
apper<mir::compositor::CompositingFunctor> ()> >::_M_run() (this=0x22797e8)
    at /usr/include/c++/4.8/thread:115
#21 0x00007ff385b40770 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#22 0x00007ff385fa2f6e in start_thread (arg=0x7ff37af6c700)
    at pthread_create.c:311
#23 0x00007ff3852a7ecd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Related branches

summary: - render_surfaces crashes in glDrawArrays
+ mir_demo_standalone_render_surfaces crashes in glDrawArrays
Changed in mir:
importance: Undecided → Medium
status: New → Triaged
Changed in mir:
assignee: nobody → Alexandros Frantzis (afrantzis)
Changed in mir:
status: Triaged → In Progress
Changed in mir:
milestone: none → 0.1.1
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~mir-team/mir/development-branch at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Changed in mir (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in mir (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mir - 0.1.1+14.04.20131120-0ubuntu1

---------------
mir (0.1.1+14.04.20131120-0ubuntu1) trusty; urgency=low

  [ Daniel van Vugt ]
  * New upstream release 0.1.1
    - Add unit tests for V/H scroll events.
    - surfaces: avoid publishing some internal headers, tidy up default
      configuration, integrate surfaces report.
    - client: Add mir_connection_drm_set_gbm_device()
    - graphics: avoid publishing some internal headers.
    - Fixed: unity-system-compositor FTBFS on trusty against new Mir
      (libmirserver9) (LP: #1244192)
    - compositor: avoid publishing some internal headers.
    - shell: Add set_lifecycle_state() to the Session interface.
    - frontend: avoid publishing some internal headers
    - logging: avoid publishing some internal headers.
    - Allow specifying the nested server name by passing --name= or setting
      MIR_SERVER_NAME=.
    - graphics,gbm: Inform the EGL platform about the used gbm device when
      using the native GBM platform
    - examples: Restore GL state after initializing buffers, fixing crashes
      observed in render_surfaces (LP: #1234563)
    - Continue refactoring the mir android display classes.
    - shell: Hoist focus control functions needed by unity-mir into
      FocusController interface
    - client: Remove the timeout for detecting server crashes
    - Avoid a race condition that could lead to spurious failures of server
      shutdown tests (LP: #1245336)
    - test_client_input.cpp: Bump reception time-out in client test fixture.
      (LP: #1227683)
    - Ensure StubBufferAllocator returns buffers with the properties requested,
      and not the same old hardcoded constants.
    - Update docs and scripting for trusty.
    - compositor: Make DefaultDisplayBufferCompositorFactory private to the
      compositor component.
    - Ignore warnings clang treats as errors, about unused functions being
      generated from macros in <lttng/tracepoint.h> (LP: #1246590)
    - Add resize() support to BufferBundle. This is the first step and lowest
      level of surface resize support.
    - Clean up constants relating to SwitchingBundle.
    - Fix the armhf chroot setup script to point to the right library, so
      cross compiling can work again (LP: #1246975)
    - shell: avoid publishing some internal headers.
    - input: avoid publishing some internal headers.
  * Bump timeouts used in socket testing. It seems 100ms isn't always
    enough, which leads to spurious test failures (LP: #1252144) (LP:
    #1252144)
  * Fix uninitialized variable causing random drm_auth_magic test
    failures. (LP: #1252144). (LP: #1252144)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 1165
 -- Ubuntu daily release <email address hidden> Wed, 20 Nov 2013 07:36:15 +0000

Changed in mir (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.