When use Edge Bevel Weight in blender 2.79 crash. (OS X Yosemite 10.10.5)
Closed, InvalidPublic

Description

When use Edge Bevel Weight in blender 2.79, this crash.
I have a cube.
1 Add bevel modifier
2 set bevel to use bevel weights in imit method
3 add subsurf modifier, and set to 3
4 shade smooth
5 in edit mode select any edges
6 mark sharps
7 for some Edges run: Edge Bevel Weight, an drag mouse for change values, and blender crash.




Details

Type
Bug
zebus (ofuscado) created this object with visibility "All Users".
zebus (ofuscado) created this object with edit policy "All Users".
zebus (ofuscado) triaged this task as Confirmed priority.
zebus (ofuscado) renamed this task from When use Edge Bevel Weight in blender 2.79, this crash. to When use Edge Bevel Weight in blender 2.79, this crash. (OS X Yosemite 10.10.5).
zebus (ofuscado) renamed this task from When use Edge Bevel Weight in blender 2.79, this crash. (OS X Yosemite 10.10.5) to When use Edge Bevel Weight in blender 2.79 crash. (OS X Yosemite 10.10.5).Sep 14 2017, 4:49 PM
Sergey Sharybin (sergey) lowered the priority of this task from Confirmed to Incomplete.Sep 14 2017, 5:02 PM

Please:

  • Never inline logs and backtraces into comments and reports, attach them as files. This ensures reports is easy to follow.
  • Follow bug report guidelines, and provide .blend file and shortest list of steps possible to reproduce the issue.
Sergey Sharybin (sergey) changed the visibility from "All Users" to "Public (No Login Required)".Sep 14 2017, 5:17 PM
Sergey Sharybin (sergey) changed the edit policy from "All Users" to "Custom Policy".

Thanks for cleaning up the description :)

However, what are the steps? I've opened the file and it worked fine for me. Is it some slider needs a tweak to make blender to crash?

zebus (ofuscado) updated the task description. (Show Details)
Sergey Sharybin (sergey) raised the priority of this task from Incomplete to Normal.Sep 14 2017, 5:55 PM

Can not reproduce any crashes, also crash is in UI code somehow.

@Howard Trickey (howardt), maybe you'll be more lucky here? :)

zebus (ofuscado) added a comment.EditedSep 15 2017, 11:46 AM

For recreate the "Bug" i have wrote an little addon script.
I'm not sure if it's a bug. Maybe I'm doing the bad practice of calling an operator inside a draw function. Maybe the whole problem comes from there.

When click on "Edge Bevel Weight" button, an drag in sometimes crash blender.

I am pretty sure this is not a bevel bug. I tried installing and running your testBugAddon.py (on Linux), and while it didn't crash, it did produce error messages like:

RuntimeError: expected class test, function draw to return None, not set

I am pretty sure that it is not allowed to call other operators from within a draw function, as you yourself have surmised.
So I am going to close this bug.