Maniphest T69308

Unable to read back in external baked physics cache
Closed, DuplicateKNOWN ISSUE

Assigned To
None
Authored By
Paul Chambers (paulchambers3d)
Aug 29 2019, 5:50 PM
Tags
  • Nodes & Physics
  • BF Blender
Subscribers
Atomic (atomic)
Brecht Van Lommel (brecht)
Garry R. Osgood (grosgood)
Mark Spink (marks)
Paul Chambers (paulchambers3d)
Pavel (Pavel_Blend)
Philipp Oeser (lichtwerk)
Sybren A. Stüvel (sybren)

Description

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: rBf6cb5f54494e
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)]

Event Timeline

Paul Chambers (paulchambers3d) created this task.Aug 29 2019, 5:50 PM
Paul Chambers (paulchambers3d) added a comment.Aug 29 2019, 6:02 PM

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to High.Sep 2 2019, 11:30 AM
Philipp Oeser (lichtwerk) added a project: Nodes & Physics.
Philipp Oeser (lichtwerk) added subscribers: Brecht Van Lommel (brecht), Philipp Oeser (lichtwerk).

Can confirm.
Even though particles are under complete rewrite atm, this looks pretty bad to me.
I dare setting this to High prio, @Brecht Van Lommel (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...)

Philipp Oeser (lichtwerk) added a project: BF Blender: Regressions.Sep 6 2019, 9:29 AM
Philipp Oeser (lichtwerk) edited projects, added BF Blender (2.81); removed BF Blender.Sep 6 2019, 11:55 AM
Philipp Oeser (lichtwerk) assigned this task to Sybren A. Stüvel (sybren).Sep 6 2019, 12:39 PM
Philipp Oeser (lichtwerk) added a subscriber: Sybren A. Stüvel (sybren).

@Sybren A. Stüvel (sybren): maybe you could check on this?

Dalai Felinto (dfelinto) removed a project: BF Blender: Regressions.Sep 9 2019, 9:25 PM
Sybren A. Stüvel (sybren) added a comment.Sep 18 2019, 2:17 PM

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.

Brecht Van Lommel (brecht) removed Sybren A. Stüvel (sybren) as the assignee of this task.Sep 18 2019, 2:41 PM
Brecht Van Lommel (brecht) lowered the priority of this task from High to Low.
Brecht Van Lommel (brecht) edited projects, added BF Blender; removed BF Blender (2.81).

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.

Philipp Oeser (lichtwerk) added a comment.Sep 18 2019, 3:09 PM

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

Dalai Felinto (dfelinto) added a project: Tracker Curfew.Dec 23 2019, 1:53 PM
Brecht Van Lommel (brecht) changed the subtype of this task from "Report" to "Known Issue".Jan 27 2020, 11:43 AM
Brecht Van Lommel (brecht) removed a project: Tracker Curfew.
Philipp Oeser (lichtwerk) added a comment.Jan 27 2020, 11:52 AM

From my testing in T68436: 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 T68436 here.

Philipp Oeser (lichtwerk) added subscribers: Atomic (atomic), Mark Spink (marks), Garry R. Osgood (grosgood), Pavel (Pavel_Blend).
Philipp Oeser (lichtwerk) added a comment.Jan 27 2020, 2:28 PM

OK, will merge the other way around

Philipp Oeser (lichtwerk) closed this task as a duplicate of T68436: External Particle Cache Playback Is Broken (2.8).Jan 27 2020, 2:28 PM