Blender crashes using subsurf #60233

Closed
opened 2019-01-06 14:08:11 +01:00 by Milan Jaros · 4 comments

System Information
Operating system: Debian9
Graphics card: Mesa

Blender Version
Broken: 1753177a

Short description of error

// Generate bi-cubic patch table for the limit surface.
// TODO(sergey): Ideally we would want to expose end-cap settings via
// C-API to make it more generic. Currently it matches old Blender's
// subsurf code.
PatchTableFactory::Options patch_options(level);
patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS);
patch_options.useInfSharpPatch = true;
patch_options.generateFVarTables = has_face_varying_data;
patch_options.generateFVarLegacyLinearPatches = false;
const PatchTable* patch_table = PatchTableFactory::Create( *refiner, patch_options); <---- it crashes here.

Exact steps for others to reproduce the error
Blender crashes by loading scene Spring: 01_035, 01_040.

**System Information** Operating system: Debian9 Graphics card: Mesa **Blender Version** Broken: 1753177a **Short description of error** > // Generate bi-cubic patch table for the limit surface. > // TODO(sergey): Ideally we would want to expose end-cap settings via > // C-API to make it more generic. Currently it matches old Blender's > // subsurf code. > PatchTableFactory::Options patch_options(level); >patch_options.SetEndCapType(PatchTableFactory::Options::ENDCAP_BSPLINE_BASIS); > patch_options.useInfSharpPatch = true; > patch_options.generateFVarTables = has_face_varying_data; >patch_options.generateFVarLegacyLinearPatches = false; >const PatchTable* patch_table = PatchTableFactory::Create( *refiner, patch_options); <---- it crashes here. **Exact steps for others to reproduce the error** Blender crashes by loading scene Spring: 01_035, 01_040.
Author

Added subscriber: @MilanJaros

Added subscriber: @MilanJaros
Sergey Sharybin was assigned by Milan Jaros 2019-01-06 14:09:44 +01:00
Author

Added subscriber: @brecht

Added subscriber: @brecht

@MilanJaros, i've worked around the crash by tweaking an actual object which was causing OpenSubdiv to crash. We are looking into a more robust solution, but that'd take a bit of time.

Here is a way more simple file. Steps to crash:

  • Open the file.
  • Change Quality to 1.
  • If that doesn't crash immediately, toggle edit mode.

cookie.blend

@MilanJaros, i've worked around the crash by tweaking an actual object which was causing OpenSubdiv to crash. We are looking into a more robust solution, but that'd take a bit of time. Here is a way more simple file. Steps to crash: - Open the file. - Change Quality to 1. - If that doesn't crash immediately, toggle edit mode. [cookie.blend](https://archive.blender.org/developer/F6208681/cookie.blend)

Closed as duplicate of blender/blender#59395

Closed as duplicate of blender/blender#59395
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#60233
No description provided.