← Back to team overview

kicad-developers team mailing list archive

GAL canvas deadlock


I’m getting a GAL canvas deadlock when I have both PCBNew and Eeschema running.

To reproduce, open both a schematic and a board, go to Preferences and change one of the GAL grid settings.  (I was changing PCBNew’s minimum grid spacing, but I imagine it reproduces with the others as well.)

On the CommonSettingsChanged() notification we end up rebuilding PCBNew's horizontal toolbar.  This results in a paint event on PCBNew's canvas.

In BeginDrawing() —> SetBuffer() —> bindFb() —> glBindFramebufferEXT() we get a "Error: switching framebuffer: invalid framebuffer operation”.  

We then try to fallback to Cairo and deadlock.

Ring any bells for anyone?


Follow ups