Unable to read back in external baked physics cache #69308

Closed
opened 2019-08-29 17:50:11 +02:00 by Paul Chambers · 14 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.34

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

Short description of error
When baking a simple physics particle cache to file, it appears to bake correctly, but then when attempting to read it back in it either reports as no valid file found, or only identifies 1 or 2 points instead of hundreds. Sample file with bake attached,

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.34 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) **Short description of error** When baking a simple physics particle cache to file, it appears to bake correctly, but then when attempting to read it back in it either reports as no valid file found, or only identifies 1 or 2 points instead of hundreds. Sample file with bake attached, **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @PaulChambers

Added subscriber: @PaulChambers

#68436 was marked as duplicate of this issue

#68436 was marked as duplicate of this issue
Author
[physics-test.zip](https://archive.blender.org/developer/F7709758/physics-test.zip)
Member

Added subscribers: @brecht, @lichtwerk

Added subscribers: @brecht, @lichtwerk
Member

Can confirm.
Even though particles are under complete rewrite atm, this looks pretty bad to me.
I dare setting this to High prio, @brecht correct me if I am wrong.
Or does EOL mean we are shipping unusable versions until the new stuff is in place? (we could, just asking...)

Can confirm. Even though particles are under complete rewrite atm, this looks pretty bad to me. I dare setting this to High prio, @brecht correct me if I am wrong. Or does EOL mean we are shipping unusable versions until the new stuff is in place? (we could, just asking...)
Sybren A. Stüvel was assigned by Philipp Oeser 2019-09-06 12:39:23 +02:00
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Member

@dr.sybren: maybe you could check on this?

@dr.sybren: maybe you could check on this?

I did some digging, and it turns out that ptcache_read() reads the correct number of points. It's ptcache_particle_read() that's rejecting the points because psys->totpart is set to a low number (i.e. to the number of points you're seeing). Somehow it's not getting the total number of points from the pointcache. This could be due to the fact that the info file (i.e. the bphys file for frame 0) isn't written to disk, but I'm too unfamiliar with how the code is supposed to work.

A test with 2.79 shows that this issue was already there in 2.79 (and possibly earlier). AFAIK this means that it won't be fixed any more.

PS: Un-checking the 'External Cache' checkbox erases all cache files without any notification, if they happen to be in the same directory as Blender would store them when baking, so it's a dangerous thing to touch.

I did some digging, and it turns out that `ptcache_read()` reads the correct number of points. It's `ptcache_particle_read()` that's rejecting the points because `psys->totpart` is set to a low number (i.e. to the number of points you're seeing). Somehow it's not getting the total number of points from the pointcache. This could be due to the fact that the info file (i.e. the bphys file for frame 0) isn't written to disk, but I'm too unfamiliar with how the code is supposed to work. A test with 2.79 shows that this issue was already there in 2.79 (and possibly earlier). AFAIK this means that it won't be fixed any more. PS: Un-checking the 'External Cache' checkbox erases all cache files without any notification, if they happen to be in the same directory as Blender would store them when baking, so it's a dangerous thing to touch.
Sybren A. Stüvel was unassigned by Brecht Van Lommel 2019-09-18 14:41:33 +02:00

This is not high priority especially if it happens in 2.79 and with particles being end of life.

That means it's low priority, someone might fix it but we won't prioritize it.

This is not high priority especially if it happens in 2.79 and with particles being end of life. That means it's low priority, someone might fix it but we won't prioritize it.
Member

Sorry, my bad, I thought I checked and this was working in 2.79, but apparently it isnt...

Sorry, my bad, I thought I checked and this was working in 2.79, but apparently it isnt...
Member

From my testing in #68436 (External Particle Cache Playback Is Broken (2.8)), the bphys file for frame zero was actually written... So my tests were working in 2.79...
But these two reports are the same, will merge #68436 here.

From my testing in #68436 (External Particle Cache Playback Is Broken (2.8)), the bphys file for frame zero was actually written... So my tests were working in 2.79... But these two reports are the same, will merge #68436 here.
Member

Added subscribers: @AtomP, @marks-4, @grosgood, @Pavel_Blend

Added subscribers: @AtomP, @marks-4, @grosgood, @Pavel_Blend
Member

OK, will merge the other way around

OK, will merge the other way around
Member

Closed as duplicate of #68436

Closed as duplicate of #68436
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
5 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#69308
No description provided.