http://bugs.winehq.org/show_bug.cgi?id=10854
Summary: Codeblocks - black box in the about window Product: Wine Version: CVS/GIT Platform: PC-x86-64 URL: http://www.codeblocks.org OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: kgbricola@web.de
Created an attachment (id=9748) --> (http://bugs.winehq.org/attachment.cgi?id=9748) Black box in the about window
Codeblocks (svn 4630) show a "black box" in the about window. Every time it is opened an error is shown in the console: err:x11drv:X11DRV_CreateBitmap Trying to make bitmap with planes=1, bpp=24
http://bugs.winehq.org/show_bug.cgi?id=10854
Rico kgbricola@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #1 from Rico kgbricola@web.de 2007-12-22 05:26:33 --- Created an attachment (id=9749) --> (http://bugs.winehq.org/attachment.cgi?id=9749) workround to show the bitmap
Found a workaround but this is not a good solution! So I hope someone with more knowledge is looking at this problem.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-16 02:23:02 --- Does this bug still exist in 0.9.57? If yes, we needed to figure out where 24 comes from.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #3 from Rico kgbricola@web.de 2008-03-16 04:29:48 --- Yes, it does. Any suggestions where to look at?
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-16 04:37:31 --- (In reply to comment #3)
Yes, it does. Any suggestions where to look at?
Perhaps have a look at the lines preceding the err: message in the +relay, +bitmap,+x11drv log and see how the bitmap handle passed to SelectObejct (leading to the error) was created.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #5 from Rico kgbricola@web.de 2008-03-16 14:59:53 --- Created an attachment (id=11438) --> (http://bugs.winehq.org/attachment.cgi?id=11438) backtrace
This is a backtrace shortly before the error message "err:x11drv:X11DRV_CreateBitmap Trying to make bitmap with planes=1, bpp=24".
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #6 from Rico kgbricola@web.de 2008-03-16 15:01:51 --- Created an attachment (id=11439) --> (http://bugs.winehq.org/attachment.cgi?id=11439) +relay,+bitmap,+x11drv log
This is a +relay,+bitmap,+x11drv log which is cut of short after the error message and 100000 lines before that.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #7 from Rico kgbricola@web.de 2008-03-16 16:22:38 --- Now I am stuck on line 1980 in cursoricon.c in user32.
The value of ptr->bBitsPerPixel is 24. Where is this structure (CURSORICONINFO) filled before it is used in DrawIconEx?
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-17 01:58:42 --- (In reply to comment #7)
Now I am stuck on line 1980 in cursoricon.c in user32. The value of ptr->bBitsPerPixel is 24. Where is this structure (CURSORICONINFO) filled before it is used in DrawIconEx?
Looks like the app has a 24 bpp icon in its resources. We need to test how Windows handles that, i.e. in which format LoadIcon returns a color part of an icon/cursor.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #9 from Rico kgbricola@web.de 2008-03-17 14:03:11 --- When I rename the splash_new.png in the folder CodeBlocks/share/CodeBlocks/images the bitmap disappears. But it disappears in both cases (in the front as splash bitmap and in the about box). The curious thing is that it is displayed correctly in the front as splash but it is shown as a black picture with 24bit in the about box.
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #10 from Dmitry Timoshkov dmitry@codeweavers.com 2008-03-17 20:56:13 --- The log you attached misses the place where/how an image was loaded. Is that LoadImage, or something different?
http://bugs.winehq.org/show_bug.cgi?id=10854
--- Comment #11 from Rico kgbricola@web.de 2008-03-19 11:57:02 --- Created an attachment (id=11496) --> (http://bugs.winehq.org/attachment.cgi?id=11496) +cursor,+bitmap,+icon log
I attached the +cursor,+bitmap,+icon log. The problematic bitmap is 440x217. There is two times this "CreateDIBSection format (440,217)" in the log. The first is the splash image and the second is the one in the about box.
The problematic stuff is shortly behind that.
http://bugs.winehq.org/show_bug.cgi?id=10854
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2008-05-21 05:23:26 --- This should be fixed now.
http://bugs.winehq.org/show_bug.cgi?id=10854
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org 2008-05-23 10:38:10 --- Closing bugs fixed in 1.0-rc2.
http://bugs.winehq.org/show_bug.cgi?id=10854
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified