Bug 356265

Summary: File associations app crashes
Product: [Applications] systemsettings Reporter: Jagadguru <jguru108>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: cytadela8
Priority: NOR Keywords: drkonqi
Version: 5.4.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jagadguru 2015-12-04 03:52:06 UTC
Application: systemsettings5 (5.4.1)

Qt Version: 5.4.2
Operating System: Linux 4.2.0-18-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:
All I have to do is open it and it crashes every time.
- Unusual behavior I noticed:
I first accessed it thouigh the starup programs app. Also if I navigate to a floder that contains .desktop files in Dolphin, the icons show up fine but clicking on one crashes Dolphin.
- Custom settings of the application:
I think I changed the association for  ".desktop" or deleled it mistakenly prior to the crashing behavior.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc764121800 (LWP 23736))]

Thread 2 (Thread 0x7fc752ca1700 (LWP 23737)):
#0  0x00007fc7608cd8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fc75e5ddbd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fc75e5df74f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fc7551efa39 in QXcbEventReader::run (this=0x8fca20) at qxcbconnection.cpp:1105
#4  0x00007fc760fc02be in QThreadPrivate::start (arg=0x8fca20) at thread/qthread_unix.cpp:337
#5  0x00007fc75dd686aa in start_thread (arg=0x7fc752ca1700) at pthread_create.c:333
#6  0x00007fc7608d8eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fc764121800 (LWP 23736)):
[KCrash Handler]
#6  operator== (s1=..., s2=...) at tools/qstring.cpp:2521
#7  0x00007fc76122abb6 in operator!= (s2=..., s1=...) at ../../include/QtCore/../../src/corelib/tools/qstring.h:587
#8  QMimeBinaryProvider::loadMimeTypePrivate (this=<optimized out>, data=...) at mimetypes/qmimeprovider.cpp:626
#9  0x00007fc76121e3ba in QMimeType::comment (this=this@entry=0x10b1be0) at mimetypes/qmimetype.cpp:223
#10 0x00007fc740b346af in MimeTypeData::initFromQMimeType (this=this@entry=0x10b1be0) at ../../keditfiletype/mimetypedata.cpp:89
#11 0x00007fc740b36055 in MimeTypeData::MimeTypeData (this=0x10b1be0, mime=...) at ../../keditfiletype/mimetypedata.cpp:63
#12 0x00007fc740b31949 in TypesListItem::TypesListItem (this=0x10b1ba0, parent=<optimized out>, mimetype=...) at ../../keditfiletype/typeslistitem.cpp:38
#13 0x00007fc740b2b3f4 in FileTypesView::readFileTypes (this=this@entry=0xa654c0) at ../../keditfiletype/filetypesview.cpp:203
#14 0x00007fc740b2b6f8 in FileTypesView::load (this=0xa654c0) at ../../keditfiletype/filetypesview.cpp:464
#15 0x00007fc763310499 in KCModule::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at moc_kcmodule.cpp:107
#16 0x00007fc7611d1651 in QObject::event (this=this@entry=0xa654c0, e=e@entry=0xdfad30) at kernel/qobject.cpp:1245
#17 0x00007fc762665edb in QWidget::event (this=0xa654c0, event=0xdfad30) at kernel/qwidget.cpp:9084
#18 0x00007fc762623b8c in QApplicationPrivate::notify_helper (this=this@entry=0x8dc7f0, receiver=receiver@entry=0xa654c0, e=e@entry=0xdfad30) at kernel/qapplication.cpp:3720
#19 0x00007fc762629230 in QApplication::notify (this=0x7ffeacbc8bc0, receiver=0xa654c0, e=0xdfad30) at kernel/qapplication.cpp:3503
#20 0x00007fc76119ff1b in QCoreApplication::notifyInternal (this=0x7ffeacbc8bc0, receiver=0xa654c0, event=event@entry=0xdfad30) at kernel/qcoreapplication.cpp:935
#21 0x00007fc7611a2057 in QCoreApplication::sendEvent (event=0xdfad30, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x8da000) at kernel/qcoreapplication.cpp:1552
#23 0x00007fc7611a2588 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410
#24 0x00007fc7611f6e73 in postEventSourceDispatch (s=0x9334c0) at kernel/qeventdispatcher_glib.cpp:271
#25 0x00007fc75d848ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fc75d849250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fc75d8492fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fc7611f727f in QEventDispatcherGlib::processEvents (this=0x93cbf0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#29 0x00007fc76119d75a in QEventLoop::exec (this=this@entry=0x7ffeacbc8aa0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#30 0x00007fc7611a52cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#31 0x00007fc76207000c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#32 0x00007fc762620025 in QApplication::exec () at kernel/qapplication.cpp:2956
#33 0x000000000040f04b in main (argc=1, argv=<optimized out>) at ../../app/main.cpp:55

Possible duplicates by query: bug 355012.

Reported using DrKonqi
Comment 1 Artur Puzio 2015-12-25 17:56:21 UTC
You said you changed or deleted the association of ".desktop" files and this may triggered the crashing. Does this problem affect only the systemsettings app or does it affect some other apps?
Please try repairing the association of ".desktop" files, to check if it fixes it.
Comment 2 Jagadguru 2015-12-25 20:08:19 UTC
Yes, repairing the association fixes it. It affects kcmshell5 but not 
kmcshell4. And Dolphin crashes when tying to show the tooltip for 
*.desktop files.

To reproduce:
1. Open System Settings>Applications>File Associations>Application>x-desktop
2. Remove both the *.desktop and *.kdelink from the Filename Patterns box
3. Remove all the entires from the Application Preference Order
4. Click Apply
5. Try to start "kcmshell5 filetypes" of navigate to Open System 
Settings>Applications>File Associations to see crash.


On 12/25/2015 12:56 PM, Artur Puzio via KDE Bugzilla wrote:
> https://bugs.kde.org/show_bug.cgi?id=356265
>
> Artur Puzio<cytadela8@op.pl>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |cytadela8@op.pl
>
> --- Comment #1 from Artur Puzio<cytadela8@op.pl>  ---
> You said you changed or deleted the association of ".desktop" files and this
> may triggered the crashing. Does this problem affect only the systemsettings
> app or does it affect some other apps?
> Please try repairing the association of ".desktop" files, to check if it fixes
> it.
>
Comment 3 Christoph Feck 2017-01-04 14:48:06 UTC

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