Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Issue 12636005: Fix crash in NSSpeechSynthesizer by explicitly retaining NSString. (Closed)

Created:
7 years, 9 months ago by dmazzoni
Modified:
7 years, 9 months ago
Reviewers:
Nico, David Tseng
CC:
chromium-reviews, sail+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix crash in NSSpeechSynthesizer by explicitly retaining NSString. This definitely fixes one crash that was easy to repro by speaking text at a high rate (~900 wpm) with the Samantha voice on OS X 10.8.2. Retaining the NSString passed to startSpeakingString fixes the problem, so this change makes a one-time-use subclass of NSSpeechSynthesizer that holds onto its utterance string while it's alive. http://openradar.appspot.com/radar?id=2854403 BUG=99116 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188338

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added comment, fixed whitespace #

Patch Set 3 : Fix link to openradar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -7 lines) Patch
M chrome/browser/speech/tts_mac.mm View 1 2 5 chunks +59 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dmazzoni
dtseng: review speech logic thakis: please check Obj-C style and idiosyncratic usage
7 years, 9 months ago (2013-03-14 22:36:49 UTC) #1
Nico
https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm File chrome/browser/speech/tts_mac.mm (right): https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm#newcode28 chrome/browser/speech/tts_mac.mm:28: @interface SingleUseSpeechSynthesizer : NSSpeechSynthesizer { Can you add a ...
7 years, 9 months ago (2013-03-14 22:45:17 UTC) #2
David Tseng
lgtm
7 years, 9 months ago (2013-03-14 23:08:25 UTC) #3
dmazzoni
https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm File chrome/browser/speech/tts_mac.mm (right): https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm#newcode28 chrome/browser/speech/tts_mac.mm:28: @interface SingleUseSpeechSynthesizer : NSSpeechSynthesizer { On 2013/03/14 22:45:17, Nico ...
7 years, 9 months ago (2013-03-14 23:29:31 UTC) #4
Nico
https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm File chrome/browser/speech/tts_mac.mm (right): https://codereview.chromium.org/12636005/diff/1/chrome/browser/speech/tts_mac.mm#newcode28 chrome/browser/speech/tts_mac.mm:28: @interface SingleUseSpeechSynthesizer : NSSpeechSynthesizer { On 2013/03/14 22:45:17, Nico ...
7 years, 9 months ago (2013-03-14 23:32:00 UTC) #5
dmazzoni
On 2013/03/14 23:32:00, Nico wrote: > I meant a link to the openradar one, rdar:// ...
7 years, 9 months ago (2013-03-14 23:40:28 UTC) #6
Nico
lgtm Thanks!
7 years, 9 months ago (2013-03-15 00:38:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/12636005/7002
7 years, 9 months ago (2013-03-15 05:07:15 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=109270
7 years, 9 months ago (2013-03-15 07:01:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/12636005/7002
7 years, 9 months ago (2013-03-15 07:21:08 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-15 11:16:54 UTC) #11
Message was sent while issue was closed.
Change committed as 188338

Powered by Google App Engine
This is Rietveld 408576698