maruohon / minihud

A client-side Minecraft mod with configurable "info lines" ("mini-F3") and various overlays, such as light level and structure bounding boxes
GNU Lesser General Public License v3.0
420 stars 123 forks source link

NullPointerException when attempting to use line shape drawer #356

Open taeko-chan opened 3 months ago

taeko-chan commented 3 months ago

I've been experiencing periodic crashes when using the line shape drawer. Unfortunately I see no pattern across the occurrences in terms of location or anything else really. The crash happens as I click the "Set Here" button for the Start coordinates. I've linked the log here: https://pastebin.com/JLdniWDV This seems to be happening on two separate computers as well, macOS and Windows. Thank you for any help!

maruohon commented 3 months ago

This is again that crash that some people get, that I don't know the reason for. It seems like some graphics buffer allocation fails somehow, but I don't know when/how/why it can fail. I've never seen this crash myself, so it's also very difficult to try to figure out the cause.

There are some fixes that could be added though to at least prevent the crash, but if the allocation fails repeatedly then the shape would fail to render. But I'd assume the allocation failure must be intermittent and not consistent.