Crashes when adding remesh modifier to the mesh that is far from object origin and has been translated to world origin #47209

Closed
opened 2016-01-19 16:31:38 +01:00 by Satoshi Doita · 9 comments

System Information
Operating system and graphics card
Windows 7 Professional Service Pack 1 64-bit
nVidia GTX560

Blender Version
Broken: 2.76b f337fea

Short description of error
Crashes when adding remesh modifier to the mesh that is far from object origin and has been translated to world origin

Exact steps for others to reproduce the error
(if you started from attached .blend file, just do 4th step.)

  1. Add mesh that have face to the world origin.
  2. Translate all vertices by 2**24 along world z axis in edit mode.
  3. Translate the mesh by -2**24 along world z axis in object mode.
  4. Add remesh modifier to the mesh and blender will crash, if there is no vertex near the object origin.

bugreport.blend

**System Information** Operating system and graphics card Windows 7 Professional Service Pack 1 64-bit nVidia GTX560 **Blender Version** Broken: 2.76b f337fea **Short description of error** Crashes when adding remesh modifier to the mesh that is far from object origin and has been translated to world origin **Exact steps for others to reproduce the error** (if you started from attached .blend file, just do 4th step.) 1. Add mesh that have face to the world origin. 2. Translate all vertices by 2**24 along world z axis in edit mode. 3. Translate the mesh by -2**24 along world z axis in object mode. 4. Add remesh modifier to the mesh and blender will crash, if there is no vertex near the object origin. [bugreport.blend](https://archive.blender.org/developer/F275206/bugreport.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @SatoshiDoita

Added subscriber: @SatoshiDoita
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Campbell Barton was assigned by Aaron Carlisle 2016-01-19 17:27:54 +01:00
Member

Can confirm something is messed up here.

Can confirm something is messed up here.

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Do you realize how much of numeric error you are generating with those “transformations”? 2^24 is 1,6*10^7, i.e. beyond the 6 or 7 digit of precision “reasonably” guaranteed by float numbers (you actually have even less if you chain too much operations).

Seriously… Please keep a minimum of common sense and do not try insane things to make Blender crash. Or at least, do not report this as a bug!

Do you realize how much of numeric error you are generating with those “transformations”? 2^24 is 1,6*10^7, i.e. beyond the 6 or 7 digit of precision “reasonably” guaranteed by float numbers (you actually have even less if you chain too much operations). Seriously… Please keep a minimum of common sense and do not try insane things to make Blender crash. Or at least, do not report this as a bug!

Changed status from 'Archived' to: 'Archived'

Changed status from 'Archived' to: 'Archived'

Think its fine to report bugs like this, sometimes they expose weakness in the algorithm - or are some extreme case that could still occur in more typical cases.

However its not always reasonable for us to spend many hours investigating a fix for issues which are a real corner cases and not something you would generally do in practice.

Blender shouldn't crash even if some object is far from its origin of course, I looked into the crash and its not some simple fix (float out of int range or skip NULL pointer access).

Added to TODO:
http://wiki.blender.org/index.php/Dev:Source/Development/Todo/Tools#Remesh_Modifier

Think its fine to report bugs like this, sometimes they expose weakness in the algorithm - or are some extreme case that could still occur in more typical cases. However its not always reasonable for us to spend many hours investigating a fix for issues which are a real corner cases and not something you would generally do in practice. Blender shouldn't crash even if some object is far from its origin of course, I looked into the crash and its not some simple fix *(float out of int range or skip NULL pointer access)*. Added to TODO: http://wiki.blender.org/index.php/Dev:Source/Development/Todo/Tools#Remesh_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#47209
No description provided.