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

failed to fill whole buffer #60

Open
rtczza opened this issue Jan 15, 2024 · 7 comments
Open

failed to fill whole buffer #60

rtczza opened this issue Jan 15, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@rtczza
Copy link

rtczza commented Jan 15, 2024

run cago run:

error:

WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
...
thread 'Compute Task Pool (0)' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })', src/chunk_manager.rs:181:64
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `astratomic::chunk_manager::manager_setup`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!

kernel: 5.15.77-amd64-desktop
rust:rustc 1.72.0 (5680fa18f 2023-08-23)

What causes it and how to fix it? Is it because there is no graphics card?

run target/debug/astratomic:

...
WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
ERROR bevy_asset::server: path not found: /home/astratomic/astratomic-0.2.0/target/debug/assets/atoms.ron
...
thread 'Compute Task Pool (2)' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })', src/chunk_manager.rs:181:64
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `astratomic::chunk_manager::manager_setup`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
@rtczza
Copy link
Author

rtczza commented Jan 15, 2024

The source code is: v0.2.0.tar.gz

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 15, 2024

I think I got a similar error when I didn't had Vulkan installed, maybe that's it? We use bevy and it requires that, we probably need to add bevy requirements to our README

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 15, 2024

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 15, 2024

My guess is that you need to install one of these:

Depending on your graphics card, you may have to install one of the following: vulkan-radeon, vulkan-intel, or mesa-vulkan-drivers

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 15, 2024

I think I got it all wrong actually, sorry about that, it looks like it messed up the world file, if you delete the world file in assets/world/ it will probably work again, but it will erase you world, sorry about that

@rtczza
Copy link
Author

rtczza commented Jan 15, 2024

is works!

rm  assets/world/* 
cargo run 

then, you can run the game normally

thanks.

@Zac8668
Copy link
Collaborator

Zac8668 commented Jan 16, 2024

I'm going to leave the issue open because this is a problem with how we deal with the worlds, for now it is not with enough care, without compressing, etc

When we add procedural generation we are going to fix this, but for now it works.

@Zac8668 Zac8668 added the bug Something isn't working label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants