Bug 210723 - KDevelop crashes when a non UTF files is opened as UTF for the second time
Summary: KDevelop crashes when a non UTF files is opened as UTF for the second time
Status: RESOLVED DUPLICATE of bug 204383
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 213386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-15 23:41 UTC by Aleix Pol
Modified: 2009-11-06 12:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
File that makes this happen (2.94 KB, text/plain)
2009-10-15 23:42 UTC, Aleix Pol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleix Pol 2009-10-15 23:41:19 UTC
Version:            (using Devel)
Installed from:    Compiled sources

So I open the file, I close it (Ctrl+W) and reopen it. Then it crashes.

#0  0xb5ae3da1 in QFlags<Qt::WindowType>::operator& (this=0x8, f=Qt::WindowType_Mask) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2161
#1  0xb5ae34b4 in QWidget::windowType (this=0xa981e90) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:911
#2  0xb5b36461 in QWidgetPrivate::init (this=0xa5047a0, parentWidget=0xa981e90, f=...) at kernel/qwidget.cpp:1136
#3  0xb5b3588c in QWidget (this=0xa523078, parent=0xa981e90, f=...) at kernel/qwidget.cpp:1021
#4  0xb778ea9a in View (this=0xa523078, parent=0xa981e90) at /home/kde-devel/kdelibs/interfaces/ktexteditor/ktexteditor.cpp:260
#5  0xa809eee1 in KateView (this=0xa523078, doc=0xa886070, parent=0xa981e90) at /home/kde-devel/kdelibs/kate/view/kateview.cpp:124
#6  0xa80000aa in KateDocument::createView (this=0xa886070, parent=0xa981e90) at /home/kde-devel/kdelibs/kate/document/katedocument.cpp:338
#7  0xb7bafb35 in KDevelop::TextDocument::createViewWidget (this=0xa502c28, parent=0xa981e90) at /home/kde-devel/kdevplatform/shell/textdocument.cpp:268
#8  0xb7bb121f in KDevelop::TextView::createWidget (this=0xaa72c48, parent=0xa981e90) at /home/kde-devel/kdevplatform/shell/textdocument.cpp:522
#9  0xb4e9c0d2 in Sublime::View::widget (this=0xaa72c48, parent=0xa981e90) at /home/kde-devel/kdevplatform/sublime/view.cpp:82
#10 0xb4e94a6c in Sublime::MainWindowPrivate::ViewCreator::operator() (this=0xbfa87084, index=0xa18fa78) at /home/kde-devel/kdevplatform/sublime/mainwindow_p.cpp:243
#11 0xb4e9a1d6 in Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator> (this=0xa18fa88, op=..., index=0xa18fa78)
    at /home/kde-devel/kdevplatform/sublime/areawalkers.h:32
#12 0xb4e991ef in Sublime::Area::walkViews<Sublime::MainWindowPrivate::ViewCreator> (this=0xa18fa88, op=..., index=0xa18fa78)
    at /home/kde-devel/kdevplatform/sublime/areawalkers.h:48
#13 0xb4e958a8 in Sublime::MainWindowPrivate::viewAdded (this=0xa1765f8, index=0xa18fa78, view=0xaa72c48) at /home/kde-devel/kdevplatform/sublime/mainwindow_p.cpp:382
#14 0xb4e8fa54 in Sublime::MainWindow::qt_metacall (this=0xa16bd90, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfa871b4)
    at /home/kde-devel/build-kdevplatform/sublime/mainwindow.moc:115
#15 0xb7b8815e in KDevelop::MainWindow::qt_metacall (this=0xa16bd90, _c=QMetaObject::InvokeMetaMethod, _id=60, _a=0xbfa871b4)
    at /home/kde-devel/build-kdevplatform/shell/mainwindow.moc:89
#16 0xb67cd7bc in QMetaObject::metacall (object=0xa16bd90, cl=QMetaObject::InvokeMetaMethod, idx=60, argv=0xbfa871b4) at kernel/qmetaobject.cpp:237
#17 0xb67e1808 in QMetaObject::activate (sender=0xa18fa88, m=0xb4ec3020, local_signal_index=0, argv=0xbfa871b4) at kernel/qobject.cpp:3398
#18 0xb4e801b5 in Sublime::Area::viewAdded (this=0xa18fa88, _t1=0xa18fa78, _t2=0xaa72c48) at /home/kde-devel/build-kdevplatform/sublime/area.moc:115
#19 0xb4e7e3c2 in Sublime::Area::addView (this=0xa18fa88, view=0xaa72c48, index=0xa18fa78) at /home/kde-devel/kdevplatform/sublime/area.cpp:169
#20 0xb4e7e46c in Sublime::Area::addView (this=0xa18fa88, view=0xaa72c48, after=0x0) at /home/kde-devel/kdevplatform/sublime/area.cpp:182
#21 0xb7bb8aae in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0xa1a6f10, doc=0xa502c38, range=..., activationParams=...)
    at /home/kde-devel/kdevplatform/shell/documentcontroller.cpp:328
#22 0xb7bb84c9 in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0xa1a6f10, inputUrl=..., prefName=..., range=..., activationParams=...)
    at /home/kde-devel/kdevplatform/shell/documentcontroller.cpp:256
#23 0xb7bb4d9a in KDevelop::DocumentController::openDocument (this=0xa21ade8, inputUrl=..., range=..., activationParams=...)
    at /home/kde-devel/kdevplatform/shell/documentcontroller.cpp:522
Comment 1 Aleix Pol 2009-10-15 23:42:08 UTC
Created attachment 37614 [details]
File that makes this happen
Comment 2 Andreas Pakulat 2009-10-16 09:40:13 UTC
This looks like its the "well-known" problem that we do not keep track of opened files properly which causes crashes ending up deep in QWidget-initialization code. I'm too lazy right now to find the duplicate but it should be under kdevplatform/sublime.
Comment 3 Dario Andres 2009-10-17 21:16:30 UTC
@Andreas: are you referring to bug 200054 / bug 204169 ? (same bt)
Regards
Comment 4 Andreas Pakulat 2009-10-18 01:08:13 UTC
(In reply to comment #3)
> @Andreas: are you referring to bug 200054 / bug 204169 ? (same bt)
> Regards

No, in fact the bugreport with the most information about this is bug 204383. Thanks anyway for nagging so I finally found it :)

Closing this as dupe, as I said elsewhere already, they're all related to wrong bookkeeping in sublime.

*** This bug has been marked as a duplicate of bug 204383 ***
Comment 5 Andreas Pakulat 2009-11-06 12:44:08 UTC
*** Bug 213386 has been marked as a duplicate of this bug. ***