Remix.run Logo
zamadatix 10 hours ago

For me:

- Browser: works after renaming to .html

- Linux: "./snake.com: line 20: lzma: command not found". Installing the xz package makes it work (already had XWayland enabled so X11 worked, but may be needed if you have a strict Wayland session).

- Windows: As either .com or renaming to .exe I get "The application was unable to start correctly (0xc0000005). Click OK to close the application." Not sure how to make this one work, it's definitely not AV related though (I have that stripped in this sandbox VM).

Edit: Got it working in all 3 now. On Windows I still had DEP enabled on all programs to test some apps earlier, turning that back off allowed it to launch.

10 hours ago | parent | next [-]
[deleted]
w4yai 10 hours ago | parent | prev | next [-]

Works for me on Windows 11

zamadatix 10 hours ago | parent [-]

Hmm, Windows 11 25H2 here as well. Redbean works so there must be something about this particular approach combined with some unknown setting on my install.

Edit: Got it working, was DEP.

eXpl0it3r 3 hours ago | parent [-]

What's DEP?

bananaboy 2 hours ago | parent [-]

Data Execution Prevention https://learn.microsoft.com/en-us/windows/win32/memory/data-...

deklesen 10 hours ago | parent | prev | next [-]

its written in the post

zamadatix 10 hours ago | parent [-]

If you mean lzma it wasn't immediately apparent to me it was a binary requirement, but inspecting the hex dump at the end + the message is how I figured out it was. I wonder how much space you lose dropping lzma and doing some other method as "tail -c+4294 $0|head -c 5061|lzma -dc>/tmp/a;chmod +x /tmp/a;(/tmp/a&rm /tmp/a);exit" would be more universal and the linux portion isn't all that big.

If you mean the .html rename or whatever my Windows problem was, I must be missing it. Edit: Windows was DEP.

GlumWoodpecker 10 hours ago | parent | prev [-]

If I ran it with just

    $ chmod +x snake.com
    $ ./snake.com
... then it would try to use Mono to launch it:

    Cannot open assembly './snake.com': File does not contain a valid CIL image.
But, running it explicitly with Bash works:

    $ bash snake.com
Pretty nifty but doesn't work out of the box on any Linux, at least :p Running Debian 13.
seba_dos1 10 hours ago | parent [-]

> ... then it would try to use Mono to launch it:

That's because of the binfmt handler that Mono installs which matches the PE header.