Summary: | xcb-image returns NULL | ||
---|---|---|---|
Product: | XCB | Reporter: | Alexander Kerner <lunohod> |
Component: | Utils | Assignee: | Jamey Sharp <jamey> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | dottedmag, x |
Version: | 1.1 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | testcase |
Description
Alexander Kerner
2008-07-14 03:36:23 UTC
I've found minimal testcase which triggers the problem. Attached. When any argument is passed to it, it sleeps for a second before obtaining image. [mag@frontier:~/openinkpot/efl/xcb]% ./test1 (nil) [mag@frontier:~/openinkpot/efl/xcb]% ./test1 test 0x804c330 [mag@frontier:~/openinkpot/efl/xcb]% Created attachment 17663 [details]
testcase
I think this is not a bug. You can't do a get_image on an unmapped window; the server refuses. You're supposed to wait for the mapping event before you try to work with the window. In practice, it suffices to ensure that the MapWindow request completes: using xcb_map_window_checked() instead of the xcb_flush() that was there is sufficient to fix the problem. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.