Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(185)

Issue 5503094: Move Context::sync to Display::sync. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by apatrick1
Modified:
14 years, 3 months ago
Reviewers:
dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Move Context::sync to Display::sync. This is a workaround for an Intel bug. The crash looks like this: 0x5f816c53 [d3d9.dll + 0x00036c53] CQuery::~CQuery() 0x5f816bec [d3d9.dll + 0x00036bec] CQuery::`vector deleting destructor'(unsigned int) 0x5f7e8129 [d3d9.dll + 0x00008129] CBaseObject::~CBaseObject() 0x5f9e19c7 [libglesv2.dll + 0x000319c7] gl::Fence::`vector deleting destructor'(unsigned int) 0x5f9de78e [libglesv2.dll - context.cpp:975] gl::Context::deleteFence(unsigned int) 0x5f9e1491 [libglesv2.dll - context.cpp:198] gl::Context::~Context() 0x5f9e182f [libglesv2.dll - context.cpp:3936] glDestroyContext 0x717654ec [libegl.dll - display.cpp:749] egl::Display::destroyContext(gl::Context *) 0x7176a3da [libegl.dll - libegl.cpp:907] eglDestroyContext 0x64fbaf33 [chrome.dll - gl_context_egl.cc:75] gfx::GLContextEGL::Destroy() This is a crash in deleteFence but the same could happen in flush. Fix for the former to follow. The vendor ID is always 8086 (Intel). Not an XP issue - it's happening on Win 7. Tested by stepping through a call to glFinish in the debugger and ensuring that it sleeps but eventually returns. Committed: http://code.google.com/p/angleproject/source/detail?r=940

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -50 lines) Patch
M src/libEGL/Display.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M src/libEGL/Display.cpp View 1 2 6 chunks +57 lines, -0 lines 0 comments Download
M src/libGLESv2/Context.cpp View 1 2 1 chunk +1 line, -50 lines 0 comments Download

Messages

Total messages: 6
apatrick1
Hi Daniel, Please review. Thanks, Al
14 years, 3 months ago (2012-01-03 21:50:57 UTC) #1
dgkoch
I wonder if this is similar to the bug the Firefox guys ran into:? http://code.google.com/p/angleproject/issues/detail?id=232 ...
14 years, 3 months ago (2012-01-05 17:30:15 UTC) #2
apatrick1
Everything changed! Rebased and addressed issues. I tested by calling glFinish from one of the ...
14 years, 3 months ago (2012-01-05 20:29:25 UTC) #3
dgkoch
http://codereview.appspot.com/5503094/diff/5001/src/libEGL/Display.cpp File src/libEGL/Display.cpp (right): http://codereview.appspot.com/5503094/diff/5001/src/libEGL/Display.cpp#newcode474 src/libEGL/Display.cpp:474: mDevice->CreateQuery(D3DQUERYTYPE_EVENT, &mEventQuery); initializeDevice will get called after a device ...
14 years, 3 months ago (2012-01-10 14:58:45 UTC) #4
apatrick1
Done.
14 years, 3 months ago (2012-01-10 19:06:14 UTC) #5
dgkoch
14 years, 3 months ago (2012-01-10 21:54:39 UTC) #6
LGTM

(might want to scrub the description somewhat before committing though)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b