You are here

[Closed] Crash Reporter stores reports in AppData, does not submit, does not handle restarts

20 posts / 0 new
Last post
Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
[Closed] Crash Reporter stores reports in AppData, does not submit, does not handle restarts

Hi.
I've noticed that whenever firefox crashes - crash dumps get saved to the '%AppData%\Roaming\Mozilla\Firefox\Crash Reports' folder.
I think it's incorrect, because I'm a user of a portable browser and I expect to have all the browser related data in it's portable folder.

I've used Process Explorer and found out that process 'firefox.exe' has an environment called MOZ_CRASHREPORTER_DATA_DIRECTORY and it points to the '%AppData%\Roaming\Mozilla\Firefox\Crash Reports' folder.

Could you please make firefoxporable.exe handle that environment and make it point to '%firefox_portable%/Crash Reports' folder, please?

UPDATE: It also appears not to submit the data.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Bug

Could you please add a Bug with brackets around it at the beginning of your post title so it comes up in our bug tracker and gets more publicity?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
Done

Done

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 18.0

This has been added in Firefox Portable 18.0. The crash directory is set to your Data\profile\CrashReports directory. That way it will work with custom profile locations and 2nd profile setups.

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
I've updated my

I've updated my FirefoxPortable and I re-used Process Explorer to get the environments of firefox.exe again, and it reports that the path for MOZ_CRASHREPORTER_DATA_DIRECTORY is still the same.
I haven't yet crashed a Firefox (I don't know how to do that), but that's definitely not a good sign, so I can't yet confirm this bug is fixed.

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
I've used crashme to crash my

I've used crashme to crash my instance and crashreport appeared in %appdata%, not profile folder,
so I change the bug status from [Fixed] back to [Bug].

p.s.: I've even tried to crash with AllowMultipleInstances=false because I've noticed that in that case FirefoxPortable.exe has a correct path for %MOZ_CRASHREPORTER_DATA_DIRECTORY% environment, but it still puts crash reports into %appdata% folder, instead of putting it into profile folder.

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
AllowMultipleInstances is Unsupported

As always, AllowMultipleInstances is unsupported for functionality left behind. Firefox itself will not support or use the environment variable in that mode. Firefox Portable will always leave things behind in that mode. It's only for developers to use on their own machines.

If Firefox still stores it in APPDATA with the environment variable set, then it obviously doesn't use it. Where did you see it documented?

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
Sorry, I think either you

Sorry, I think either you misread what I wrote, or I misunderstand you.
I tried 2 times: 1st time ini file was the following:
[FirefoxPortable]
LocalHomepage=homepage.html

the 2nd time it was the following:
[FirefoxPortable]
LocalHomepage=homepage.html
AllowMultipleInstances=false

And I didn't say a single word that I saw something documented somewhere. I don't understand your question.
The issue is still there for me, although I've downloaded a fresh version of firefoxPortable from this site (and I imported my profile and 'firefox' sub-folder into 'App' folder).

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
MOZ_CRASHREPORTER_DATA_DIRECTORY

Where did you see MOZ_CRASHREPORTER_DATA_DIRECTORY documented? I don't think Firefox is using it properly if we have it set and it still stores it somewhere else.

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
I didn't find any

I didn't find any documentation about that, the only issue which is most relevant to the described problem is this one.

How do you think, is it worth filing a new bug to bugzilla.mozilla.org about this issue?

And yes, I've noticed that firefoxportable.exe now has an environment MOZ_CRASHREPORTER_DATA_DIRECTORY which points to the correct folder, and that firefox.exe doesn't inherit that value for that environment.
The question is: who's blame is this?

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
I filed a bug and got a response
Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
John, is there a chance that

John, is there a chance that you'd provide a patch for firefox to fix this issue?

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Disabling

Considering how insanely buggy crash reporting is, I think I will forcibly disable crash reporting in all future portable releases.

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Disabled from 20.0 on

The crash reporter is now disabled by default in Firefox Portable 20.0 and up. Upgrades are automatically set to disabled regardless of previous settings. You can enable it if you want, but it is not portable. A note to this effect is on the Firefox Portable homepage. This bug has been closed.

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
Uhm, newer versions of

Uhm, newer versions of Portable Firefox actually again invoking Crash Reporter.
Could comment this?

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Firefox 28

I installed Firefox Portable 28.0, opened up Options - Advanced - Data Choices. Enable Crash Reporter is unchecked. Is that not what you are seeing?

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
Yes. And yet it still gets

Yes. And yet it still gets opened if a crash occurs.

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Next Start

Are you sure you don't mean the 'Firefox crashed' UI that happens on next start? Also, how are you crashing it?

If it's unchecked but still bringing up the crash reporter, then that's a Firefox bug, not a Firefox Portable bug, and not something we can do anything about on our end.

Sometimes, the impossible can become possible, if you're awesome!

Drugoy
Offline
Last seen: 8 years 3 months ago
Joined: 2011-04-02 16:59
No, I mean Mozilla Crash

No, I mean Mozilla Crash Reporter. I crash it as I already described above in this thread: I'm using crashme add-on.

John T. Haller
John T. Haller's picture
Online
Last seen: 43 min 45 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
CrashMe or Firefox bug

I ran CrashMe on my local copy of Firefox with the crash reporter disabled and it still came up. So, either CrashMe is creating a non-standard crash (likely as it's not an approved extension and hasn't been worked on in 4 years). Or, Firefox has a bug with the crash reporter always being enabled. Not much we can do about either situation. I added a note to the Firefox page. The bottom line is that you can't restart Firefox from the crash reporter. It's not portable.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments