Page MenuHome

Repeatedly adding a cylinder to a scene causes a crash
Closed, ResolvedPublic

Description

System Information
Windows 10, Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, NVIDIA GeForce 940MX

Blender Version
Broken: 3733c529858
Worked: Yes

Repeatedly adding, going into edit mode and deleting cylinder multiple time causes blender to crash.

-add a cylinder

-go to edit more

-go back to object mode

-repeat this procedure a couple of time and it will eventually lead to a crash

Event Timeline

Bastien Montagne (mont29) triaged this task as Needs Information from User priority.

Works OK for me, tried to do so at least 30 times… We need an easily reproducible case to investigate.

This also happens to me, not only with cylinders though, it seems to happen with any kind of primitive (also lamps, curves, ecc), and also without the need of toggling edit mode.

The way to reproduce the crash for me is:

  • add primitive
  • delete it
  • add another primitive
  • delete it
  • repeat until the crash happens

Sometimes it occurs even on the first iteration, more often on the 2nd or the 3rd one.

(I'm on Windows 8.1 64 bit, Intel i7 4700MQ, GT 740M)

Bastien Montagne (mont29) raised the priority of this task from Needs Information from User to Normal.

Same issue as T56719 then I bet, will merge. And looks like we need some dev to check that on windows, @LazyDodo (LazyDodo) maybe?

I got a crash after adding/delete several times

I just compiled the last source code.

Here the log: P780

The error in in line 687 of layer.c: int object_restrict = base->object->restrictflag;

The value of object variable is invalid.

Looking at the debug, the variable cob->ob is right, but the base that you get in BLI_ghash_lookup() has an invalid object value.

Antonio Vazquez (antoniov) raised the priority of this task from Normal to Confirmed, Medium.Sep 8 2018, 5:50 PM