Backtrace: https://paste.pythondiscord.com/T45Q
I am trying to set the cursor in pygame to a simple surface in my program, but I get a fatal "bus" error. This happened out of nowhere, as it was working fine all day. I restarted my PC earlier and it started working again. However the issue came back a few hours later, and I'm pretty sure restarting will fix it, but I would like to know what is causing this so I can try to fix it permanently.
I suspect it might have something to do with me using Wayland, but I'm not sure.
Here is a minimum reproducible example:
import pygame
pygame.init()
screen = pygame.display.set_mode((720, 720))
pygame.mouse.set_cursor((0, 0), pygame.Surface((30, 30)))
Any help appreciated.