Page MenuHome

Unable to read back in external baked physics cache
Open, Confirmed, LowPublic

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

Details

Type
Bug

Event Timeline

Philipp Oeser (lichtwerk) triaged this task as Confirmed, High priority.

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...)

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.
Brecht Van Lommel (brecht) lowered the priority of this task from Confirmed, High to Confirmed, Low.

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.

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