My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 52491: Crash : Google Chrome Framework - render_widget_host_view_mac.mm:835 RenderWidgetHostViewMac::DrawAcceleratedSurfaceInstance
10 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  thakis@chromium.org
Closed:  Sep 2010
Cc:  srikan...@chromium.org, kr...@chromium.org, pinkerton@chromium.org, thakis@chromium.org
M-7

Restricted
  • Only users with EditIssue permission may comment.


Sign in to add a comment
 
Project Member Reported by srikan...@chromium.org, Aug 17, 2010
Platform:
  Hostname: testings-mac-mini-3.local
  Mac OS X Version 10.6.4 (Build 10F569)
  Processor: 4 Intel 2.66 GHz
  RAM: 2048 MB

Chrome:
  Chrome version: 6.0.495.0 r56152  <<<Release/Debug>>>
  QuickTime Player: 7.6.6
  QuickTime PlayerX: 114


Thread 37 *CRASHED* ( EXC_BAD_ACCESS / KERN_PROTECTION_FAILURE @ 0x0000003a )

0x0056736b	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:835]	RenderWidgetHostViewMac::DrawAcceleratedSurfaceInstance
0x005673e4	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:227]	-[AcceleratedPluginView drawView]
0x0056431a	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:170]	-[AcceleratedPluginView getFrameForTime:]
0x957e7fc7	 [CoreVideo	 + 0x00002fc7]	CVDisplayLink::performIO(CVTimeStamp*)
0x957e6bfb	 [CoreVideo	 + 0x00001bfb]	CVDisplayLink::runIOThread()
0x957e6829	 [CoreVideo	 + 0x00001829]	startIOThread(void*)
0x990c581c	 [libSystem.B.dylib	 + 0x0002e81c]	_pthread_start
0x990c56a1	 [libSystem.B.dylib	 + 0x0002e6a1]	thread_start

What steps will reproduce the problem?

There are no consistent steps and could not be repeatable 
When it crashed I was running some HTML5 video tag testes

Crash ID :  e77eeaf706f808e5
e77eeaf706f808e5.dmp
289 KB   Download
Aug 17, 2010
#1 srikan...@chromium.org
(No comment was entered for this change.)
Crash.txt
25.4 KB   View   Download
Aug 18, 2010
#2 mikesm...@chromium.org
Browser crash? Regression within last couple of weeks. Can we narrow down the timeframe? Need more repeatable steps?
Status: Assigned
Owner: pinker...@chromium.org
Labels: -Pri-2 Pri-1 Mstone-7 crash-topcrasher ReleaseBlock-Dev
Aug 18, 2010
#4 pinkerton@chromium.org
well that was a waste of 90 minutes. I'm pretty sure this is a regression somewhere between  51362 and 55771 but I can't prove where. My attempts to repro while bisecting proved fruitless entirely, but I know that my waterfall builds at those two markers are good and bad.

This might have to do with flashblock/adblock, which i run on my normal profiles, but didn't make the effort to set up on each of the 7 bisect tries. I also tried incognito mode, didn't see any change.

back to QA for hopefully some more data.
Owner: srikan...@chromium.org
Cc: pinker...@chromium.org
Aug 23, 2010
#5 rohi...@chromium.org
Google Chrome : 6.0.495.0 dev

I have seen this crash several times on my personal mac. I don't have flashblock/adblock extensions installed.
Once it happened when I was closing the tab and once when I was navigating to a new url.

Crash ids:
1acffa0fbeac167b
13b6677b18f5e5a5

I think, I havn't seen this crash before 495.0 dev release.
Aug 23, 2010
#6 srikan...@chromium.org
This is  some thing started with 6.0.495.0 dev
I  am not able to repro it on Google Chrome	7.0.503.0 (Official Build 57033) , will check for similar crashes in next builds and update if there are still crashes on the same.


Aug 23, 2010
#7 lafo...@chromium.org
I'm removing release block dev since this is fixed in 503 which is likely the next release candidate.
Labels: -ReleaseBlock-Dev
Aug 24, 2010
#8 rohi...@chromium.org
7.0.503.0 (Official Build 57033) dev

This crash is not yet fixed in 503 dev.  Crash id: 49fb69232d0caac2
Aug 24, 2010
#9 thakis@chromium.org
I added DrawAcceleratedSurfaceInstance only very recently.

Repro steps would be nice, but this is my bug to fix.
Cc: tha...@chromium.org
Aug 24, 2010
#10 thakis@chromium.org
Line 835 in 495 is:

834 :	kbr@google	54923	com   plugin_container_manager_.Draw(
835 :	thakis@chr	55663	mium.org       context, plugin_handle, GetRenderWidgetHost()->is_gpu_rendering_active());

I bet GetRenderWidgetHost() returns 0.

The good thing is that this parameter isn't even used for anything, so I removed it in http://codereview.chromium.org/3132038 / r57135 yesterday. Which means this crash should go away once r57135 comes to the dev channel.
Aug 25, 2010
#11 srikan...@chromium.org
(No comment was entered for this change.)
Owner: tha...@chromium.org
Aug 25, 2010
#12 thakis@chromium.org
As I said, I think this is fixed.
Status: Fixed
Aug 25, 2010
#13 bugdroid1@gmail.com
Verified label updated by AutoAllocator, contact AmolK or KrisR for details
Labels: Verifier-Srikanthk
Aug 30, 2010
#14 kr...@chromium.org
(No comment was entered for this change.)
Labels: -verifier-srikanthk Verifier-Deepakg
Sep 1, 2010
#15 thestig@chromium.org
 Issue 54000  has been merged into this issue.
Sep 2, 2010
#16 hbridge@google.com
(No comment was entered for this change.)
Labels: -Crash-TopCrasher Crash-TopFixed
Sep 2, 2010
#17 deep...@chromium.org
Marking as verified. 
Haven't seen this crash in 7.0.513.0 (Official Build 58304) dev.
Sep 2, 2010
#18 deep...@chromium.org
(No comment was entered for this change.)
Status: Verified
Sep 14, 2010
#19 shess@chromium.org
Reopening, because 517 has:
http://crash/reportdetail?reportid=ee6c8eca06f42ad6
http://crash/reportdetail?reportid=cc8fb8963036a4ab
http://crash/reportdetail?reportid=cbef0b96916def66

[These are three separate clusters of crashes, not three crashes from the same cluster.]
Status: Started
Sep 14, 2010
#20 shess@chromium.org
Possibly related:
http://crash/reportdetail?reportid=c4cec0fe022decdf


Thread 18 *CRASHED* ( EXC_BREAKPOINT / EXC_I386_BPT @ 0x008183c4 )

0x008183c4	 [Google Chrome Framework	 - debug_util_posix.cc:262]	DebugUtil::BreakDebugger
0x0082b1d3	 [Google Chrome Framework	 - logging.cc:596]	logging::LogMessage::~LogMessage
0x0057ae97	 [Google Chrome Framework	 - accelerated_surface_container_manager_mac.cc:91]	AcceleratedSurfaceContainerManagerMac::Draw
0x005958b4	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:245]	-[AcceleratedPluginView drawView]
0x005925da	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:180]	-[AcceleratedPluginView getFrameForTime:]
0x95e79bf3	 [CoreVideo	 + 0x00003bf3]	CVDisplayLink::performIO(CVTimeStamp*)
0x95e78827	 [CoreVideo	 + 0x00002827]	CVDisplayLink::runIOThread()
0x95e78455	 [CoreVideo	 + 0x00002455]	startIOThread(void*)
0x9856281c	 [libSystem.B.dylib	 + 0x0002e81c]	_pthread_start
0x985626a1	 [libSystem.B.dylib	 + 0x0002e6a1]	thread_start

Sep 14, 2010
#21 thakis@chromium.org
I think the crashes from comments 19 and 20 have a different cause then this bug was originally about (not that it matters much :-P).
Sep 15, 2010
#22 pinkerton@chromium.org
(No comment was entered for this change.)
Labels: -Crash-TopFixed TopCrash ReleaseBlock-Beta
Sep 15, 2010
#23 jeffr...@chromium.org
hey Nico, do you think you can get this fixed by Friday:?
Sep 15, 2010
#24 thakis@google.com
I'll try.
Sep 16, 2010
#25 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=59684

------------------------------------------------------------------------
r59684 | thakis@chromium.org | Thu Sep 16 12:18:46 PDT 2010

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/renderer_host/render_widget_host_view_mac.h?r1=59684&r2=59683&pathrev=59684
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/renderer_host/render_widget_host_view_mac.mm?r1=59684&r2=59683&pathrev=59684

Mac: Fix concurrent access on a non-threadsafe data structure.

Also remove a call to cocoa from the non-ui thread.

DrawAcceleratedSurfaceInstance is called on the display link thread. plugin_views_ can be written to from the main thread. Since the map is only used to get the view's size, pass in the size right away.

There's another problem like this in plugin_container_manager_, which also has a map that is accessed from two threads. I will address this in a follow-up CL.

BUG=52491
TEST=none

Review URL: http://codereview.chromium.org/3431011
------------------------------------------------------------------------
Sep 17, 2010
#27 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=59890

------------------------------------------------------------------------
r59890 | thakis@chromium.org | Fri Sep 17 18:30:05 PDT 2010

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc?r1=59890&r2=59889&pathrev=59890
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h?r1=59890&r2=59889&pathrev=59890

Map: Guard concurrent accesses to a std::map by a lock in drawing code.

Both UI thread and displaylink thread always take the CG lock before taking this new lock, hence this shouldn't deadlock (the UI thread sometimes only takes and releases the new lock without attempting to take the CG lock).

BUG=52491
TEST=no more crashes in DrawAcceleratedSurfaceInstace

Review URL: http://codereview.chromium.org/3391011
------------------------------------------------------------------------
Sep 17, 2010
#28 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=59894

------------------------------------------------------------------------
r59894 | thakis@chromium.org | Fri Sep 17 21:24:10 PDT 2010

Changed paths:
 M http://src.chromium.org/viewvc/chrome/branches/517/src/chrome/browser/renderer_host/render_widget_host_view_mac.h?r1=59894&r2=59893&pathrev=59894
 M http://src.chromium.org/viewvc/chrome/branches/517/src/chrome/browser/renderer_host/render_widget_host_view_mac.mm?r1=59894&r2=59893&pathrev=59894

Merge 59684 - Mac: Fix concurrent access on a non-threadsafe data structure.

Also remove a call to cocoa from the non-ui thread.

DrawAcceleratedSurfaceInstance is called on the display link thread. plugin_views_ can be written to from the main thread. Since the map is only used to get the view's size, pass in the size right away.

There's another problem like this in plugin_container_manager_, which also has a map that is accessed from two threads. I will address this in a follow-up CL.

BUG=52491
TEST=none

Review URL: http://codereview.chromium.org/3431011

TBR=thakis@chromium.org
Review URL: http://codereview.chromium.org/3437008
------------------------------------------------------------------------
Sep 17, 2010
#29 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=59896

------------------------------------------------------------------------
r59896 | thakis@chromium.org | Fri Sep 17 21:28:20 PDT 2010

Changed paths:
 M http://src.chromium.org/viewvc/chrome/branches/517/src/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h?r1=59896&r2=59895&pathrev=59896
 M http://src.chromium.org/viewvc/chrome/branches/517/src/chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc?r1=59896&r2=59895&pathrev=59896

Merge 59890 - Map: Guard concurrent accesses to a std::map by a lock in drawing code.

Both UI thread and displaylink thread always take the CG lock before taking this new lock, hence this shouldn't deadlock (the UI thread sometimes only takes and releases the new lock without attempting to take the CG lock).

BUG=52491
TEST=no more crashes in DrawAcceleratedSurfaceInstace

Review URL: http://codereview.chromium.org/3391011

TBR=thakis@chromium.org
Review URL: http://codereview.chromium.org/3463005
------------------------------------------------------------------------
Sep 20, 2010
#30 thakis@chromium.org
(No comment was entered for this change.)
Status: Fixed
Sep 21, 2010
#31 deep...@chromium.org
Haven't seen any crashes with this stack trace recently.
Status: Verified
Mar 18, 2011
#32 lafo...@chromium.org
Platform:
  Hostname: testings-mac-mini-3.local
  Mac OS X Version 10.6.4 (Build 10F569)
  Processor: 4 Intel 2.66 GHz
  RAM: 2048 MB

Chrome:
  Chrome version: 6.0.495.0 r56152  &lt;&lt;&lt;Release/Debug&gt;&gt;&gt;
  QuickTime Player: 7.6.6
  QuickTime PlayerX: 114


Thread 37 *CRASHED* ( EXC_BAD_ACCESS / KERN_PROTECTION_FAILURE @ 0x0000003a )

0x0056736b	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:835]	RenderWidgetHostViewMac::DrawAcceleratedSurfaceInstance
0x005673e4	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:227]	-[AcceleratedPluginView drawView]
0x0056431a	 [Google Chrome Framework	 - render_widget_host_view_mac.mm:170]	-[AcceleratedPluginView getFrameForTime:]
0x957e7fc7	 [CoreVideo	 + 0x00002fc7]	CVDisplayLink::performIO(CVTimeStamp*)
0x957e6bfb	 [CoreVideo	 + 0x00001bfb]	CVDisplayLink::runIOThread()
0x957e6829	 [CoreVideo	 + 0x00001829]	startIOThread(void*)
0x990c581c	 [libSystem.B.dylib	 + 0x0002e81c]	_pthread_start
0x990c56a1	 [libSystem.B.dylib	 + 0x0002e6a1]	thread_start

<b>What steps will reproduce the problem?</b>

There are no consistent steps and could not be repeatable 
When it crashed I was running some HTML5 video tag testes

Crash ID :  e77eeaf706f808e5
Labels: -Crash bulkmove Stability-Crash
Oct 12, 2012
#33 bugdroid1@chromium.org
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Labels: Restrict-AddIssueComment-Commit
Mar 10, 2013
#34 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Area-UI -Mstone-7 M-7 Cr-UI
Mar 13, 2013
#35 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Sign in to add a comment

Powered by Google Project Hosting