Closed
Bug 914005
Opened 11 years ago
Closed 11 years ago
Many storage warnings on shutdown: "SQL statement ... should have been finalized before garbage-collection"
Categories
(Toolkit :: Storage, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jruderman, Assigned: Yoric)
References
Details
(Keywords: regression)
Attachments
(2 files, 3 obsolete files)
6.63 KB,
text/plain
|
Details | |
1.79 KB,
patch
|
Yoric
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Bug 911109 added a new SQL warning, and it fires 11 times on every shutdown. This kind of spew makes it hard to debug anything else in the browser. The new warnings look like: WARNING: SQL statement (12bbecf0) should have been finalizedbefore garbage-collection. For more details on this statement, setNSPR_LOG_MESSAGES=mozStorage:5 .: file ../../../storage/src/mozStorageStatement.cpp, line 412 If you can't fix this quickly, please put the warning behind a flag so it is only shown to developers working on this part of the browser.
Updated•11 years ago
|
Assignee: Jan.Varga → nobody
Component: SQL → Storage
Product: Core → Toolkit
QA Contact: owen.marshall+bmo
Assignee | ||
Comment 1•11 years ago
|
||
I guess I'll add this behind a mozStorage LOG and file individual bugs.
Assignee: nobody → dteller
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #801529 -
Flags: review?(mak77)
Comment 3•11 years ago
|
||
(In reply to Jesse Ruderman from comment #0) > If you can't fix this quickly, please put the warning behind a flag so it is > only shown to developers working on this part of the browser. This is unfortunately not possible, since storage is used by many different components and parts of the browser. We must keep this as a warning, otherwise nobody would ever notice nor fix the problem. We all know this is what would happen. But, we can take a temporary solution, like the suggested one, until the issue is investigated and fixed. That solution should be backed out once the fix lands, so that we can detect future regressions.
Assignee | ||
Comment 4•11 years ago
|
||
Marco, do we want to remove the warnings for FF26?
Flags: needinfo?(mak77)
Comment 5•11 years ago
|
||
Comment on attachment 801529 [details] [diff] [review] Moving the warnings to mozStorage logging Review of attachment 801529 [details] [diff] [review]: ----------------------------------------------------------------- ::: storage/src/mozStorageStatement.cpp @@ -409,5 @@ > // developers correlate with the more complete debug message triggered > // by AsyncClose(). > // > - NS_WARNING(msg); > - ::PR_smprintf_free(msg); let's do both (the warning and the PR_LOG), but for now comment out the warning and put a comment on top of it stating the warning is temporarily disabled while we investigate bug 914070. in bug 914070 add a comment note to re-enable the warning. Yes, it's probably worth to uplift to Firefox 26.
Attachment #801529 -
Flags: review?(mak77)
Updated•11 years ago
|
Flags: needinfo?(dteller)
Updated•11 years ago
|
Flags: needinfo?(mak77)
Assignee | ||
Comment 6•11 years ago
|
||
Is this what you had in mind?
Attachment #801529 -
Attachment is obsolete: true
Flags: needinfo?(dteller)
Comment 7•11 years ago
|
||
Comment on attachment 805911 [details] [diff] [review] Moving the warnings to mozStorage logging, v2 Review of attachment 805911 [details] [diff] [review]: ----------------------------------------------------------------- ::: storage/src/mozStorageStatement.cpp @@ +418,1 @@ > NS_WARNING(msg); well, I was thinking more of a very simple //NS_WARNING(...)
Assignee | ||
Comment 8•11 years ago
|
||
I seem to remember that we generally prefer |#if 0|/|#endif| to commenting out code. Is that ok with you?
Comment 9•11 years ago
|
||
I never heard of that specific, it may exist, I don't know. I suppose it's up to the module owner, in this case it's also temporary code that is soon going away, so I don't care about its code style. r=me on whatever you prefer, I just want both the PR_LOG and the warning, with the latter temporarily disabled.
Assignee | ||
Comment 10•11 years ago
|
||
Just to clarify: once bug 914070 is fixed, should we have only the warning or both the warning and the log entry with the same text?
Comment 11•11 years ago
|
||
both, we will just remove the "//"
Assignee | ||
Comment 12•11 years ago
|
||
In that case, here we go. Still with #if 0, because I believe that commenting out code is generally bad style.
Attachment #805911 -
Attachment is obsolete: true
Attachment #806579 -
Flags: review?(mak77)
Updated•11 years ago
|
Attachment #806579 -
Flags: review?(mak77) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/ad57b713ac46
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 14•11 years ago
|
||
Same one, without the typo. Sorry about that.
Attachment #806579 -
Attachment is obsolete: true
Attachment #807181 -
Flags: review+
Comment 15•11 years ago
|
||
Original push backed out for bustage. https://hg.mozilla.org/integration/fx-team/rev/58f289272bde Fixed patch landed. https://hg.mozilla.org/integration/fx-team/rev/2d5083a119eb
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2d5083a119eb
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla27
Assignee | ||
Comment 17•11 years ago
|
||
Comment on attachment 807181 [details] [diff] [review] Moving the warnings to mozStorage logging, v4 [Approval Request Comment] Bug caused by (feature/regressing bug #): Bug 911109. User impact if declined: Console spam upon shutdown. Testing completed (on m-c, etc.): This has been on m-c for a few days. Risk to taking this patch (and alternatives if risky): This patch just changes logging. No risk I can imagine. String or IDL/UUID changes made by this patch: None.
Attachment #807181 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #807181 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 18•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/8de120cd08dc
status-firefox26:
--- → fixed
status-firefox27:
--- → fixed
Assignee | ||
Comment 19•11 years ago
|
||
I believe that this shouldn't be tracked anymore, shouldn't it?
You need to log in
before you can comment on or make changes to this bug.
Description
•