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

client crashing on mac #2

Open
vovacooper opened this issue Apr 1, 2025 · 1 comment
Open

client crashing on mac #2

vovacooper opened this issue Apr 1, 2025 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@vovacooper
Copy link

vovacooper commented Apr 1, 2025

     Running `target/debug/soldank-client --debug debug`
[2025-04-01T06:03:23Z INFO  soldank_client] Full VFS info: Filesystem {
        vfs: OverlayFS {
            roots: [
                <PhysicalFS root: /Users/vovacooper/dev/tmp/soldank/target/debug/resources>,
                <PhysicalFS root: /Users/vovacooper/Library/Application Support/Soldat2k.soldank-client>,
                <PhysicalFS root: /Users/vovacooper/Library/Application Support/Soldat2k.soldank-client>,
                <PhysicalFS root: /Users/vovacooper/dev/tmp/soldank/resources>,
            ],
        },
        resources_path: "/Users/vovacooper/dev/tmp/soldank/target/debug/resources",
        zip_path: "/Users/vovacooper/dev/tmp/soldank/target/debug/resources.zip",
        user_config_path: "/Users/vovacooper/Library/Application Support/Soldat2k.soldank-client",
        user_data_path: "/Users/vovacooper/Library/Application Support/Soldat2k.soldank-client",
    }
[2025-04-01T06:03:23Z INFO  soldank_client] Using map: ctf_Ash by chakapoko maker
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: CompilationError { shader_type: Vertex, error_message: "ERROR: 0:1: '' :  version '120' is not supported\nERROR: 0:2: '' :  #version required and missing.\nERROR: 0:3: 'attribute' : syntax error: syntax error" }
Location: gfx2d/src/context/mod.rs:41

[1]    77573 abort      env RUST_LOG=debug cargo run --manifest-path client/Cargo.toml -- --debug 
@smokku smokku changed the title client not compiling on mac client crashing on mac Apr 1, 2025
@smokku
Copy link
Owner

smokku commented Apr 1, 2025

Soldank is using OpenGL to render graphics. Is OpenGL even supported on Mac?

The error from the shader compiler is:

shader_type: Vertex,
error_message: "ERROR: 0:1: '' :  version '120' is not supported

I have zero knowledge about Mac programming.
This needs to be picked up by someone else.

Possibly a low-hanging fruit, as the OpenGL used by gfx2d is not that complicated.

@smokku smokku added bug Something isn't working help wanted Extra attention is needed labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants