Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mozilla Firefox - failed to create encoder

1 view
Skip to first unread message

Shailendra Jain

unread,
Sep 26, 2008, 5:12:00 AM9/26/08
to dev-apps...@lists.mozilla.org
Hi,

   I have created the debug build of Mozilla Firefox on AIX. When I try to run the debug build, firefox is not coming up. Instead I get the below debug output, more specifically below 3 assertions. Can someone please advise what is going wrong ?

1. ASSERTION: failed to create encoder: '0', file
2. ASSERTION: unable to use nl_langinfo(CODESET): '0',
3. ASSERTION: unable to convert locale to charset using deprecated config: '0', file

Below is the complete debug output.

*** Registering Apprunner components (all right -- a generic module!)
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nsNativeComponentLoader: registering deferred (0)
###!!! ASSERTION: failed to create encoder: '0', file
/home/sjain/sb/ffox-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 371
Break: at file /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 371
###!!! ASSERTION: unable to use nl_langinfo(CODESET): '0', file
/home/sjain/sb/ffox1-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 305
Break: at file /home/sjain/sb/ffox-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 305
###!!! ASSERTION: unable to convert locale to charset using deprecated config: '0', file
/home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 129
Break: at file /home/sjain/sb/ffox-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp, line 129
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
/home/sjain/sb/ffox-dbg/mozilla/chrome/src/nsChromeRegistry.cpp, line 1252
GFX: dpi=96 t2p=0.0666667 p2t=15 depth=24
++WEBSHELL == 1
++DOMWINDOW == 1
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
/home/sjain/sb/ffox-dbg/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp, line 266
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
/home/sjain/sb/ffox-dbg/mozilla/xpfe/appshell/src/nsAppShellService.cpp, line 361
--WEBSHELL == 0
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
/home/sjain/sb/ffox-dbg/mozilla/xpfe/appshell/src/nsAppShellService.cpp, line 178
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
/home/sjain/sb/ffox-dbg/mozilla/toolkit/xre/nsAppRunner.cpp, line 2280
###!!! ASSERTION: Failed to create nsICloseAllWindows impl.: 'closer', file
/home/sjain/sb/ffox-dbg/mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 508
Break: at file /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 508
###!!! ASSERTION: Can't veto change!: 'Error', file
/home/sjain/sb/ffox1-dbg/mozilla/toolkit/xre/nsXREDirProvider.cpp, line 631
Break: at file /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/xre/nsXREDirProvider.cpp, line 631
WARNING: nsExceptionService ignoring thread destruction after shutdown, file
/home/sjain/sb/ffox-dbg/mozilla/xpcom/base/nsExceptionService.cpp, line 191
--DOMWINDOW == 0
JS engine warning: 3 atoms remain after destroying the JSRuntime.
                    These atoms may point to freed memory. Things reachable
                    through them have not been finalized.
nsStringStats
  => mAllocCount:           3324
  => mReallocCount:          833
  => mFreeCount:            3324
  => mShareCount:           1635
  => mAdoptCount:            880
  => mAdoptFreeCount:        879  --  LEAKED 1 !!!

[1] +  Done(1)                

Regards,
Shailendra


Boris Zbarsky

unread,
Sep 26, 2008, 9:39:13 AM9/26/08
to
Shailendra Jain wrote:
> 1. ASSERTION: failed to create encoder: '0', file

You should probably try stepping through
nsCharsetConverterManager::GetUnicodeEncoderRaw and seeing what things
look like there. In particular, what is aDest in that function? Is
MOZ_USE_NATIVE_UCONV defined? If so, does AIX have a functioning uconv?

My guess is that the answers are "yes" and "no" respectively....

-Boris

Shailendra Jain

unread,
Oct 3, 2008, 2:08:56 AM10/3/08
to Boris Zbarsky, dev-apps...@lists.mozilla.org

Hi Boris,

  I have checked whether MOZ_USE_NATIVE_UCONV is defined or not, looks like it is not defined.

 Could it be possible that I get the below error without defining MOZ_USE_NATIVE_UCONV.

###!!! ASSERTION: failed to create encoder: '0', file
> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,

> line 371
> Break: at file
> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,
> line 371
> ###!!! ASSERTION: unable to use nl_langinfo(CODESET): '0', file

> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,

> line 305
> Break: at file

> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,

> line 305
> ###!!! ASSERTION: unable to convert locale to charset using deprecated
> config: '0', file
> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,
> line 129
> Break: at file

> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,

> line 129
> WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file

> /home/sjain/sb/ffox1501201-dbg/mozilla/chrome/src/nsChromeRegistry.cpp,

> line 1252
> GFX: dpi=96 t2p=0.0666667 p2t=15 depth=24
> ++WEBSHELL == 1
> ++DOMWINDOW == 1
> WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file

> /home/sjain/sb/ffox1501201-dbg/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp,

> line 266
> WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file

> /home/sjain/sb/ffox1501201-dbg/mozilla/xpfe/appshell/src/nsAppShellService.cpp,

> line 361
> --WEBSHELL == 0
> WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file

> /home/sjain/sb/ffox1501201-dbg/mozilla/xpfe/appshell/src/nsAppShellService.cpp,

> line 178
> WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file

> /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/xre/nsAppRunner.cpp, line

> 2280
> ###!!! ASSERTION: Failed to create nsICloseAllWindows impl.: 'closer', file

> /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/components/startup/src/nsAppStartup.cpp,

> line 508
> Break: at file
> /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/components/startup/src/nsAppStartup.cpp,
> line 508
> ###!!! ASSERTION: Can't veto change!: 'Error', file

> /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/xre/nsXREDirProvider.cpp,

> line 631
> Break: at file
> /home/sjain/sb/ffox1501201-dbg/mozilla/toolkit/xre/nsXREDirProvider.cpp,
> line 631
> WARNING: nsExceptionService ignoring thread destruction after shutdown,
> file

> /home/sjain/sb/ffox1501201-dbg/mozilla/xpcom/base/nsExceptionService.cpp,

> line 191
> --DOMWINDOW == 0

Regards,
Shailendra


--- On Fri, 9/26/08, Boris Zbarsky <bzba...@mit.edu> wrote:
From: Boris Zbarsky <bzba...@mit.edu>
Subject: Re: Mozilla Firefox - failed to create encoder
To: dev-apps...@lists.mozilla.org
Date: Friday, September 26, 2008, 9:39 AM

-Boris
_______________________________________________
dev-apps-firefox mailing list
dev-apps...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-firefox


Boris Zbarsky

unread,
Oct 3, 2008, 12:41:52 PM10/3/08
to
Shailendra Jain wrote:
> I have checked whether MOZ_USE_NATIVE_UCONV is defined or not, looks like it is not defined.
>
> Could it be possible that I get the below error without defining MOZ_USE_NATIVE_UCONV.
>
> ###!!! ASSERTION: failed to create encoder: '0', file
>> /home/sjain/sb/ffox1501201-dbg/mozilla/intl/uconv/src/nsUNIXCharset.cpp,
>> line 371

Quite possibly. What's aCharset? Then again, I asked that already in
my previous post, so....

-Boris

Shailendra Jain

unread,
Oct 13, 2008, 7:39:09 AM10/13/08
to Boris Zbarsky, dev-apps...@lists.mozilla.org
Hi Boris,

    The aCharset value is ISO8859-1

    Does this cause any issue ?

Regards,
Shailendra

--- On Fri, 10/3/08, Boris Zbarsky <bzba...@mit.edu> wrote:
From: Boris Zbarsky <bzba...@mit.edu>
Subject: Re: Mozilla Firefox - failed to create encoder
To: dev-apps...@lists.mozilla.org

Date: Friday, October 3, 2008, 12:41 PM

-Boris

Boris Zbarsky

unread,
Oct 13, 2008, 10:35:39 AM10/13/08
to
Shailendra Jain wrote:
> The aCharset value is ISO8859-1
>
> Does this cause any issue ?

Sure. There is no such charset, so there can't be an encoder for it.
ISO-8859-1 would work better.

-Boris

Boris Zbarsky

unread,
Oct 13, 2008, 10:38:23 AM10/13/08
to
Boris Zbarsky wrote:
> Sure. There is no such charset, so there can't be an encoder for it.
> ISO-8859-1 would work better.

Then again, we have ISO8859-1 aliased to ISO-8859-1. So perhaps the
real issue is that someone somewhere along your callstack should be
resolving charset aliases.

-Boris

0 new messages