From: Stefan S. <ma...@ss...> - 2016-01-08 19:40:40
|
On Mon, 2016-01-04 at 21:38 +0900, Kouhei Sutou wrote: > It seems that your cairo XCB surface is destroyed twice. Have tried to debug it with gdb, but without real success. Yesterday I tried to comment out parts of my code. My current feeling is that I have in pet-canvas.rb @darea.signal_connect('configure-event') { darea_configure_callback } darea_configure_callback() calls function paint(), where I have cr0 = @darea.window.create_cairo_context If I comment out that line, the bug is gone. But I need that to create a similar surface for my background pattern! I have no idea why that may generate the crash, why only with xcb, and why not when I have moved some elements on my schematic sheet. I will see if I can replace this call. For the draw event it is easy to replace, I get the cairo context as a parameter for the called block. I really should replace that. But for configure-event that is not that easy. My intent was to create a similar surface for maximum performance, and I think for that I need a cairo context. But a plain image surface may work for testing. |