http://bugs.winehq.org/show_bug.cgi?id=24921
Summary: X Error of failed request: BadAlloc Product: Wine Version: 1.3.5 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: scorpion87-2003@list.ru
Created an attachment (id=31555) --> (http://bugs.winehq.org/attachment.cgi?id=31555) WINEDEBUG=+win,+event,+x11drv
run mail.ru agent version 5.7 error BadAlloc
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #1 from Konstantin scorpion87-2003@list.ru 2010-10-27 13:52:14 CDT --- X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 53 (X_CreatePixmap) Serial number of failed request: 12306 Current serial number in output stream: 12309
http://bugs.winehq.org/show_bug.cgi?id=24921
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|X Error of failed request: |mail.ru agent 5.7: X Error |BadAlloc |of failed request: | |BadAlloc
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2010-10-28 01:16:03 CDT --- Please provide an URL for download.
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #3 from Konstantin scorpion87-2003@list.ru 2010-10-28 01:17:09 CDT --- http://exe.agent.mail.ru/magentsetup.exe
http://bugs.winehq.org/show_bug.cgi?id=24921
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://exe.agent.mail.ru/ma | |gentsetup.exe
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #4 from Sultan Tezadov st99@mail.ru 2010-11-01 05:27:00 CDT --- Created an attachment (id=31638) --> (http://bugs.winehq.org/attachment.cgi?id=31638) Similar error on my system
I get something similar:
X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 139 (MIT-SHM) Minor opcode of failed request: 5 (X_ShmCreatePixmap) Serial number of failed request: 12258 Current serial number in output stream: 12263
http://bugs.winehq.org/show_bug.cgi?id=24921
Dmitry Shatrov erdizz@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Dmitry Shatrov erdizz@mail.ru 2010-12-15 04:43:18 CST --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #6 from Denis Misiurca infoman1985@gmail.com 2011-07-04 08:39:02 CDT --- Created an attachment (id=35426) --> (http://bugs.winehq.org/attachment.cgi?id=35426) Fix of a similar error
This fixes the similar error in Mail.ru's Battle of the Immortals launcher. It still crashes sometimes on other X calls, but I can launch and update the game client with this. I think that if similar error handlers will be used in all critical calls such as XCreatePixmap, thee will be no more BadAllocs.
http://bugs.winehq.org/show_bug.cgi?id=24921
andrea franceschini franceschini_a@tiscali.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |franceschini_a@tiscali.it
--- Comment #7 from andrea franceschini franceschini_a@tiscali.it 2011-09-19 09:29:41 CDT --- Same error here:
X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 53 (X_CreatePixmap) Serial number of failed request: 150225 Current serial number in output stream: 150254
The problems occurs on CheckPoint SmartConsole (VSX NGX R65). The interface show up correctly but as soon as I move the mouse wheel (to scroll the rules) it crashes.
I tried the proposed fix without success. I'm using the latest wine version (1.3.28)
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #8 from andrea franceschini franceschini_a@tiscali.it 2011-09-19 09:34:12 CDT --- Created an attachment (id=36465) --> (http://bugs.winehq.org/attachment.cgi?id=36465) debug log from smartconsole
WINEDEBUG=+win,+event,+x11drv
http://bugs.winehq.org/show_bug.cgi?id=24921
Traumflug mah@jump-ing.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mah@jump-ing.de
--- Comment #9 from Traumflug mah@jump-ing.de 2011-10-01 06:53:05 CDT --- Same error type with Catia V5R16 and Wine from current git. Trying to get a backtrace now, as Catia is pretty complex (multi process, multi thread) and the -synchronous option apparently has no effect.
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #10 from Traumflug mah@jump-ing.de 2011-10-02 17:40:35 CDT --- Created attachment 36674 --> http://bugs.winehq.org/attachment.cgi?id=36674 Hiding patch against git as of 2011-10-02
Please find attached the patch given earlier in this bug updated to current git. It wraps the call to XCreatePixmap() in it's own error handler, allowing to set back the created pixmap to NULL and making the already existing failure handling code work.
Trying hard to implement an X11DRV_expect_error() to deal properly with the failures just led to more and more confusion. Part of this confusion is, I can't find out how to build or run winedbg from git sources, so I had to resort to printf()-type debugging.
Running with WINEDEBUG=+synchronous, the patch is a no-op:
err:x11drv:error_handler X protocol error: serial=159305, request_code=53 - breaking into debugger
This is clearly Wine's standard X Error handler, no idea how this gets in there. Maybe this isn't actually an XCreatePixmap() failure, but something else messing up the event queue?
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #11 from Traumflug mah@jump-ing.de 2011-10-02 17:53:57 CDT --- At least for Catia, this is a regression from Wine 1.2.
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #12 from Austin English austinenglish@gmail.com 2011-10-03 13:46:32 CDT --- (In reply to comment #11)
At least for Catia, this is a regression from Wine 1.2.
Please run a regression test: http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #13 from Traumflug mah@jump-ing.de 2011-10-04 11:58:37 CDT ---
Please run a regression test
Even if this is a "happens sometimes"-type bug, it apparently worked out:
01e12ec9f99489ecbf54b21f290dc3d633328c54 is the first bad commit commit 01e12ec9f99489ecbf54b21f290dc3d633328c54 Author: Alexandre Julliard julliard@winehq.org Date: Wed Jul 20 12:17:09 2011 +0200
gdi32: Move the checks for empty visible rects in PatBlt/StretchBlt back to gdi32.
:040000 040000 40b6f0fd110b02d6cf547e164995f259bbc25a03 7b1d12161fe67450d4443fb2736cc24c75891953 M dlls
http://bugs.winehq.org/show_bug.cgi?id=24921
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |julliard@winehq.org Regression SHA1| |01e12ec9f99489ecbf54b21f290 | |dc3d633328c54
http://bugs.winehq.org/show_bug.cgi?id=24921
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |markk@clara.co.uk
--- Comment #14 from Alexandre Julliard julliard@winehq.org 2011-12-08 03:34:03 CST --- *** Bug 29266 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=24921
--- Comment #15 from Mark K markk@clara.co.uk 2011-12-08 09:37:11 CST --- I tested Puzzle Master 3 by eGames (see bug 29266). For that, the problem was first present with Wine 1.3.29. Running a regression test gave a different result to that reported in comment 13:
d905ba5a33797d9d91c7c291223ee1590c9fc4cb is the first bad commit commit d905ba5a33797d9d91c7c291223ee1590c9fc4cb Author: Alexandre Julliard julliard@winehq.org Date: Mon Sep 19 17:46:33 2011 +0200
winex11: Implement a PutImage entry point in the XRender driver.
:040000 040000 6b97482a16dd1a84f666cd693c8b9e9df23241c6 f8a139f24eeab4fd02673d456a427479df9988b4 M dlls
http://bugs.winehq.org/show_bug.cgi?id=24921
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |72fae39ce0385112fd4f4eb720e | |19912252103a1 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2011-12-08 13:56:53 CST --- The regression is fixed now. There may still be other causes for that error, if so please open new bugs for them.
http://bugs.winehq.org/show_bug.cgi?id=24921
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2011-12-16 13:29:10 CST --- Closing bugs fixed in 1.3.35.