<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - xcb-util-cursor trying to create Pixmap of size 0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71060#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - xcb-util-cursor trying to create Pixmap of size 0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71060">bug 71060</a>
from <span class="vcard"><a class="email" href="mailto:michael+freedesktop@stapelberg.de" title="Michael Stapelberg <michael+freedesktop@stapelberg.de>"> <span class="fn">Michael Stapelberg</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=71060#c9">comment #9</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=88910" name="attach_88910" title="fix for loop">attachment 88910</a> <a href="attachment.cgi?id=88910&action=edit" title="fix for loop">[details]</a></span>
> fix for loop
>
> Sorry Uli, I couldn't apply the patch, but I think the first one is obsolete.
> This patch fix the segfault but the code from sprunge.us seems to do
> nothing. The cursor is a black cross and doesn't change.
>
> With this patch, error from awesome are more reliable. Always X error with
> bad drawable. </span >
I don’t think that patch is correct. Instead, can you try the following (on top
of latest git) please?
--- i/cursor/parse_cursor_file.c
+++ w/cursor/parse_cursor_file.c
@@ -138,7 +138,7 @@ int parse_cursor_file(xcb_cursor_context_t *c, const int
fd, xcint_image_t **ima
for (int n = 0; n < cf.header.ntoc; n++) {
xcint_chunk_header_t chunk;
/* for convenience */
- xcint_image_t *i = &((*images)[n]);
+ xcint_image_t *i = &((*images)[cnt]);
uint32_t numpixels = 0;
uint32_t *p = NULL;
<span class="quote">> I have no strace on my computer, but I know that xcb-util-cursor try to open
> $HOME/.icons/default/cursors/+argv[1]. I do most of the test with this file
> > <a href="http://dl.dropboxusercontent.com/u/39506370/left_ptr">http://dl.dropboxusercontent.com/u/39506370/left_ptr</a></span >
Then install strace please?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>