love icon indicating copy to clipboard operation
love copied to clipboard

my love2d is broken

Open bigbruhh0 opened this issue 3 years ago • 7 comments

hello everyone, for half a week I can't solve this problem, my love2d just freezes when I start the game, or even just the program itself without a project, tried to install version 11.4 as advised by slime from the forum, tried to restore the system to roll back some changes, nothing Does not help

I have suspicions that this happened due to the fact that I launched Corona SDK recently, it was on this day that it all started

can someone help me with this? ready to throw off any data so that they can understand what the problem is, if possible

bigbruhh0 avatar Apr 11 '21 11:04 bigbruhh0

Could you reproduce it by using empty main.lua then disabling joystick, graphics, and window module at conf.lua? Afterwards try to enable those modules one by one.

Also please try the no-game (running love.exe/lovec.exe directly)

MikuAuahDark avatar Apr 11 '21 12:04 MikuAuahDark

so, I tried to disable modules as you said:

everything is disabled - nothing happens at startup turned on only the joystick - nothing happens turned on only graphics - nothing happens turned on only the window - a white window appeared (I can move the window itself, which means the application does not freeze) turned on all three - everything works without failure, no freezes

I have already tried to run love2d without a game, every time it freezes

And i checked something else

I wrote the following code in main.lua:

function love.load()
p={}
p.x=1
p.y=1
end

function love.update()
	p.x=p.x+1
	print(p.x)
end

function love.draw()
	--love.graphics.print("zzz",p.x,p.y)
	p.y=p.y+1
	print("       "..p.y)
end

everything works fine without drawing when i want to draw something the game freezes

bigbruhh0 avatar Apr 11 '21 12:04 bigbruhh0

Sharing the output of print(love.graphics.getRendererInfo()) might help to narrow this down. You could also make sure your graphics drivers are as up to date as possible.

Setting the environment variable LOVE_GRAPHICS_USE_GL2=1 before launching love might also work around the driver bug for now.

slime73 avatar Apr 11 '21 20:04 slime73

Setting the environment variable LOVE_GRAPHICS_USE_GL2=1 before launching love might also work around the driver bug for now.

Wow,that works fine print(love.graphics.getRendererInfo()) printing this: OpenGL 4.0.0 - Build 10.18.10.4276 Intel Intel(R) HD Graphics

Setting the env. variable helped me. So what was the problem? in the drivers of the device itself?

bigbruhh0 avatar Apr 12 '21 06:04 bigbruhh0

Thank you so much :3

bigbruhh0 avatar Apr 12 '21 06:04 bigbruhh0

Build 10.18.10.4276 Intel Intel(R) HD Graphics

Based on some other info I found online to compare to, that version number isn't the latest possible one for that GPU on Windows, so it's possible a graphics driver update could fix the problem for you.

I think this page has the latest graphics driver that works for your model of GPU, if you want to try updating: https://downloadcenter.intel.com/download/29969/Intel-Graphics-Driver-for-Windows-15-33-

slime73 avatar Apr 12 '21 23:04 slime73

what was the problem? in the drivers of the device itself?

I believe it's a bug in the specific version of the graphics drivers you have for your GPU yeah - I think it's waiting for a glClientWaitSync call to complete (that codepath in love only gets run when using OpenGL 3+), but the driver never signals that it's done so it just hangs forever.

slime73 avatar Apr 12 '21 23:04 slime73

I'm assuming a graphics driver update might've fixed this for you (aside from manually forcing love to use OpenGL 2 codepaths), but let me know if it hasn't.

slime73 avatar Dec 03 '22 22:12 slime73