Crash when processing certain PNGs in ARM64 #226

Closed
opened 2022-11-07 15:30:48 +00:00 by dwarf · 4 comments
Contributor

Duplicate of https://github.com/misskey-dev/misskey/issues/8605

Nov 07 16:25:38 odroidc4 foundkey[1644330]: DONE 5 [download] Download finished: https://joinbookwyrm.com/static/images/favicon.ico
Nov 07 16:25:38 odroidc4 foundkey[1644330]: malloc(): invalid size (unsorted)
Nov 07 16:25:38 odroidc4 foundkey[3553908]: ERR * [core cluster] [5] died :(

When downloading certain PNG images it crashes the backend server. It should be fixed in sharp >=0.30.6. I see packages/backend/package.json already has sharp 0.30.7 so I'm not sure why it still occurs.

Duplicate of https://github.com/misskey-dev/misskey/issues/8605 > Nov 07 16:25:38 odroidc4 foundkey[1644330]: DONE 5 [download] Download finished: https://joinbookwyrm.com/static/images/favicon.ico > Nov 07 16:25:38 odroidc4 foundkey[1644330]: malloc(): invalid size (unsorted) > Nov 07 16:25:38 odroidc4 foundkey[3553908]: ERR * [core cluster] [5] died :( When downloading certain PNG images it crashes the backend server. It should be fixed in sharp >=0.30.6. I see packages/backend/package.json already has sharp 0.30.7 so I'm not sure why it still occurs.
Owner

Does updating Sharp to 0.31.2 fixes it?

You can edit packages/backend/package.json and then run yarn install to update the lockfile.

If it does, I'll probably update the Sharp version used here.

Does updating Sharp to 0.31.2 fixes it? You can edit `packages/backend/package.json` and then run `yarn install` to update the lockfile. If it does, I'll probably update the Sharp version used here.
Author
Contributor

I've updated it for now, I'll see how it does in the next few hours.

I've updated it for now, I'll see how it does in the next few hours.
Owner

If it works, I'll merge in the fix in #228.

If it works, I'll merge in the fix in #228.
Author
Contributor

Seems to have worked, no crashes overnight.

Seems to have worked, no crashes overnight.
dwarf closed this issue 2022-11-08 17:35:41 +00:00
Sign in to join this conversation.
No labels
feature
fix
upkeep
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#226
No description provided.