ruga icon indicating copy to clipboard operation
ruga copied to clipboard

Segfault

Open rcastill opened this issue 8 years ago • 6 comments

Hi!,

Compiled as recommended cargo build --release under macOS; then executed via ./target/release/ruga and it outputs: Segmentation fault: 11. Is this repo active?

rcastill avatar Jan 16 '17 18:01 rcastill

Just saw closed issue of segfault report. I am also on macOS Sierra, but lib.rs has #version 150 as it was updated on master.

If there is something I can help with, feel free to ask!

rcastill avatar Jan 16 '17 18:01 rcastill

Hi, thanks for the report, this repo is active but in massive rewrite in branch 0.3

crates in 0.3 are more up to date can you check if it fails or not ? git checkout 0.3 cargo run -- -c config.lua

gui1117 avatar Jan 16 '17 21:01 gui1117

I just tried that and it throws a compile error:

error[E0255]: a value named `add_resources` has already been imported in this module
  --> src/resources.rs:4:1
   |
1  | pub use ::physics::resources::*;
   |         ------------------------ previous import of `add_resources` here
...
4  | pub fn add_resources(world: &mut ::specs::World) {
   | ^ `add_resources` was already imported

error[E0255]: a value named `add_resources` has already been imported in this module
  --> src/resources.rs:4:1
   |
2  | pub use ::notifications::resources::*;
   |         ------------------------------ previous import of `add_resources` here
3  | 
4  | pub fn add_resources(world: &mut ::specs::World) {
   | ^ `add_resources` was already imported

error[E0255]: a value named `register_components` has already been imported in this module
 --> src/components.rs:4:1
  |
1 | pub use ::weapons::components::*;
  |         ------------------------- previous import of `register_components` here
...
4 | pub fn register_components(world: &mut ::specs::World) {
  | ^ `register_components` was already imported

error[E0255]: a value named `register_components` has already been imported in this module
 --> src/components.rs:4:1
  |
2 | pub use ::physics::components::*;
  |         ------------------------- previous import of `register_components` here
3 | 
4 | pub fn register_components(world: &mut ::specs::World) {
  | ^ `register_components` was already imported

error: aborting due to 4 previous errors

error: Could not compile `ruga`.

rcastill avatar Jan 17 '17 01:01 rcastill

ah, oops that's because I use rust beta and not rust stable.

beta-x86_64-unknown-linux-gnu (default) -rustc 1.15.0-beta.3 (a035041ba 2017-01-07)

gui1117 avatar Jan 17 '17 12:01 gui1117

Ok, I tried with with rust nightly. It compiled and ran. BUT!

  • It is not the game on the gif :'c
  • It takes possession of my trackpad... I cannot move it. Not even inside the game; it gets stuck and there is no way to move it.
screen shot 2017-01-17 at 09 47 30
  • I cannot close the game. For some reason it stops (thankfully) when I fire up spotlight search by hitting Cmd+Space

That's it. I can keep testing your iterations on macOS if you like.

Greetings!

rcastill avatar Jan 17 '17 12:01 rcastill

OK thanks, 0.3 is not finished at all obviously :-).

I wanted you to test this version because I think the issue come from the rendering part and I use the same on 0.3 but with more up to date crates.

conclusion: maybe the issue come from old version of glium or glutin or something else. I don't think it worth it debugging master version. And other issue on 0.3 are OK. I think It will take some month before a playable version come. But I appreciate the proposition.

gui1117 avatar Jan 17 '17 14:01 gui1117