Trouble installing on Linux Mint 22

  • OtherDalfite
    1st November Member 0 Permalink

    System info:

     

    OS: Linux Mint 22 x86_64

    Kernel: 6.8.0-50-generic

    Shell: bash 5.2.21

    DE: Cinnamom 6.2.9 desktop environment'

    Terminal: gnome-terminal

     

    During the install instructions found at https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html#Compiling_for_Linux I ran into some trouble right at the end. When running the ./powder command to try and launch the program after compiling, I receive the following error from the terminal:

     

    od@tau-cannon:~/The-Powder-Toy/build-debug$ ./powder
    ReadFile: powder.pref: No such file or directory
    ReadFile: stamps/stamps.json: No such file or directory
    ReadFile: stamps/stamps.def: No such file or directory
    X Error of failed request: BadValue (integer parameter out of range for operation)
    Major opcode of failed request: 152 (GLX)
    Minor opcode of failed request: 3 (X_GLXCreateContext)
    Value in failed request: 0x0
    Serial number of failed request: 171
    Current serial number in output stream: 172
    od@tau-cannon:~/The-Powder-Toy/build-debug$

     

    From what I could tell, the install process went off without a hitch. I ran meson compile a second time as the wiki instructs to check and make sure nothing got missed, but the terminal reports there is nothing to do. I've also tried running an optimized build and ran into the same thing. I've not launched this program before so I figure several of these files the game is looking for are auto-generated upon running for the first time. Been a fan of this game for years and want to install it now that I've migrated to Linux. Thank you for any help you can provide!

  • LBPHacker
    1st November Developer 0 Permalink
    That's SDL (i.e. not our code) failing on you spectacularly, somewhere deep in Xorg, and without a sensible error message, very weird. It's also really weird that it's trying to create a GL context, even though we don't ask for one. Maybe try SDL_RENDER_DRIVER=software ./powder?

    Also, to be clear, you're building the game, not installing it. Installing it is as simple as downloading it from the main page; the official Linux build doesn't work on every single system but it should be a pretty good fit for yours.
    Edited once by LBPHacker. Last: 1st November
  • OtherDalfite
    3rd November Member 0 Permalink

    @LBPHacker (View Post)

    Hey, thank you for the reply. I'm not sure where to input that fix you have there in the red text. Would this be in a .c file?

     

    I also hadn't realized you guys have an executable. I went ahead and tried downloading and running that but it behaves exactly the same. Running it via the terminal gives the same error message. I will keep trying and report back if I happen to find a solution. Thank you!

     

  • jacob1
    3rd November Developer 0 Permalink
    @OtherDalfite (View Post)
    No that fix is on the command line, so if your executable is called "powder", try setting that env variable.

    Anyway I think something is broken with your graphics drivers. I used to get errors like that after updating my drivers but before I rebooted. But it could just be they're broken some other way.
  • OtherDalfite
    3rd November Member 0 Permalink

    @jacob1 (View Post)

    You were correct. I believe when I set up this operating system over a year ago I messed up somewhere with the graphics drivers. I did the following by the person named kernel8liang's instructions here

     

    https://github.com/apache/mxnet/issues/5385

     

    After this I gave the program a shot and got it working! Thank you for the advice.

  • jacob1
    4th November Developer 0 Permalink
    @OtherDalfite (View Post)
    oh, those steps seem a little extreme (first removing your graphics drivers entirely, then attempting to reinstall them through a dependency of another package). Perhaps it works ... could have easily broken your system a lot more though.