[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57871] trunk/blender/source/blender/ blenkernel/intern/mesh.c: fixed Blender crash, but unclear when this situation can happen

Gaia gaia.clary at machinimatrix.org
Sat Jun 29 14:29:28 CEST 2013


i got a .blend file from a customer but i can not use that within a bug 
report.
The only hints i have so far:

1.) right after the (rigged) object enters weight Paint mode, i can see 
in the debugger:

me->totselect = 1
me->mselect = NULL
one vertex has the select flag enabled.

2.) The problem raises when the customer does:

- open the .blend file (now we are in Object mode)
- set the armature to pose mode (works)
- select the object (works)
- enter Weight Paint mode -> Crash at the location i commented

I still try to find a simple example to create a bug report for this,
because i suspect the true cause is somewhere else.
But so far i could not recreate a blend file having this problem.
I am still looking at this and try to find out how the customer got
into this state.

-gaia-

On 29.06.2013 12:49, Brecht Van Lommel wrote:
> Is there any more information you have about this, like a bug report
> or a description of when this happens? Now it's adding an XXX comment
> but there's no information for someone who might want to fix the
> actual bug.
>
> On Sat, Jun 29, 2013 at 10:38 AM, Gaia Clary
> <gaia.clary at machinimatrix.org> wrote:
>> Revision: 57871
>>            http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57871
>> Author:   gaiaclary
>> Date:     2013-06-29 08:38:17 +0000 (Sat, 29 Jun 2013)
>> Log Message:
>> -----------
>> fixed Blender crash, but unclear when this situation can happen
>>
>> Modified Paths:
>> --------------
>>      trunk/blender/source/blender/blenkernel/intern/mesh.c
>>
>> Modified: trunk/blender/source/blender/blenkernel/intern/mesh.c
>> ===================================================================
>> --- trunk/blender/source/blender/blenkernel/intern/mesh.c       2013-06-29 07:00:38 UTC (rev 57870)
>> +++ trunk/blender/source/blender/blenkernel/intern/mesh.c       2013-06-29 08:38:17 UTC (rev 57871)
>> @@ -3938,7 +3938,10 @@
>>   {
>>          BLI_assert(ELEM3(type, ME_VSEL, ME_ESEL, ME_FSEL));
>>
>> -       if (me->totselect) {
>> +       /* XXX how can it be that sometimes me->mselect is NULL here ?
>> +          It happens, but its not clear why it happens!
>> +       */
>> +       if (me->totselect && me->mselect) {
>>                  if (me->mselect[me->totselect - 1].type == type) {
>>                          return me->mselect[me->totselect - 1].index;
>>                  }
>>
>> _______________________________________________
>> Bf-blender-cvs mailing list
>> Bf-blender-cvs at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list