My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 63: ASSERTION: FormatStringFromName() without format parameters: use GetStringFromName() instead
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Feb 2008
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by simon.montagu, Feb 20, 2008
From https://bugzilla.mozilla.org/show_bug.cgi?id=418319

Description [reply] Carsten Book [:Tomcat]  2008-02-18 16:49:30 PST

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b4pre)
Gecko/2008021514 Firefox/3.0b4pre

Steps to reproduce:
* Install the Scribe Fire Extension
https://addons.mozilla.org/en-US/firefox/addon/1730
* Open this Extension (little icon in the status bar)
* Open/Close the Publishing Options
Assertion

-> ###!!! ASSERTION: FormatStringFromName() without format parameters: use
GetStringFromName() instead: 'aParams && aLength', file
/debug/mozilla/intl/strres/src/nsStringBundle.cpp, line 223

Comment #1 [reply] Gavin Sharp  2008-02-20 19:41:43 PST

The extension code defines:
performancingUI.getLocaleString(strName, formattingValues)
and passes (strName, formattingValues) directly to
<stringbundle>.getFormattedString() if formattingValues is defined, which calls
nsIStringBundleService::formatStringFromName.

The extension is full of calls to performancingUI.getLocaleString that pass in
an empty array as the "formattingValues" parameter. Since it isn't undefined,
it calls getFormattedString which calls formatStringFromName which produces the
assertion. The extension code should stop doing that.


Comment 1 by eapache, Feb 22, 2008
I can't seem to reproduce this. Which version of scribefire is it occurring in?
Comment 2 by eapache, Feb 22, 2008
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code