Bug 203249

Summary: Plasma weather applet crash when changing location [null QAbstractItemView::model, WeatherApplet::weatherContent, WeatherApplet::dataUpdated]
Product: [Unmaintained] plasma4 Reporter: Jason Stubbs <jasonbstubbs>
Component: widget-weatherAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, shawn.starr, vide80
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jason Stubbs 2009-08-10 02:43:50 UTC
Application that crashed: plasma-desktop
Version of the application: 0.3
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-gentoo-r4 x86_64

What I was doing when the application crashed:
After changing the location from "Melbourne, Australia" to "Melbourne International, Australia" then "Melbourne Grand Prix Circuit, Australia" and then back to "Melbourne, Australia" again, plasma crashed. Doing the same again did not result in another crash, so I guess there's a timing/race issue involved too.

 -- Backtrace:
Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  QAbstractItemView::model (this=0x0) at itemviews/qabstractitemview.h:348
#6  0x00007ff866792f3f in WeatherApplet::weatherContent (this=0x2603190, data=@0x5f9c710)
    at /var/tmp/portage/kde-base/kdeplasma-addons-4.3.0/work/kdeplasma-addons-4.3.0/applets/weather/weatherapplet.cpp:552
#7  0x00007ff8667975cd in WeatherApplet::dataUpdated (this=0x2603190, source=@0x7fff4f820970, data=@0x5f9c710)
    at /var/tmp/portage/kde-base/kdeplasma-addons-4.3.0/work/kdeplasma-addons-4.3.0/applets/weather/weatherapplet.cpp:657
#8  0x00007ff86678e75d in WeatherApplet::qt_metacall (this=0x2603190, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4f820940)
    at /var/tmp/portage/kde-base/kdeplasma-addons-4.3.0/work/kdeplasma-addons-4.3.0_build/applets/weather/weatherapplet.moc:74
#9  0x00007ff8956f7e85 in QMetaObject::activate (sender=0x4ba8be0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3101
#10 0x00007ff88cf37f57 in Plasma::SignalRelay::dataUpdated (this=0x0, _t1=<value optimized out>, _t2=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0_build/plasma/datacontainer_p.moc:79
#11 0x00007ff88cf3805e in Plasma::SignalRelay::checkQueueing (this=0x4ba8be0) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/plasma/private/datacontainer_p.cpp:115
#12 0x00007ff88cf0d0de in Plasma::DataContainer::checkForUpdate (this=0x260d880) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/plasma/datacontainer.cpp:170
#13 0x00007ff88cf109a3 in Plasma::DataEngine::timerEvent (this=0x330e530, event=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/plasma/dataengine.cpp:381
#14 0x00007ff8956f47b3 in QObject::event (this=0x330e530, e=0x7fff4f81ec60) at kernel/qobject.cpp:1066
#15 0x00007ff892c10c1d in QApplicationPrivate::notify_helper (this=0x1a01240, receiver=0x330e530, e=0x7fff4f821100) at kernel/qapplication.cpp:4056
#16 0x00007ff892c194fa in QApplication::notify (this=0x19c8a50, receiver=0x330e530, e=0x7fff4f821100) at kernel/qapplication.cpp:4021
#17 0x00007ff893be5cbb in KApplication::notify (this=0x19c8a50, receiver=0x330e530, event=0x7fff4f821100)
    at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#18 0x00007ff8956e5fc3 in QCoreApplication::notifyInternal (this=0x19c8a50, receiver=0x330e530, event=0x7fff4f821100) at kernel/qcoreapplication.cpp:606
#19 0x00007ff89570de4e in QTimerInfoList::activateTimers (this=0x1a04650) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#20 0x00007ff89570abfd in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#21 0x00007ff8916acfd1 in IA__g_main_context_dispatch (context=0x1a03920) at gmain.c:2144
#22 0x00007ff8916b06ad in g_main_context_iterate (context=0x1a03920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#23 0x00007ff8916b086b in IA__g_main_context_iteration (context=0x1a03920, may_block=1) at gmain.c:2841
#24 0x00007ff89570ab6f in QEventDispatcherGlib::processEvents (this=0x1a002e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#25 0x00007ff892c961cf in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#26 0x00007ff8956e49c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1333924720}) at kernel/qeventloop.cpp:149
#27 0x00007ff8956e4b5c in QEventLoop::exec (this=0x7fff4f8213b0, flags={i = 1333924800}) at kernel/qeventloop.cpp:197
#28 0x00007ff8956e6b34 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#29 0x00007ff88979a03b in kdemain (argc=1, argv=0x19895c0) at /var/tmp/portage/kde-base/plasma-workspace-4.3.0/work/plasma-workspace-4.3.0/plasma/shells/desktop/main.cpp:50
#30 0x0000000000407706 in launch (argc=1, _name=0x19d6d98 "/usr/bin/plasma-desktop", args=<value optimized out>, cwd=0x0, envc=0, envs=0x19d6db8 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x40a523 "0") at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kinit/kinit.cpp:676
#31 0x0000000000407ee0 in handle_launcher_request (sock=7, who=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kinit/kinit.cpp:1168
#32 0x000000000040843e in handle_requests (waitForPid=0) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kinit/kinit.cpp:1361
#33 0x0000000000408aba in main (argc=2, argv=0x7fff4f822238, envp=0x7fff4f822250) at /var/tmp/portage/kde-base/kdelibs-4.3.0/work/kdelibs-4.3.0/kinit/kinit.cpp:1788

Reported using DrKonqi
Comment 1 Shawn Starr 2009-08-13 21:52:22 UTC
I have noticed a crash switching places but it only happens sometimes. It might be a plasma library bug or mine. I don't know at the moment. It is annoying nonetheless.
Comment 2 Shawn Starr 2009-10-15 22:04:14 UTC
Still don't have any idea on this bug yet. The model() is never null.
Comment 3 Dario Andres 2009-10-22 14:48:07 UTC
From bug 211430:
What I was doing when the application crashed:
Opened the config dialog of the weather forecast plasma applet, just clicked ok
(I was trying to force an update) and suddenly all plasma-desktop crashed
Comment 4 Dario Andres 2009-10-22 14:48:13 UTC
*** Bug 211430 has been marked as a duplicate of this bug. ***
Comment 5 Shawn Starr 2009-12-23 02:58:00 UTC
This should be fixed in Qt 4.6, please let me know if it is not in KDE 4.4