Bug 190716 - crash on startup with Alarm script, signal 11 (SIGSEGV).
Summary: crash on startup with Alarm script, signal 11 (SIGSEGV).
Status: RESOLVED DUPLICATE of bug 182810
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.0.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-26 15:42 UTC by Justin Hull
Modified: 2009-04-26 16:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Hull 2009-04-26 15:42:00 UTC
Version:           2.0.2 (using KDE 4.2.1)
OS:                Linux
Installed from:    Ubuntu Packages

Amarok recently upgraded to 2.0.2 when I upgraded to Ubuntu 9.04 (using kde desktop).  I added a script 'Alarm' and the program requested a restart.  I restarted Amarok and the program would load to the point where I saw the main form, but then it would crash.

It took some effort to figure out, but I discovered that the 'Alarm' script would cause the problem.  I deleted the folder from the scripts folder and the application was now able to run.  When I restored the script, the application fails again.  To verify, I once again remove the alarm script and I can start up Amarok.

I am running unbuntu 9.04 64bit.

To reproduce, add the Alarm script to amarok and restart program.  Expected result will be the crash.

I've included the back trace along with the start up messages for a bad run and a good one.

--------------- bad start up ----------------------
localuser@localdesktop:~/Documents$ amarok
amarok(28972) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
Object::connect: No such slot MainWindow::showStatistics() in /build/buildd/amarok-2.0.2mysql5.1.30/amarok-2.0.2/src/MainWindow.cpp:692
Object::connect:  (receiver name: 'MainWindow')
QLayout: Attempting to add QLayout "" to MainWindow "MainWindow", which already has a layout
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
amarok(28972) Plasma::Applet::save: saving to "1"
amarok(28972) Context::ContextView::setContainment: "" Line:  599
amarok(28972) Plasma::ThemePrivate::config: using theme for app "amarok"
amarok(28972) Plasma::Applet::save: saving to "2"
amarok(28972) Plasma::Applet::save: saving to "3"
amarok(28972) Plasma::Applet::save: saving to "4"
amarok(28972) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(28972) Context::ColumnContainment::insertInGrid: "" Line:  603
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
Object::connect: No such slot FileBrowser::Widget::setDir( const QString& ) in /build/buildd/amarok-2.0.2mysql5.1.30/amarok-2.0.2/src/browsers/filebrowser/FileBrowser.cpp:112
Object::connect:  (sender name:   'KBookmarkHandler')
Object::connect:  (receiver name: 'FileBrowser::Widget')
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
amarok(28972) MagnatuneConfig::load: load
amarok(28972) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(28972) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(28972) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x3a00064
localuser@localdesktop:~/Documents$ KCrash: Application 'amarok' crashing...
sock_file=/home/localuser/.kde/socket-localdesktop/kdeinit4__0

---------- Working startup ------------------------

localuser@localdesktop:~/Documents$ amarok
amarok(29496) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
Object::connect: No such slot MainWindow::showStatistics() in /build/buildd/amarok-2.0.2mysql5.1.30/amarok-2.0.2/src/MainWindow.cpp:692
Object::connect:  (receiver name: 'MainWindow')
QLayout: Attempting to add QLayout "" to MainWindow "MainWindow", which already has a layout
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
amarok(29496) Plasma::Applet::save: saving to "1"
amarok(29496) Context::ContextView::setContainment: "" Line:  599
amarok(29496) Plasma::ThemePrivate::config: using theme for app "amarok"
amarok(29496) Plasma::Applet::save: saving to "2"
amarok(29496) Plasma::Applet::save: saving to "3"
amarok(29496) Plasma::Applet::save: saving to "4"
amarok(29496) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(29496) Context::ColumnContainment::insertInGrid: "" Line:  603
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
Object::connect: No such slot FileBrowser::Widget::setDir( const QString& ) in /build/buildd/amarok-2.0.2mysql5.1.30/amarok-2.0.2/src/browsers/filebrowser/FileBrowser.cpp:112
Object::connect:  (sender name:   'KBookmarkHandler')
Object::connect:  (receiver name: 'FileBrowser::Widget')
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
amarok(29496) MagnatuneConfig::load: load
amarok(29496) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(29496) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok(29496) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x4200064
localuser@localdesktop:~/Documents$ amarok(29496) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
QPainter::begin: Cannot paint on a null pixmap


------------- Back Trace -----------------------------

Application: Amarok (amarok), signal SIGSEGV
0x00007ff2abe29d21 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 28972)]

Thread 7 (Thread 0x7ff2993ee950 (LWP 28973)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217
#1  0x00007ff29d6aaf91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7ff29837e950 (LWP 28974)):
#0  0x00007ff2a4cf1bd1 in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#1  0x00007ff2a4f7c7a0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ff29837dec0 in ?? ()
#3  0x00007ff2a4f7c768 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x0000000100000001 in ?? ()
#5  0x00007ff2a4d039a0 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x0000000001c3cc58 in ?? ()
#7  0x00007ff2a4d1bd29 in g_thread_self () from /usr/lib/libglib-2.0.so.0
#8  0x00007ff2a4cf6a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0x00007ff2aca1ce8e in QEventDispatcherGlib::processEvents (this=0x1b62b60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325
#10 0x00007ff2ac9f2002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1741168752}) at kernel/qeventloop.cpp:149
#11 0x00007ff2ac9f23cd in QEventLoop::exec (this=0x7ff29837dfd0, flags={i = -1741168672}) at kernel/qeventloop.cpp:200
#12 0x00007ff2ac9079b8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:481
#13 0x00007ff29d90662c in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#14 0x00007ff2ac90a952 in QThreadPrivate::start (arg=0x1b63ce0) at thread/qthread_unix.cpp:189
#15 0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#16 0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()
Current language:  auto; currently asm

Thread 5 (Thread 0x7ff29776c950 (LWP 28980)):
#0  0x00007ff2abe5e496 in *__GI___poll (fds=0x7ff29776bf60, nfds=1, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff297978969 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff296d65950 (LWP 28981)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007ff29d6bc353 in ?? () from /usr/lib/libxine.so.1
#2  0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()
Current language:  auto; currently c

Thread 3 (Thread 0x7ff296564950 (LWP 28983)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007ff2ac90b939 in QWaitCondition::wait (this=0x38fb888, mutex=0x2545a10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007ff2a91805e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x38fb860, th=0x221f830) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007ff2a9182d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x38fbc80, th=0x221f830) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007ff2a918130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff296564020, parent=0x38fb860, th=0x221f830) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:87
#5  0x00007ff2a9181769 in ThreadWeaver::Thread::run (this=0x221f830) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:142
#6  0x00007ff2ac90a952 in QThreadPrivate::start (arg=0x221f830) at thread/qthread_unix.cpp:189
#7  0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#8  0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()
Current language:  auto; currently asm

Thread 2 (Thread 0x7ff2875aa950 (LWP 28984)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007ff2ac90b939 in QWaitCondition::wait (this=0x38fb888, mutex=0x2545a10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007ff2a91805e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x38fb860, th=0x38ff660) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007ff2a9182d93 in ThreadWeaver::WorkingHardState::applyForWork (this=0x38fbc80, th=0x38ff660) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007ff2a918130f in ThreadWeaver::ThreadRunHelper::run (this=0x7ff2875aa020, parent=0x38fb860, th=0x38ff660) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:87
#5  0x00007ff2a9181769 in ThreadWeaver::Thread::run (this=0x38ff660) at /build/buildd/kde4libs-4.2.2/threadweaver/Weaver/Thread.cpp:142
#6  0x00007ff2ac90a952 in QThreadPrivate::start (arg=0x38ff660) at thread/qthread_unix.cpp:189
#7  0x00007ff2ae6733ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#8  0x00007ff2abe67fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff2af7c8790 (LWP 28972)):
[KCrash Handler]
#5  0x00007ff2a6b48c37 in QFormInternal::domPropertyToVariant () from /usr/lib/libamarokplasma.so.2
#6  0x00007ff2a6aeeb39 in QFormInternal::QAbstractFormBuilder::toVariant () from /usr/lib/libamarokplasma.so.2
#7  0x00007ff2a6b07897 in QFormInternal::QFormBuilder::applyProperties () from /usr/lib/libamarokplasma.so.2
#8  0x00007ff2a6ae5c6f in QFormInternal::FormBuilderPrivate::applyProperties () from /usr/lib/libamarokplasma.so.2
#9  0x00007ff2a6af2106 in QFormInternal::QAbstractFormBuilder::create () from /usr/lib/libamarokplasma.so.2
#10 0x00007ff2a6b08f11 in QFormInternal::QFormBuilder::create () from /usr/lib/libamarokplasma.so.2
#11 0x00007ff2a6ae41ae in QFormInternal::FormBuilderPrivate::create () from /usr/lib/libamarokplasma.so.2
#12 0x00007ff2a6af1707 in QFormInternal::QAbstractFormBuilder::create () from /usr/lib/libamarokplasma.so.2
#13 0x00007ff2a6ae468b in QFormInternal::FormBuilderPrivate::create () from /usr/lib/libamarokplasma.so.2
#14 0x00007ff2866364ec in QFormInternal::QAbstractFormBuilder::load () from /usr/lib/kde4/plugins/script/libqtscript_uitools.so
#15 0x00007ff28661d61d in QUiLoader::load () from /usr/lib/kde4/plugins/script/libqtscript_uitools.so
#16 0x00007ff286619fcf in ?? () from /usr/lib/kde4/plugins/script/libqtscript_uitools.so
#17 0x00007ff2a856257c in QScript::CFunction::execute (this=0x3951e20, context=0x24acba0) at qscriptfunction.cpp:104
#18 0x00007ff2a85295ce in QScriptContextPrivate::execute (this=0x247ccd0, code=0x2808820) at qscriptcontext_p.cpp:793
#19 0x00007ff2a855a6b5 in QScript::EvalFunction::evaluate (this=<value optimized out>, context=0x247ccd0, contents=@0x7fffb790ac00, lineNo=<value optimized out>, fileName=<value optimized out>, 
    calledFromScript=false) at qscriptengine_p.cpp:366
#20 0x00007ff2a853b584 in QScriptEngine::evaluate (this=<value optimized out>, program=@0x398f1f0, fileName=<value optimized out>, lineNumber=0) at qscriptengine.cpp:944
#21 0x00007ff2aedafa2d in ScriptManager::slotRunScript () from /usr/lib/libamaroklib.so.1
#22 0x00007ff2aedb07a2 in ScriptManager::slotConfigChanged () from /usr/lib/libamaroklib.so.1
#23 0x00007ff2aedb0ef8 in ScriptManager::findScripts () from /usr/lib/libamaroklib.so.1
#24 0x00007ff2aedb2348 in ScriptManager::qt_metacall () from /usr/lib/libamaroklib.so.1
#25 0x00007ff2aca091f2 in QMetaObject::activate (sender=0x24cb0f0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x11) at kernel/qobject.cpp:3069
#26 0x00007ff2aca0e52f in QSingleShotTimer::timerEvent (this=0x24cb0f0) at kernel/qtimer.cpp:298
#27 0x00007ff2aca034d3 in QObject::event (this=0x24cb0f0, e=0x2249930) at kernel/qobject.cpp:1082
#28 0x00007ff2ad59c83d in QApplicationPrivate::notify_helper (this=0x1b651d0, receiver=0x24cb0f0, e=0x7fffb790b830) at kernel/qapplication.cpp:4084
#29 0x00007ff2ad5a4a2a in QApplication::notify (this=0x7fffb790bb30, receiver=0x24cb0f0, e=0x7fffb790b830) at kernel/qapplication.cpp:4049
#30 0x00007ff2af2ff26b in KApplication::notify (this=0x7fffb790bb30, receiver=0x24cb0f0, event=0x7fffb790b830) at /build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
#31 0x00007ff2ac9f375c in QCoreApplication::notifyInternal (this=0x7fffb790bb30, receiver=0x24cb0f0, event=0x7fffb790b830) at kernel/qcoreapplication.cpp:602
#32 0x00007ff2aca207f6 in QTimerInfoList::activateTimers (this=0x1b59060) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#33 0x00007ff2aca1cf0d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#34 0x00007ff2a4cf320a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0x00007ff2a4cf68e0 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0x00007ff2a4cf6a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0x00007ff2aca1ce6f in QEventDispatcherGlib::processEvents (this=0x1b34f50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#38 0x00007ff2ad634c9f in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#39 0x00007ff2ac9f2002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1215251808}) at kernel/qeventloop.cpp:149
#40 0x00007ff2ac9f23cd in QEventLoop::exec (this=0x7fffb790bae0, flags={i = -1215251728}) at kernel/qeventloop.cpp:200
#41 0x00007ff2ac9f4694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#42 0x0000000000533127 in _start ()
#0  0x00007ff2abe29d21 in nanosleep () from /lib/libc.so.6
Current language:  auto; currently c
Comment 1 Justin Hull 2009-04-26 16:03:45 UTC
I will continue to play around with this bug, but it is a problem because it occurs on start up.  I only figured out how to get around it because I'm a developer and looked into how I can change anything via command line options or manipulation of files/folders.  A typical user may not be so adept.  If possible it may be helpful to just disable a script if it causes a problem on start up or remove it with a warning.
Comment 2 Dario Andres 2009-04-26 16:05:03 UTC
Marking as duplicate of bug 182810
Thanks

*** This bug has been marked as a duplicate of bug 182810 ***