Skip to content

avx2, Segmentation Faults, things #73

@Rukongai

Description

@Rukongai

Hey, I posted a message in Snackbox discord - but thought this would be a better location to detail stuff

avx2 Compatibility:
The bun:edge docker image has an older release of bun that doesn't support older processors that don't support avx2. Trying to run the docker with the older bun version causes it to throw an opcode error. I was able to get around this by using debian:latest for a base and using curl to install bun

RUN apt-get update && apt-get install -y curl unzip

RUN curl https://bun.sh/install | bash
RUN $HOME/.bun/bin/bun install
RUN cp $HOME/.bun/bin/bun /bin

Seg Fault
Upgrading bun to the latest canary build (3.0) has totally resolved the segmentation fault errors that were popping up. It also seems to be significantly faster for me. I don't know if this is just due to optimizations for older hardware, or if it's global performance increases, but it was night and day. I just added the following to the Dockerfile
RUN bun upgrade --canary

AnimeBytes, env variables, etc
If I don't comment out the animebytes lines, regardless of whether or not the env variables are set for it, it'll start throwing errors. It'd be nice to be able to have that section skip if the env vars are not set

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions