Closed
Bug 391284
Opened 18 years ago
Closed 18 years ago
Crash reporter doesn't work for Thunderbird on Mac OS X
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha8
People
(Reporter: whimboo, Assigned: ted)
Details
Attachments
(1 file)
|
1.20 KB,
patch
|
dcamp
:
review+
|
Details | Diff | Splinter Review |
On Mac OS X the crash reporter doesn't work. If a crash occurs you will only be notified with: "Couldn't find the crash reporter's settings." As Scott already stated in bug 391020 the profile location is the cause. We don't follow the system wide default location currently. This is a topic in bug 247973 which was resolved as wontfixed.
The crash reporter is trying to save it's report in $home/Library/Application Support/Thunderbird/Crash Reports/. Due to this folder doesn't exist it will fail. The profile doesn't have to be located at this position.
Should we raise the security to critical or blocker? I'm even not able to get some information if it also happens on other OS.
Flags: blocking1.9?
| Assignee | ||
Updated•18 years ago
|
Summary: Crash reporter doesn't work on Mac OS X → Crash reporter doesn't work for Thunderbird on Mac OS X
| Assignee | ||
Comment 1•18 years ago
|
||
Where exactly *is* Thunderbird's profile on OS X?
| Reporter | ||
Comment 2•18 years ago
|
||
The current profile location:
/Users/%username%/Library/Thunderbird/
The expected profile location:
/Users/%username%/Library/Application Support/Thunderbird/
| Assignee | ||
Comment 3•18 years ago
|
||
Ok, we can fix this by just creating that full path in the crash reporter. The downside is that you'll wind up with two separate "Crash Reports" dirs, in ~/Library/Thunderbird and in ~/Library/Application Support/Thunderbird, but that allows a minimum of special casing.
| Reporter | ||
Comment 4•18 years ago
|
||
Ted, shouldn't that also apply to Windows and Linux? There we have an identical situation because we don't use the preferred application data folder.
Windows
=======
system: %appdata%\Mozilla\Thunderbird
currently: %appdata%\Thunderbird
Linux
=====
system: ~/.mozilla/thunderbird
currently: ~/.thunderbird
| Assignee | ||
Comment 5•18 years ago
|
||
No, we specifically allow an empty vendor string. See:
http://mxr.mozilla.org/mozilla/source/toolkit/crashreporter/client/crashreporter_win.cpp#747
http://mxr.mozilla.org/mozilla/source/toolkit/crashreporter/client/crashreporter_linux.cpp#464
Thunderbird fails on OS X because it explicitly uses a different base path:
http://mxr.mozilla.org/mozilla/source/toolkit/xre/nsXREDirProvider.cpp#980
| Reporter | ||
Comment 6•18 years ago
|
||
And we cannot use "#ifdef MOZ_THUNDERBIRD" here to set the correct settings path for the crashreporter?
http://mxr.mozilla.org/mozilla/source/toolkit/crashreporter/client/crashreporter_osx.mm#473
Comment 7•18 years ago
|
||
It looks like that was added for Bug 246285 but I can't remember why...:(
| Assignee | ||
Comment 8•18 years ago
|
||
I don't want to add any #ifdef MOZ_THUNDERBIRDs. We should be removing those, not adding them. My proposed solution in comment 3 will make this work, it just won't be pretty since you'll have two directories, but it's not like they're terribly user-visible anyway.
Comment 9•18 years ago
|
||
Your solution in comment 3 is fine Ted.
Eventually we'd like to figure out a way to set the vendor string so new thunderbird profiles end up in the same directory structure as firefox without requiring existing users to move or copy their profile data to that new location.
Updated•18 years ago
|
Assignee: nobody → ted.mielczarek
Flags: blocking1.9? → blocking1.9+
| Assignee | ||
Comment 10•18 years ago
|
||
I haven't tested this yet, but it should do the trick.
| Reporter | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 11•18 years ago
|
||
Comment on attachment 279120 [details] [diff] [review]
patch
Ok, finally tested this and it works.
Attachment #279120 -
Attachment description: untested patch → patch
Attachment #279120 -
Flags: review?(dcamp)
Updated•18 years ago
|
Attachment #279120 -
Flags: review?(dcamp) → review+
| Assignee | ||
Comment 12•18 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
| Reporter | ||
Updated•18 years ago
|
Target Milestone: --- → mozilla1.9 M8
Comment 13•18 years ago
|
||
Thunderbird version 3.0a1pre (2007110903) on Mac OS 10.4.9 writes crash reports to "~/Library/Thunderbird/Crash Reports/". If I read this bug correctly, it's supposed to write to "~/Library/Application Support/Thunderbird/Crash Reports/" ?
You need to log in
before you can comment on or make changes to this bug.
Description
•