Page 1 of 1

Sometimes callbacks aren't attached it seems.

Posted: Wed Apr 12, 2023 9:51 am
by Nikki
Hello everyone,

I have a bit of a strange issue with my main dev machine (MacMini M1). About 10% of the time when I start my project, the app doesn't respond to mouse events. I feel that this issue is somehow related to other processes on my machine because sometimes it happens frequently, while other times it happens less often.

When I unfocus the window (by clicking in my terminal) and refocus (by clicking in the window), everything works fine. Also, when I print some debug information in the love.focus function, it doesn't show up in cases where the app isn't responding correctly.

I haven't seen this issue on my other machine, and since it's not a consistent problem, it's very annoying and difficult to track down. Does anyone have any ideas about how to solve this issue? Additionally, could I provide other information to help track down the issue further?

Re: Sometimes callbacks aren't attached it seems.

Posted: Wed Apr 12, 2023 10:32 am
by BrotSagtMist
Add this for more debug.

Code: Select all

local a,b,c,d,e
repeat 
a,b,c,d,e=love.event.wait()
print(a,b,c,d,e)
until a=="keypressed"
For me this starts with:
visible, mousefocus, focus. Check if any of the three is missing.