http://bugs.winehq.org/show_bug.cgi?id=21543
Summary: Pasting bitmaps that were created by gnome-screenshot can crash Wine in X11DRV_CLIPBOARD_RenderSynthesizedBitmap Product: Wine Version: 1.1.31 Platform: x86 URL: http://winehq.org/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: alexander.scott.johns+winebug@googlemail.com
Created an attachment (id=25953) --> (http://bugs.winehq.org/attachment.cgi?id=25953) Backtrace of crash
To reproduce (in GNOME, at least):
* Run clipview (from http://bugs.winehq.org/attachment.cgi?id=25952), mspaint or probably any program that can paste the CF_BITMAP clipboard format. * Press the Print Screen key. [gnome-screenshot ("Save Screenshot") should appear.] * Click Copy to Clipboard. [clipview won't refresh automatically. That is bug 19418.] * Press F5 in clipview to refresh (or paste, in mspaint, etc). [The screenshot should appear.] * Close gnome-screenshot. * Press F5 again (or paste the CF_DIB format). [An error will occur in clipview - can't read CF_DIB for some reason.] * Select View -> 0x0002: Bitmap Image in clipview (or paste the CF_BITMAP format). [Crash.]
Backtrace attached. On wine-1.1.37-230-g3ed5df1 + my clipview patch. In a clean prefix.
http://bugs.winehq.org/show_bug.cgi?id=21543
--- Comment #1 from Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com 2010-01-29 22:09:12 --- This doesn't appear to be window manager issue (I tried both metacity and compiz), but this bug doesn't occur in Xephyr + metacity: when gnome-screenshot is closed, the clipboard is cleared.
http://bugs.winehq.org/show_bug.cgi?id=21543
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winex11.drv
http://bugs.winehq.org/show_bug.cgi?id=21543
Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=21543
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #2 from Austin English austinenglish@gmail.com 2010-01-30 13:25:47 --- Confirming. 'winetricks mspaint' will show the problem. It's only after the gnome-screenshot window is closed. I tried with native gimp, however, and it doesn't crash, and pastes the image.
http://bugs.winehq.org/show_bug.cgi?id=21543
Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com 2011-01-31 13:47:38 CST --- I couldn't reproduce this bug using gnome-screenshot, so it was probably fixed a while ago.
The crash was caused because the code didn't check the return value of GlobalLock, and then tried to access lpbmih->biBitCount when lpbmih was NULL. I added a NULL check anyway in wine-1.3.12-224-g356eaa1, so this crash shouldn't recur.
http://bugs.winehq.org/show_bug.cgi?id=21543
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2011-02-04 13:20:47 CST --- Closing bugs fixed in 1.3.13.