Closed
Bug 659182
Opened 14 years ago
Closed 14 years ago
Crashing on startup [@ DisableFontActivation() ]
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox6 | - | --- |
People
(Reporter: sliu, Assigned: jtd)
References
Details
(Keywords: crash, regression, Whiteboard: jesse nominated without comment)
Crash Data
Attachments
(2 files)
7.52 KB,
text/plain
|
Details | |
609 bytes,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Note: Local builds crash but nightly build does not crash.
Updated•14 years ago
|
tracking-firefox6:
--- → ?
Assignee | ||
Comment 2•14 years ago
|
||
Hmmm, when you crash what are the values of mainBundleID and mainBundle? It looks like you're stopping on a breakpoint, what's the stack when it actually crashes?
Assignee | ||
Comment 3•14 years ago
|
||
Hmmm, unlike other API's CFRelease(NULL) is not allowed.
http://developer.apple.com/library/mac/#documentation/CoreFoundation/Reference/CFTypeRef/Reference/reference.html#//apple_ref/c/func/CFRelease
Assignee | ||
Comment 4•14 years ago
|
||
Assignee: nobody → jdaggett
Attachment #534647 -
Flags: review?(roc)
Comment on attachment 534647 [details] [diff] [review]
patch, null check bundle ids before releasing
Review of attachment 534647 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #534647 -
Flags: review?(roc) → review+
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Is there a need to get the bundle ID at all? I notice that the doc for CTFontManagerSetAutoActivationSetting says "If NULL, the current application bundle is used"; wouldn't that serve the purpose?
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> Is there a need to get the bundle ID at all? I notice that the doc for
> CTFontManagerSetAutoActivationSetting says "If NULL, the current application
> bundle is used"; wouldn't that serve the purpose?
Nope. I coded the initial patch on bug 567552 that way and it turns out passing in NULL affects the *global* setting, not a per-process setting. If you experiment with this you'll see that it clears the "Automatic Font Activation" pref in FontBook. Seems to be an Apple docs bug, unless I missing something.
Comment 9•14 years ago
|
||
(In reply to comment #8)
> (In reply to comment #7)
> > Is there a need to get the bundle ID at all? I notice that the doc for
> > CTFontManagerSetAutoActivationSetting says "If NULL, the current application
> > bundle is used"; wouldn't that serve the purpose?
>
> Nope. I coded the initial patch on bug 567552 that way and it turns out
> passing in NULL affects the *global* setting, not a per-process setting. If
> you experiment with this you'll see that it clears the "Automatic Font
> Activation" pref in FontBook. Seems to be an Apple docs bug, unless I
> missing something.
Fair enough; I didn't try it myself, just wondered based on what the doc said. Reported the bug to Apple?
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> Fair enough; I didn't try it myself, just wondered based on what the doc
> said. Reported the bug to Apple?
No, but you're right, I should.
Reporter | ||
Comment 11•14 years ago
|
||
Fixed as of rev 58083c2147e2
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Whiteboard: jesse nominated without comment
Comment 12•14 years ago
|
||
please nominate the patch with a risk analysis if you think it's safe for taking into 6 Aurora.
Comment 13•14 years ago
|
||
It looks like this is on Aurora already. It's listed in:
https://hg.mozilla.org/releases/mozilla-aurora/filelog/d8b797975700/gfx/thebes/gfxPlatformMac.cpp
Updated•14 years ago
|
Crash Signature: [@ DisableFontActivation() ]
You need to log in
before you can comment on or make changes to this bug.
Description
•