[haiku-bugs] Re: [Haiku] #11875: Crash after quitting Haiku3D

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Fri, 14 Oct 2016 10:46:09 -0000

#11875: Crash after quitting Haiku3D
------------------------------------+----------------------------
   Reporter:  humdinger             |      Owner:  aldeck
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Applications/Haiku3D  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:  12043
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by pulkomandy):

 The fId is allocated in http://cgit.haiku-
 os.org/haiku/tree/src/apps/haiku3d/texture/BitmapTexture.cpp and released
 in http://cgit.haiku-os.org/haiku/tree/src/apps/haiku3d/Texture.cpp

 The texture itself is shared using reference counting between different
 objects, as seen in RenderView::_CreateScene(). The meshes are released in
 _DeleteScene and this ends up freeing the texture.

 All of this looks right to me.

 does the crash happen with all 3 Mesa implementations? (gcc2, gcc5+swrast,
 gcc5+softpipe) It could be a bug in Mesa side as well, losing track of the
 texture.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11875#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: