Qt-interest Archive, January 2008
Crash on QApplication::exec()
Message 1 in thread
I'm having a lot of trouble tracking down where this crash is
happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
my QMainWindow flash up on to the screen. I'm not passing any
arguments when running the executable, also. I'm not sure what else
information may or may not be helpful, so here's a copy of the stack
trace after the crash, courtesy of gdb. *Any* opinions or suggestions
are more than welcome.
Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
Segmentation fault.)
23 QString::fromLocal8Bit()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
0x00002b254d91ec29
22 QCoreApplication::arguments()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
0x00002b254d9986dc
21 sm_performSaveYourself()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
0x00002b254b16b144
20 sm_saveYourselfCallback()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
0x00002b254b16bc87
19 _SmcProcessMessage() 0x00002b254bc04782
18 IceProcessMessages() 0x00002b254be180eb
17 QSmSocketReceiver::qt_metacall()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-shared/qapplication_x11.moc:63
0x00002b254b164cb0
16 QMetaObject::activate()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:3081
0x00002b254d9a7872
15 QSocketNotifier::activated()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-shared/moc_qsocketnotifier.cpp:80
0x00002b254d9c38ee
14 QSocketNotifier::event()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
0x00002b254d9ae47f
13 QApplicationPrivate::notify_helper()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:3556
0x00002b254b11bc4c
12 QApplication::notify()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:3497
0x00002b254b11dd59
11 QCoreApplication::notifyInternal()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
0x00002b254d996620
10 socketNotifierSourceDispatch()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qcoreapplication.h:200
0x00002b254d9b7e8b
9 g_main_context_dispatch() 0x00002b254e2a2fd3
8 <symbol is not available> 0x00002b254e2a62dd
7 g_main_context_iteration() 0x00002b254e2a680e
6 QEventDispatcherGlib::processEvents()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
0x00002b254d9b7fb0
5 QGuiEventDispatcherGlib::processEvents()
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
0x00002b254b1944df
4 QEventLoop::processEvents()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qeventloop.cpp:140
0x00002b254d995cb8
3 QEventLoop::exec()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qeventloop.cpp:186
0x00002b254d995dc9
2 QCoreApplication::exec()
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
0x00002b254d9981de
1 main() 0x0000000000416a7a
--
[ signature omitted ]
Message 2 in thread
It would help to post some code as well...
Scott
> -----Original Message-----
> From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> Sent: Wednesday, January 23, 2008 9:25 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Crash on QApplication::exec()
>
> I'm having a lot of trouble tracking down where this crash is
> happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
> my QMainWindow flash up on to the screen. I'm not passing any
> arguments when running the executable, also. I'm not sure what else
> information may or may not be helpful, so here's a copy of the stack
> trace after the crash, courtesy of gdb. *Any* opinions or suggestions
> are more than welcome.
>
> Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> Segmentation fault.)
> 23 QString::fromLocal8Bit()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> 0x00002b254d91ec29
> 22 QCoreApplication::arguments()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> 0x00002b254d9986dc
> 21 sm_performSaveYourself()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> 0x00002b254b16b144
> 20 sm_saveYourselfCallback()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> 0x00002b254b16bc87
> 19 _SmcProcessMessage() 0x00002b254bc04782
> 18 IceProcessMessages() 0x00002b254be180eb
> 17 QSmSocketReceiver::qt_metacall()
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> shared/qapplication_x11.moc:63
> 0x00002b254b164cb0
> 16 QMetaObject::activate()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
1
> 0x00002b254d9a7872
> 15 QSocketNotifier::activated()
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> shared/moc_qsocketnotifier.cpp:80
> 0x00002b254d9c38ee
> 14 QSocketNotifier::event()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> 0x00002b254d9ae47f
> 13 QApplicationPrivate::notify_helper()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
56
> 0x00002b254b11bc4c
> 12 QApplication::notify()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
97
> 0x00002b254b11dd59
> 11 QCoreApplication::notifyInternal()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> 0x00002b254d996620
> 10 socketNotifierSourceDispatch()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> 0x00002b254d9b7e8b
> 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> 8 <symbol is not available> 0x00002b254e2a62dd
> 7 g_main_context_iteration() 0x00002b254e2a680e
> 6 QEventDispatcherGlib::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> 0x00002b254d9b7fb0
> 5 QGuiEventDispatcherGlib::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> 0x00002b254b1944df
> 4 QEventLoop::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> 0x00002b254d995cb8
> 3 QEventLoop::exec()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> 0x00002b254d995dc9
> 2 QCoreApplication::exec()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> 0x00002b254d9981de
> 1 main() 0x0000000000416a7a
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 3 in thread
Just the words I didn't want to hear :)
I'll see if I can put something small together.. Unfortunately, it's
not something I know how to repeat.
On Jan 23, 2008 9:39 PM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx> wrote:
> It would help to post some code as well...
>
> Scott
>
>
> > -----Original Message-----
> > From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> > Sent: Wednesday, January 23, 2008 9:25 PM
> > To: qt-interest@xxxxxxxxxxxxx
> > Subject: Crash on QApplication::exec()
> >
> > I'm having a lot of trouble tracking down where this crash is
> > happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
> > my QMainWindow flash up on to the screen. I'm not passing any
> > arguments when running the executable, also. I'm not sure what else
> > information may or may not be helpful, so here's a copy of the stack
> > trace after the crash, courtesy of gdb. *Any* opinions or suggestions
> > are more than welcome.
> >
> > Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> > Segmentation fault.)
> > 23 QString::fromLocal8Bit()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> > 0x00002b254d91ec29
> > 22 QCoreApplication::arguments()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> > 0x00002b254d9986dc
> > 21 sm_performSaveYourself()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> > 0x00002b254b16b144
> > 20 sm_saveYourselfCallback()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> > 0x00002b254b16bc87
> > 19 _SmcProcessMessage() 0x00002b254bc04782
> > 18 IceProcessMessages() 0x00002b254be180eb
> > 17 QSmSocketReceiver::qt_metacall()
> > /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> > shared/qapplication_x11.moc:63
> > 0x00002b254b164cb0
> > 16 QMetaObject::activate()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
> 1
> > 0x00002b254d9a7872
> > 15 QSocketNotifier::activated()
> > /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> > shared/moc_qsocketnotifier.cpp:80
> > 0x00002b254d9c38ee
> > 14 QSocketNotifier::event()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> > 0x00002b254d9ae47f
> > 13 QApplicationPrivate::notify_helper()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
> 56
> > 0x00002b254b11bc4c
> > 12 QApplication::notify()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
> 97
> > 0x00002b254b11dd59
> > 11 QCoreApplication::notifyInternal()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> > 0x00002b254d996620
> > 10 socketNotifierSourceDispatch()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> > 0x00002b254d9b7e8b
> > 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> > 8 <symbol is not available> 0x00002b254e2a62dd
> > 7 g_main_context_iteration() 0x00002b254e2a680e
> > 6 QEventDispatcherGlib::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> > 0x00002b254d9b7fb0
> > 5 QGuiEventDispatcherGlib::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> > 0x00002b254b1944df
> > 4 QEventLoop::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> > 0x00002b254d995cb8
> > 3 QEventLoop::exec()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> > 0x00002b254d995dc9
> > 2 QCoreApplication::exec()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> > 0x00002b254d9981de
> > 1 main() 0x0000000000416a7a
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 4 in thread
> -----Original Message-----
> From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> Sent: Thursday, 24 January 2008 13:25
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Crash on QApplication::exec()
>
>
> I'm having a lot of trouble tracking down where this crash is
> happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
> my QMainWindow flash up on to the screen. I'm not passing any
> arguments when running the executable, also. I'm not sure what else
> information may or may not be helpful, so here's a copy of the stack
> trace after the crash, courtesy of gdb. *Any* opinions or suggestions
> are more than welcome.
>
> Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> Segmentation fault.)
> 23 QString::fromLocal8Bit()
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstrin
> g.cpp:3360
> 0x00002b254d91ec29
> 22 QCoreApplication::arguments()
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qcore
> application.cpp:1713
> 0x00002b254d9986dc
> 21 sm_performSaveYourself()
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplicat
> ion_x11.cpp:4921
> 0x00002b254b16b144
> 20 sm_saveYourselfCallback()
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplicat
> ion_x11.cpp:4904
> 0x00002b254b16bc87
<snipped>
Hi Ray,
It looks like you are calling QCoreApplication::arguments(). I think this
would only fail if the argv and argc were not passed correctly in the
program's main function?
Hope that helps,
Tony Rietwyk
--
[ signature omitted ]
Message 5 in thread
Are you by anychance deriving from QApplication?
If so... make sure argc is a reference ..
Scott
> -----Original Message-----
> From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> Sent: Wednesday, January 23, 2008 9:25 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Crash on QApplication::exec()
>
> I'm having a lot of trouble tracking down where this crash is
> happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
> my QMainWindow flash up on to the screen. I'm not passing any
> arguments when running the executable, also. I'm not sure what else
> information may or may not be helpful, so here's a copy of the stack
> trace after the crash, courtesy of gdb. *Any* opinions or suggestions
> are more than welcome.
>
> Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> Segmentation fault.)
> 23 QString::fromLocal8Bit()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> 0x00002b254d91ec29
> 22 QCoreApplication::arguments()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> 0x00002b254d9986dc
> 21 sm_performSaveYourself()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> 0x00002b254b16b144
> 20 sm_saveYourselfCallback()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> 0x00002b254b16bc87
> 19 _SmcProcessMessage() 0x00002b254bc04782
> 18 IceProcessMessages() 0x00002b254be180eb
> 17 QSmSocketReceiver::qt_metacall()
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> shared/qapplication_x11.moc:63
> 0x00002b254b164cb0
> 16 QMetaObject::activate()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
1
> 0x00002b254d9a7872
> 15 QSocketNotifier::activated()
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> shared/moc_qsocketnotifier.cpp:80
> 0x00002b254d9c38ee
> 14 QSocketNotifier::event()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> 0x00002b254d9ae47f
> 13 QApplicationPrivate::notify_helper()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
56
> 0x00002b254b11bc4c
> 12 QApplication::notify()
>
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
97
> 0x00002b254b11dd59
> 11 QCoreApplication::notifyInternal()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> 0x00002b254d996620
> 10 socketNotifierSourceDispatch()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> 0x00002b254d9b7e8b
> 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> 8 <symbol is not available> 0x00002b254e2a62dd
> 7 g_main_context_iteration() 0x00002b254e2a680e
> 6 QEventDispatcherGlib::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> 0x00002b254d9b7fb0
> 5 QGuiEventDispatcherGlib::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> 0x00002b254b1944df
> 4 QEventLoop::processEvents()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> 0x00002b254d995cb8
> 3 QEventLoop::exec()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> 0x00002b254d995dc9
> 2 QCoreApplication::exec()
> /home/roy/qt-x11-opensource-src-
> 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> 0x00002b254d9981de
> 1 main() 0x0000000000416a7a
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 6 in thread
I was, in fact, deriving from QApplication. This was bad form on my
part, so I moved everything into a separate widget and started using
the standard QApplication instead of my derived class. After I did
that, the problem was fixed.
Thank you!!
On Jan 23, 2008 10:29 PM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx> wrote:
> Are you by anychance deriving from QApplication?
>
> If so... make sure argc is a reference ..
>
> Scott
>
> > -----Original Message-----
> > From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> > Sent: Wednesday, January 23, 2008 9:25 PM
> > To: qt-interest@xxxxxxxxxxxxx
> > Subject: Crash on QApplication::exec()
> >
>
> > I'm having a lot of trouble tracking down where this crash is
> > happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can see
> > my QMainWindow flash up on to the screen. I'm not passing any
> > arguments when running the executable, also. I'm not sure what else
> > information may or may not be helpful, so here's a copy of the stack
> > trace after the crash, courtesy of gdb. *Any* opinions or suggestions
> > are more than welcome.
> >
> > Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> > Segmentation fault.)
> > 23 QString::fromLocal8Bit()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> > 0x00002b254d91ec29
> > 22 QCoreApplication::arguments()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> > 0x00002b254d9986dc
> > 21 sm_performSaveYourself()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> > 0x00002b254b16b144
> > 20 sm_saveYourselfCallback()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> > 0x00002b254b16bc87
> > 19 _SmcProcessMessage() 0x00002b254bc04782
> > 18 IceProcessMessages() 0x00002b254be180eb
> > 17 QSmSocketReceiver::qt_metacall()
> > /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> > shared/qapplication_x11.moc:63
> > 0x00002b254b164cb0
> > 16 QMetaObject::activate()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
> 1
> > 0x00002b254d9a7872
> > 15 QSocketNotifier::activated()
> > /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> > shared/moc_qsocketnotifier.cpp:80
> > 0x00002b254d9c38ee
> > 14 QSocketNotifier::event()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> > 0x00002b254d9ae47f
> > 13 QApplicationPrivate::notify_helper()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
> 56
> > 0x00002b254b11bc4c
> > 12 QApplication::notify()
> >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
> 97
> > 0x00002b254b11dd59
> > 11 QCoreApplication::notifyInternal()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> > 0x00002b254d996620
> > 10 socketNotifierSourceDispatch()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> > 0x00002b254d9b7e8b
> > 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> > 8 <symbol is not available> 0x00002b254e2a62dd
> > 7 g_main_context_iteration() 0x00002b254e2a680e
> > 6 QEventDispatcherGlib::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> > 0x00002b254d9b7fb0
> > 5 QGuiEventDispatcherGlib::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> > 0x00002b254b1944df
> > 4 QEventLoop::processEvents()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> > 0x00002b254d995cb8
> > 3 QEventLoop::exec()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> > 0x00002b254d995dc9
> > 2 QCoreApplication::exec()
> > /home/roy/qt-x11-opensource-src-
> > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> > 0x00002b254d9981de
> > 1 main() 0x0000000000416a7a
> >
>
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 7 in thread
What was happening.. was the QApplication base class can/will modify the
argc value... But if your constructor is that of a non-ref the value
change is lost.
Ane will cause a crash later on.
Scott
> -----Original Message-----
> From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> Sent: Thursday, January 24, 2008 1:54 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: Crash on QApplication::exec()
>
> I was, in fact, deriving from QApplication. This was bad form on my
> part, so I moved everything into a separate widget and started using
> the standard QApplication instead of my derived class. After I did
> that, the problem was fixed.
>
> Thank you!!
>
>
>
> On Jan 23, 2008 10:29 PM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx>
> wrote:
> > Are you by anychance deriving from QApplication?
> >
> > If so... make sure argc is a reference ..
> >
> > Scott
> >
> > > -----Original Message-----
> > > From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> > > Sent: Wednesday, January 23, 2008 9:25 PM
> > > To: qt-interest@xxxxxxxxxxxxx
> > > Subject: Crash on QApplication::exec()
> > >
> >
> > > I'm having a lot of trouble tracking down where this crash is
> > > happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can
see
> > > my QMainWindow flash up on to the screen. I'm not passing any
> > > arguments when running the executable, also. I'm not sure what
else
> > > information may or may not be helpful, so here's a copy of the
stack
> > > trace after the crash, courtesy of gdb. *Any* opinions or
suggestions
> > > are more than welcome.
> > >
> > > Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> > > Segmentation fault.)
> > > 23 QString::fromLocal8Bit()
> > >
> >
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> > > 0x00002b254d91ec29
> > > 22 QCoreApplication::arguments()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> > > 0x00002b254d9986dc
> > > 21 sm_performSaveYourself()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> > > 0x00002b254b16b144
> > > 20 sm_saveYourselfCallback()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> > > 0x00002b254b16bc87
> > > 19 _SmcProcessMessage() 0x00002b254bc04782
> > > 18 IceProcessMessages() 0x00002b254be180eb
> > > 17 QSmSocketReceiver::qt_metacall()
> > > /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> > > shared/qapplication_x11.moc:63
> > > 0x00002b254b164cb0
> > > 16 QMetaObject::activate()
> > >
> >
/home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
> > 1
> > > 0x00002b254d9a7872
> > > 15 QSocketNotifier::activated()
> > > /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> > > shared/moc_qsocketnotifier.cpp:80
> > > 0x00002b254d9c38ee
> > > 14 QSocketNotifier::event()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> > > 0x00002b254d9ae47f
> > > 13 QApplicationPrivate::notify_helper()
> > >
> >
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
> > 56
> > > 0x00002b254b11bc4c
> > > 12 QApplication::notify()
> > >
> >
/home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
> > 97
> > > 0x00002b254b11dd59
> > > 11 QCoreApplication::notifyInternal()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> > > 0x00002b254d996620
> > > 10 socketNotifierSourceDispatch()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> > > 0x00002b254d9b7e8b
> > > 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> > > 8 <symbol is not available> 0x00002b254e2a62dd
> > > 7 g_main_context_iteration() 0x00002b254e2a680e
> > > 6 QEventDispatcherGlib::processEvents()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> > > 0x00002b254d9b7fb0
> > > 5 QGuiEventDispatcherGlib::processEvents()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> > > 0x00002b254b1944df
> > > 4 QEventLoop::processEvents()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> > > 0x00002b254d995cb8
> > > 3 QEventLoop::exec()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> > > 0x00002b254d995dc9
> > > 2 QCoreApplication::exec()
> > > /home/roy/qt-x11-opensource-src-
> > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> > > 0x00002b254d9981de
> > > 1 main() 0x0000000000416a7a
> > >
> >
> > > --
> > > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with
> > > "unsubscribe" in the subject or the body.
> > > List archive and information:
http://lists.trolltech.com/qt-interest/
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with
> "unsubscribe" in the subject or the body.
> > List archive and information:
http://lists.trolltech.com/qt-interest/
> >
> >
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 8 in thread
I believe that's exactly what was happening. I wasn't modifying (or
even using) the arguments list.. But the argc value wasn't a
reference, so I think that may have been the problem. The program
worked great for a good number of months prior to this crash. I think
the introduction of a QSettings object may have encouraged the crash
somehow.
Roy
On Jan 24, 2008 3:45 PM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx> wrote:
> What was happening.. was the QApplication base class can/will modify the
> argc value... But if your constructor is that of a non-ref the value
> change is lost.
>
> Ane will cause a crash later on.
>
> Scott
>
> > -----Original Message-----
> > From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> > Sent: Thursday, January 24, 2008 1:54 PM
> > To: qt-interest@xxxxxxxxxxxxx
>
> > Subject: Re: Crash on QApplication::exec()
> >
> > I was, in fact, deriving from QApplication. This was bad form on my
> > part, so I moved everything into a separate widget and started using
> > the standard QApplication instead of my derived class. After I did
> > that, the problem was fixed.
> >
> > Thank you!!
> >
> >
> >
> > On Jan 23, 2008 10:29 PM, Scott Aron Bloom <Scott.Bloom@xxxxxxxxxxxx>
> > wrote:
> > > Are you by anychance deriving from QApplication?
> > >
> > > If so... make sure argc is a reference ..
> > >
> > > Scott
> > >
> > > > -----Original Message-----
> > > > From: Roy Donaldson [mailto:makael47@xxxxxxxxx]
> > > > Sent: Wednesday, January 23, 2008 9:25 PM
> > > > To: qt-interest@xxxxxxxxxxxxx
> > > > Subject: Crash on QApplication::exec()
> > > >
> > >
> > > > I'm having a lot of trouble tracking down where this crash is
> > > > happening. Can anyone help? This is on Ubuntu Gutsy 64-bit.. I can
> see
> > > > my QMainWindow flash up on to the screen. I'm not passing any
> > > > arguments when running the executable, also. I'm not sure what
> else
> > > > information may or may not be helpful, so here's a copy of the
> stack
> > > > trace after the crash, courtesy of gdb. *Any* opinions or
> suggestions
> > > > are more than welcome.
> > > >
> > > > Thread [1] (Suspended: Signal 'SIGSEGV' received. Description:
> > > > Segmentation fault.)
> > > > 23 QString::fromLocal8Bit()
> > > >
> > >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/tools/qstring.cpp:3360
> > > > 0x00002b254d91ec29
> > > > 22 QCoreApplication::arguments()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:1713
> > > > 0x00002b254d9986dc
> > > > 21 sm_performSaveYourself()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4921
> > > > 0x00002b254b16b144
> > > > 20 sm_saveYourselfCallback()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/gui/kernel/qapplication_x11.cpp:4904
> > > > 0x00002b254b16bc87
> > > > 19 _SmcProcessMessage() 0x00002b254bc04782
> > > > 18 IceProcessMessages() 0x00002b254be180eb
> > > > 17 QSmSocketReceiver::qt_metacall()
> > > > /home/roy/qt-x11-opensource-src-4.3.3/src/gui/.moc/release-
> > > > shared/qapplication_x11.moc:63
> > > > 0x00002b254b164cb0
> > > > 16 QMetaObject::activate()
> > > >
> > >
> /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/kernel/qobject.cpp:308
> > > 1
> > > > 0x00002b254d9a7872
> > > > 15 QSocketNotifier::activated()
> > > > /home/roy/qt-x11-opensource-src-4.3.3/src/corelib/.moc/release-
> > > > shared/moc_qsocketnotifier.cpp:80
> > > > 0x00002b254d9c38ee
> > > > 14 QSocketNotifier::event()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qsocketnotifier.cpp:317
> > > > 0x00002b254d9ae47f
> > > > 13 QApplicationPrivate::notify_helper()
> > > >
> > >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:35
> > > 56
> > > > 0x00002b254b11bc4c
> > > > 12 QApplication::notify()
> > > >
> > >
> /home/roy/qt-x11-opensource-src-4.3.3/src/gui/kernel/qapplication.cpp:34
> > > 97
> > > > 0x00002b254b11dd59
> > > > 11 QCoreApplication::notifyInternal()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:530
> > > > 0x00002b254d996620
> > > > 10 socketNotifierSourceDispatch()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qcoreapplication.h:200
> > > > 0x00002b254d9b7e8b
> > > > 9 g_main_context_dispatch() 0x00002b254e2a2fd3
> > > > 8 <symbol is not available> 0x00002b254e2a62dd
> > > > 7 g_main_context_iteration() 0x00002b254e2a680e
> > > > 6 QEventDispatcherGlib::processEvents()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qeventdispatcher_glib.cpp:338
> > > > 0x00002b254d9b7fb0
> > > > 5 QGuiEventDispatcherGlib::processEvents()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/gui/kernel/qguieventdispatcher_glib.cpp:191
> > > > 0x00002b254b1944df
> > > > 4 QEventLoop::processEvents()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qeventloop.cpp:140
> > > > 0x00002b254d995cb8
> > > > 3 QEventLoop::exec()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qeventloop.cpp:186
> > > > 0x00002b254d995dc9
> > > > 2 QCoreApplication::exec()
> > > > /home/roy/qt-x11-opensource-src-
> > > > 4.3.3/src/corelib/kernel/qcoreapplication.cpp:759
> > > > 0x00002b254d9981de
> > > > 1 main() 0x0000000000416a7a
> > > >
> > >
> > > > --
> > > > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with
> > > > "unsubscribe" in the subject or the body.
> > > > List archive and information:
> http://lists.trolltech.com/qt-interest/
> > >
> > > --
> > > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with
> > "unsubscribe" in the subject or the body.
> > > List archive and information:
> http://lists.trolltech.com/qt-interest/
> > >
> > >
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]