chunky-dev / chunky-dev/chunky
Some valid generated JSONs do not render via CLI
- Dominant language
- Java
- Stars
- 738
- Forks
- 78
- Avg merge
- 10h 5m
- Merged PRs (30d)
- 3
Description
Noticed this issue while sequentially batch JSON files which had been generated through a Python script. While a number of these JSONs can be loaded and render out as expected however, there are a number which cause Chunky CLI to not even achieve 1 SPP. Chunky CLI does not crash but instead appears to get stuck as CPU usage often reflects load equal to that of typical rendering (for 4 threads). Fresh boot rendering does not change the outcome of a scene that fails in this method.
```
Now rendering: interpolated-100125
java -jar ChunkyLauncher.jar -render interpolated-100125 -threads 4
Loading octree took 0m 0s 1)
Loading regions took 0m 0s1)
Loading entities took 0m 0s)
Loading chunks: 100.0% (80 of 80)
Loading chunks took 0m 0s 1)
Finalizing octree took 0m 0s
Loading scene took 0m 0s
Rendering: 0.0% (0 of 16) [ETA=1011703407:30:07]
```
Loading the JSON file via the **Chunky GUI scene selector** and either rendering it there or saving the scene to render via CLI **works fine**... but loading 1000+ scenes via this method takes time.
[Comparing a generated JSON that works (left) to one that doesn't (right) shows that the values that differ are still valid (name is not shown)](https://i.imgur.com/toHjhr5.png). Also, values for these generated JSONs are either a direct copy from a template, valid JSON, or are generated and then rounded to 8 decimal places (as there was an issue prior with varying float lengths).
[I've uploaded the two above scenes, being interpolated-100124.json which renders fine via CLI and interpolated-100125.json, which always fails via CLI unless previously loaded and saved via GUI](https://drive.google.com/open?id=1cjMXJmalhr4bd7QkE9xUNciLisk4rcRI). World is 'World of worlds 3.1' which should be the first result on Google if needed.
Contributor guide
Assessment
This issue has not been assessed yet.