sandspiel icon indicating copy to clipboard operation
sandspiel copied to clipboard

Black Screen when starting it up.

Open VidioCrush opened this issue 5 years ago • 6 comments

So I'm on google, and I start-up sandspiel and it's just a black screen. How can I fix this? I don't get any error message what so ever. 2019-04-15_11-15-48 I've tried resetting many times.

VidioCrush avatar Apr 15 '19 08:04 VidioCrush

oh jeeze - has it worked in the past for you? when you're say you're on google, do you mean you're using chrome?

MaxBittker avatar Apr 15 '19 17:04 MaxBittker

thank you for reporting the issue, I want to try to fix this if I can.

MaxBittker avatar Apr 15 '19 17:04 MaxBittker

MaxBittker, I use it on a different computer at my mom's office, it works fine there. This computer can't run it. And a lot of experiments on google, they don't work. But it used to work. now it doesn't. Flash and Java are installed.

VidioCrush avatar Apr 21 '19 16:04 VidioCrush

oh jeeze - has it worked in the past for you? when you're say you're on google, do you mean you're using chrome?

It has.

VidioCrush avatar Apr 30 '19 10:04 VidioCrush

Hi, i was trying to get the project to start as well, also getting a black screen. This is the error i get in the console from js: Error importing index.js: RuntimeError: "unreachable executed"

This is my first time working with rust, but i added this Panic hook into the tick function as such: console_error_panic_hook::set_once();

After doing so, i received this error: panicked at 'attempt to subtract with overflow', src\lib.rs:395:12 afbeelding

So i looked up what changed there in your commits and found this: old:

fn update_cell(cell: Cell, api: SandApi) {
   if cell.clock as i32 - api.universe.generation as i32 == 1 {
        return;
    }

    cell.update(api);
}

new:

fn update_cell(cell: Cell, api: SandApi) {
   if cell.clock - api.universe.generation == 1 {
        return;
    }

    cell.update(api);
}

After changing it back i got the project working. I'm guessing that cell.clock and api.universe.generation are two different types so a cast might be neccesary? For me it's working now. I tested it with Firefox 69.0.2 (64-bits) and Chrome 77.0.3865.90 (Official build) (64-bits)

Garrut avatar Oct 07 '19 18:10 Garrut

thanks for investigating this @Garrut! This might fix the workflow and make it more resilient - I'll follow up when i have more time!

MaxBittker avatar Oct 08 '19 03:10 MaxBittker