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

Crash on event creation #14

Open
ImreAngelo opened this issue Oct 21, 2023 · 2 comments
Open

Crash on event creation #14

ImreAngelo opened this issue Oct 21, 2023 · 2 comments

Comments

@ImreAngelo
Copy link
Owner

ImreAngelo commented Oct 21, 2023

The crash due to webp conversion is probably fixed by using correct image extension, but still a crash. Last logs showed error while connecting to database, even though the event was created:

Created event 'Crash test' with id: dwl2Lo
Saved image dwl2Lo.jpeg to /srv/images
Request:
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^

Error: connect ECONNREFUSED 172.20.0.2:3306
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '172.20.0.2',
port: 3306,
fatal: true
}

@ImreAngelo
Copy link
Owner Author

ImreAngelo commented Oct 21, 2023

Might be related to vulnerability in jpeg-js (used by postcss-colorblind)

@ImreAngelo
Copy link
Owner Author

The bug is likely related to this issue, where large amounts of memory is allocated when reading large files. A simple fix would be to limit image uploads (maybe 1MB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant