Skip to content

fix?: avoid annoying warning for "Surface 0x... is not initialized, skipping drawing"#6438

Open
thiswillbeyourgithub wants to merge 3 commits into
i3:nextfrom
thiswillbeyourgithub:surface_logging_fix
Open

fix?: avoid annoying warning for "Surface 0x... is not initialized, skipping drawing"#6438
thiswillbeyourgithub wants to merge 3 commits into
i3:nextfrom
thiswillbeyourgithub:surface_logging_fix

Conversation

@thiswillbeyourgithub
Copy link
Copy Markdown

@thiswillbeyourgithub thiswillbeyourgithub commented May 16, 2025

  • fix: Prevent drawing from uninitialized frame buffer in x_draw_decoration
  • fix: Prevent drawing from uninitialized frame buffer in x_deco_recurse

Hi,

This is a possible fix to #5456.

It was made purely by aider-chat as I cannot read a single line of C.

I consider it bad practice in general to do this, but to the best of my prompting skills (which are lightyears away from my C skills), the LLMs acted sure of themselves and the fix was minimal. Additionally, I tested the fix and so far I can't reproduce the issue and have not noticed any regression.

I can provide the full chat logs of the LLMs if you're interested. The workflow I used is already detailed here. Both patch were done using gemini 2.5 and aider.

Can't wait to see what you have to say about this :/!

Edit: although I can't do C, I am still a dev, and can't help but notice that the fix sounds like it's just hiding the error. In the sense that obviously it just checks if the surface is not initialized before deciding to draw on it, so I'm willing to think there's a deep issue at play. But for my case: I have 230k useless lines of logs a month, and don't notice any regression so I don't plan on going back.

@thiswillbeyourgithub
Copy link
Copy Markdown
Author

Report after 3 weeks: still no issue whatsoever.

@morgoth6
Copy link
Copy Markdown

Confirmed. This fixed the problem (or in worst case the anoying log message)

@mrdotx
Copy link
Copy Markdown

mrdotx commented Oct 25, 2025

Works as expected, no crowded log anymore...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants