http://bugs.winehq.org/show_bug.cgi?id=18001
Summary: Mass Effect Xlib: unexpected async reply Product: Wine Version: 1.1.18 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: ylai@users.sourceforge.net
Created an attachment (id=20378) --> (http://bugs.winehq.org/attachment.cgi?id=20378) Patch for missing OpenGL locks in dlls/wined3d/context.c
When running Mass Effect 1.0 with Wine 1.1.18 on RHEL 5 and Core 2 Duo T7500, it frequently crashes with "Xlib: unexpected async reply", caused by multiple threads to access the same GLX surface. Enabling tracing for d3d shows that this happens at least in the vincinity of context_bind_fbo, and context_apply_attachment_filter_states (dlls/wined3d/context.c). These functions lack OpenGL locking via ENTER_GL()/LEAVE_GL().
Applying the attached patch apparently fixes the problem.