love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
4.84k stars 388 forks source link

love crashes (segmentation fault) apon exit related to setting cursor (occurs in ver 11.1; fixed in ver 11.4 appimage) #1767

Closed himanss closed 2 years ago

himanss commented 2 years ago

Love2d v11.1 segmentation faults when the following is run and then exited

do
  --declare cursor
  local xsize,ysize = 50,50
  local crsrCanvas = love.graphics.newCanvas(xsize,ysize)

  --simple cursor
  love.graphics.setCanvas(crsrCanvas)
  love.graphics.points(xsize/2,ysize/2)
  love.graphics.setCanvas()

  --convert canvas to cursor
  local crsrImage = crsrCanvas:newImageData()
  local crsr = love.mouse.newCursor(crsrImage,xsize/2,ysize/2)

  --set cursor
  love.mouse.setCursor(crsr)
end
slime73 commented 2 years ago

If it's fixed in newer versions then you can just use that newer version.

If the newer version isn't available in a specific Linux distribution package repository / package manager, you'll need to contact the owners of that - we don't control those.

Cursor-related problems likely also need a newer version of SDL2 as well.