[Interest] Certain QTextCodecs causing crashes on Linux
Scott Aron Bloom
scott.bloom at onshorecs.com
Wed Jul 31 20:21:42 CEST 2013
As to the size of the codec.. Is there a way to tell the size?
The reason I ask, this functionality in the tool came from the applications need to allow the customer to set a Chinese codec, so that the customers mixed language text file could be read in.
You recommended, allow the user to set the codec from a pull down, since there was no realistic methodogy to determine the codec for the file.
I create the list, based on QTextCoded::availableCodecs, and let them select from that list.. Is there any way to know which ones are > 8 bit ??
Hrere is the traceback..
#0 0x0000003edaa328a5 in raise () from /lib64/libc.so.6
#1 0x0000003edaa34085 in abort () from /lib64/libc.so.6
#2 0x0000003edc25ea0f in g_assertion_message () from /lib64/libglib-2.0.so.0
#3 0x0000003edc25efb0 in g_assertion_message_expr () from /lib64/libglib-2.0.so.0
#4 0x0000003ee522562e in ?? () from /usr/lib64/libgconf-2.so.4
#5 0x0000003ee5227c38 in ?? () from /usr/lib64/libgconf-2.so.4
#6 0x0000003ee522906d in ?? () from /usr/lib64/libgconf-2.so.4
#7 0x0000003ee5229663 in gconf_client_get_bool () from /usr/lib64/libgconf-2.so.4
#8 0x00007ffff78b571c in ?? () from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#9 0x00007ffff789fd8a in QGtkStyle::styleHint(QStyle::StyleHint, QStyleOption const*, QWidget const*, QStyleHintReturn*) const () from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#10 0x00007ffff790f500 in ?? () from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#11 0x00007ffff79f8241 in QMessageBox::addButton(QMessageBox::StandardButton) ()
from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#12 0x00007ffff79fa14e in ?? () from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#13 0x00007ffff79fa28f in QMessageBox::warning(QWidget*, QString const&, QString const&, QFlags<QMessageBox::StandardButton>, QMessageBox::StandardButton) () from /usr/local/Trolltech/Qt-4.7.4/lib/libQtGui.so.4
#14 0x0000000000403a7f in main ()
-----Original Message-----
From: interest-bounces+scott.bloom=onshorecs.com at qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of Thiago Macieira
Sent: Wednesday, July 31, 2013 11:12 AM
To: interest at qt-project.org
Subject: Re: [Interest] Certain QTextCodecs causing crashes on Linux
On quarta-feira, 31 de julho de 2013 16:44:10, Scott Aron Bloom wrote:
> 20 QTextCodec::setCodecForLocale( codec );
> 21 QMessageBox::warning( NULL, argv[ 0 ], codecName );
> 22 return 0;
> 23 }
>
> When called with UTF-32 I get the following crash:
> [scott at localhost build]$ ./CodecTest UTF-32
Setting the codec for the locale on Unix to something that isn't 8-bit is an extremely bad idea.
Don't do it.
> GConf:ERROR:gconf-client.c:2021:gconf_client_lookup: assertion failed:
(last_slash != NULL)
Doesn't look like a Qt error. I don't know if glib assertions are fatal (I've seen many apps continue after printing assertions), so I can't tell whether this error is related to your crash or not. Can you pastebin a backtrace?
I also can't tell whether the problem that Karl linked to is relevant. GNOME's bugzilla seems to be down.
(http://downforeveryoneorjustme.com/bugzilla.gnome.org says "It's not just you! http://bugzilla.gnome.org looks down from here.")
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list