Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics for baked frames disappeared #280

Closed
PavelBlend opened this issue Apr 23, 2018 · 3 comments
Closed

Statistics for baked frames disappeared #280

PavelBlend opened this issue Apr 23, 2018 · 3 comments
Labels

Comments

@PavelBlend
Copy link

During baking, an error occurs:

  File "C:\Users\Pavel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\bl_flip_fluids\operators\bake_operators.py", line 203, in modal
    self._update_status(context)
  File "C:\Users\Pavel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\bl_flip_fluids\operators\bake_operators.py", line 143, in _update_status
    self._update_stats(context)
  File "C:\Users\Pavel\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\bl_flip_fluids\operators\bake_operators.py", line 119, in _update_stats
    frame_stats_dict = json.loads(frame_stats.read())
  File "C:\Program Project\Blender Foundation\Blender 2.79b\2.79\python\lib\json\__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "C:\Program Project\Blender Foundation\Blender 2.79b\2.79\python\lib\json\decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Project\Blender Foundation\Blender 2.79b\2.79\python\lib\json\decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

location: <unknown location>:-1

After that, the statistics for the following frames ceased to save.
I baked 300 frames. 0-169 have statistics. 170-300 did not have any statistics.

@rlguy rlguy added the bug label Apr 23, 2018
@rlguy
Copy link
Owner

rlguy commented Apr 23, 2018

Hey thanks for reporting this! Do you still have the fluid cache for this simulation? If so, would you be able to upload the fluid_cache/temp directory for me to check?

It looks like the addon didn't properly write one of the stats files. When it tried to read the file, there was an error and the addon stopped being able to update the stats data.

@PavelBlend
Copy link
Author

For some reason github refuses to load zip. So saved on Google Drive:
https://drive.google.com/file/d/1_SMh-tH_0aXHwFJ1Yb2wNhPLmPIVOK-R/view?usp=sharing

@rlguy
Copy link
Owner

rlguy commented Apr 24, 2018

Thanks for uploading, this was very useful information! This bug has been fixed and will be included in the release version.

@rlguy rlguy closed this as completed Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants