Ocean Modifier crashes when setting the resolution to 32 #58983
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#58983
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 - Intel i5-3570K cpu 16 GB Ram
Graphics card: Nvidia Geforde GTX 1060 6GB
Blender Version
Broken: blender-2.80.0-git.6a5e8096973-windows64
Worked: 2.79b release
Short description of error
When setting the Ocean modifier resolution to 32 or trying to bake foam/disp/normal maps with this resolution, Blender 2.8 crashes.
If I take the same steps in 2.79b it works as intended.
Exact steps for others to reproduce the error
or
Sometimes it crashes right away. Other times only after checking 'generate foam' and 'generate normals' and then pressing 'bake'. Poof Crash.
ocean_sim_resol_bug.blend
Added subscriber: @SanderdeRegt
Added subscriber: @ZedDB
I can not reproduce this with a build from today. Could you see if this is still an issue for you with a recent build?
I just tried it with this build and attached file
blender-2.80.0-git.c97c76c01c1d-windows64
and it went 'poof' again.
Ocean_32.blend
Just press 'bake ocean' and Blender disappears. (at least on my system)
Still can't reproduce this even with that file. I hit bake and the bake completes without and issues.
Could you try getting the crash if you run blender from the console (cmd.exe):
blender.exe 1>out.txt 2>err.txt
that will produce two files (out.txt and err.txt).If they are not empty, can you upload them here?
That's strange. I've had it happen on two seperate systems.
I'll try the cmd.exe approach and report back.
the err.txt came back empty out.txt is attached
out.txt
I just downloaded today's build (january 8th) and the scene I attached earlier still makes Blender vanish. It does this both on my desktop and on my laptop.
@ZedDB what kind of system are you running Blender on? And could the fact that I have multiple 2.8 version concurrently influence my test results?
I still find it strange that 2.79 on the same system does not display this behavior.
Added subscribers: @mano-wii, @dfelinto
@SanderdeRegt I'm using linux, so this could be a windows problem. But I'm not sure.
@dfelinto @mano-wii can you guys reproduce this?
Added subscribers: @mont29, @LukasTonne
I've been able to reproduce, it's a problem involving the fftw3 library and threads.
I'm not sure if the problem is on Blender side.
@mont29 and @LukasTonne it seems that you have worked in this area a few times. Can you reproduce the problem?
Do 2.79 and 2.8 use the same library? Because in 2.79 it does work without crashing. So something is different between versions in that respect.
@mano-wii on windows, right? I still can't reproduce this on my linux machine with either fftw 3.3.6 or 3.3.8.
Changed status from 'Confirmed' to: 'Archived'
I can only reproduce this on a low end PC.
It appears this crashes because Blender ran out of memory.
While we want to improve Blender to handle such cases memory gracefully, this is not currently considered a bug.
Added subscriber: @benjamin.harris-3
I do not think this is a real out of memory situation. I have reproduced this in 2.82a and it only occurs when resolution is exactly 32.
If it were a real out of memory it should crash when resolution is 33 and higher, but these values work fine (tested up to 40).
More likely this is a real arithmetic bug when calculating a memory allocation size, and for some reason 32 is a corner case (possibly a bad 32-bit shift?).
It is possible on high-end systems the bogus allocation succeeds and simply allocates a huge chunk of memory (only using a small portion of it).
From this evidence I think this need to be debugged (narrow down and set a breakpoint on the failing allocation, then backtrack if the size is bogus).
Changed status from 'Archived' to: 'Needs Triage'
Ocean Modifier crashes to desktop when baking cache at resolution of 32to Ocean Modifier crashes when setting the resolution to 32Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm it in Release Build.
Crash with resolution 32 but not with resolution 33.
Changed status from 'Confirmed' to: 'Needs User Info'
Same remark as in #71040, can someone on windows please try following patch and report whether it fixes the issue? Thanks.
P1395: Potential fix for #71040
Added subscriber: @LazyDodo
D6121 is seemingly another stab at solving the same problem.
D6121 is by no mean acceptable solution, 'fix' there should be no-op change, which means it is almost certainly only working 'by chance', and not actually fixing anything...
Did not fix the issue.
Then we need someone on windows to investigate and actually understand that issue...
OK, so potential new candidate (aka next shot in the dark):
P1401: Fix for ocean thread pool crash #71040 and #58983
@mont29, still crashes :
Same backtrace
heh... neat... will do a write up later.
Changed status from 'Needs User Info' to: 'Resolved'
solved for now, final solution will be in the 2.90 lib update round.