lovebrew / lovepotion

LÖVE for Nintendo Homebrew
https://lovebrew.org
Other
546 stars 42 forks source link

[Bug]: Creating canvases cause a system crash on switch #225

Open NyakoFox opened 7 months ago

NyakoFox commented 7 months ago

Software Version

3.0.1

What Happened?

After creating a canvas, the system crashes. Apparently this is inconsistent between builds, which leads me to believe there's some UB hiding somewhere in the code.

What was Expected?

Canvases would function as expected, instead of crashing the system.

Code to Reproduce

function love.load(args)
    canvas = love.graphics.newCanvas(320, 240)
    -- comment out the above line to remove the crash
end

function love.draw()
    love.graphics.print("test", 0, 0)
end

Console

Nintendo Switch

Firmware Version(s)

17.0.1

Custom Firmware Version

1.6.2

Execution Method

Homebrew Menu

Code of Conduct