Crash through Offset (Arraymodifier) #38003

Closed
opened 2013-12-31 03:29:40 +01:00 by Karja Krähwald · 12 comments

System Information
Windows 7 64, HD 5770

Blender Version
Broken: 2.69 release & 4b206af

Short description of error
If you scale a mesh-object negativ when it uses the Object-Offset (Arraymodifier), the dimensions are going crazy.
Combined with Skin-modifier, it will crash Blender before you type any value.

Exact steps for others to reproduce the error
Arrayoffset-bug.blend
You see a 3-Vertex-mesh with Object-Array by count of 4,
and Skinmodifier which let Blender suffer from this bug.

Select the mesh and type "scale minus" on your keyboard.

Arraycount 3 or higher cause a crash on my system.
Turn off Skinmodifier and repeat to see the dimensions > huge numbers.


By the way, i have noticed several crashes with the Skinmodifier on different noncomplex projects.
Some after extruding a edge, others with several modifiers - i will try to figure out what happened and post it.
But an obvious example: adding or inadvertently activating Skin after a Subsurfe-mod is always a delicate situation.
It uses lot of computational power, is this normal?


Materialselection.png
Cool! ;P

**System Information** Windows 7 64, HD 5770 **Blender Version** Broken: 2.69 release & 4b206af **Short description of error** If you scale a mesh-object negativ when it uses the Object-Offset (Arraymodifier), the dimensions are going crazy. Combined with Skin-modifier, it will crash Blender before you type any value. **Exact steps for others to reproduce the error** [Arrayoffset-bug.blend](https://archive.blender.org/developer/F59355/Arrayoffset-bug.blend) You see a 3-Vertex-mesh with Object-Array by count of 4, and Skinmodifier which let Blender suffer from this bug. Select the mesh and type "scale minus" on your keyboard. Arraycount 3 or higher cause a crash on my system. Turn off Skinmodifier and repeat to see the dimensions > huge numbers. --- By the way, i have noticed several crashes with the Skinmodifier on different noncomplex projects. Some after extruding a edge, others with several modifiers - i will try to figure out what happened and post it. But an obvious example: adding or inadvertently activating Skin after a Subsurfe-mod is always a delicate situation. It uses lot of computational power, is this normal? --- ![Materialselection.png](https://archive.blender.org/developer/F59386/Materialselection.png) Cool! ;P

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @karja

Added subscriber: @karja

http://wiki.blender.org/index.php/Doc:2.6/Manual/Modifiers/Generate/Skin
⇆ Tab into edit mode and start extruding. To see the actual "Z spheres", Z to change to wireframe mode. These spheres are actual meshes with a lot of polygons, so performance issues might occur on older computers.

Not sure about this Z spheres = edgeloops?

http://wiki.blender.org/index.php/Doc:2.6/Manual/Modifiers/Generate/Skin ⇆ Tab into edit mode and start extruding. To see the actual "Z spheres", Z to change to wireframe mode. **These spheres are actual meshes with a lot of polygons, so performance issues might occur on older computers.** Not sure about this Z spheres = edgeloops?

Added subscribers: @ideasman42, @Sergey

Added subscribers: @ideasman42, @Sergey

Issue happens due to object scale being zero when you press - on your keyboard. Disable Skin modifier and scale object to zero scale and you'll see it's dimensions are really insane. This leads to out-of-memory issues in the skin modifier.

This happens due to Object Offset in the array modifier. Not sure how it was expected to deal with original object scale, it seems a bit crazy.

@ideasman42, is the behavior of object offset is indeed how it was designed to be here (it somehow affects on the size of copied parts)?

Issue happens due to object scale being zero when you press `-` on your keyboard. Disable Skin modifier and scale object to zero scale and you'll see it's dimensions are really insane. This leads to out-of-memory issues in the skin modifier. This happens due to `Object Offset` in the array modifier. Not sure how it was expected to deal with original object scale, it seems a bit crazy. @ideasman42, is the behavior of object offset is indeed how it was designed to be here (it somehow affects on the size of copied parts)?

Issue happens due to object scale being zero when you press - on your keyboard.

Maybe you could block scaling until a value above 0 (zero) is typed in, if "minus" precedes, or generally.

Especially for objects scale, i cant think of a situation where 0.0 makes sense.
What i have noticed is that zeroscale goes to the smallest possible number 0.0001 and not 0.0000.
Therefore i think 0.0 is more a task for editmode.

Nevertheless, you could use it to align selected objects on same X/Y/Z value.
So if objects wont scale generally until you type other numbers than zero, it would be very handy for that.

>Issue happens due to object scale being zero when you press - on your keyboard. Maybe you could block scaling until a value above 0 (zero) is typed in, if "minus" precedes, or generally. Especially for objects scale, i cant think of a situation where 0.0 makes sense. What i have noticed is that zeroscale goes to the smallest possible number 0.0001 and not 0.0000. Therefore i think 0.0 is more a task for editmode. Nevertheless, you could use it to align selected objects on same X/Y/Z value. So if objects wont scale generally until you type other numbers than zero, it would be very handy for that.
Sergey Sharybin self-assigned this 2014-02-17 10:32:31 +01:00

@karja, that's not so simple unfortunately.. Wouldn't work in general -- it's still possible to have some combination of scale/array settings which make you run out of memory.

Will try to work on some workaround tho..

@karja, that's not so simple unfortunately.. Wouldn't work in general -- it's still possible to have some combination of scale/array settings which make you run out of memory. Will try to work on some workaround tho..

This issue was referenced by blender/blender-addons-contrib@ca2b4323a8

This issue was referenced by blender/blender-addons-contrib@ca2b4323a8b20e20c8b5ffe980d27da58d7b2b07

This issue was referenced by ca2b4323a8

This issue was referenced by ca2b4323a8b20e20c8b5ffe980d27da58d7b2b07

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit ca2b4323a8.

Closed by commit ca2b4323a8.

Committed a fix/workaround, some notes...

This situation can be made to work by making customdata.c use size_t instead of int for allocations (currently the size wraps to a negative number),
however this runs so slow in this instance that I don't think its really a good fix.

So for now just clamp subdivisions for the skin modifier.

Committed a fix/workaround, some notes... This situation can be made to work by making customdata.c use `size_t` instead of `int` for allocations (currently the size wraps to a negative number), however this runs so slow in this instance that I don't think its really a good fix. So for now just clamp subdivisions for the skin modifier.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 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: blender/blender#38003
No description provided.