Bug 331465 - kwrite crashes when opening empty file on Windows
Summary: kwrite crashes when opening empty file on Windows
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-24 17:10 UTC by fliegenblues
Modified: 2020-08-08 11:44 UTC (History)
3 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 fliegenblues 2014-02-24 17:10:17 UTC
I've got KDE 4.10.2 installed on Windows. Every time I open an empty file with Kwrite KWrite crashes. 

Reproducible: Always

Steps to Reproduce:
1. Open an empty file with kwrite

Actual Results:  
Crash

Expected Results:  
No crash

Version data: 

Application: kwrite (4.10.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: WindowsNT Windows 6.2 i686

*********************************************************************

-- Backtrace:
Application: KWrite (kwrite.exe), signal: EXCEPTION_ACCESS_VIOLATION


kdecore.dll!KCharsets::~KCharsets() [[unknown] @ -1] at 0x69ef2a21
[unknown]![unknown]() [[unknown] @ -1] at 0x5074f68
kdecore.dll!KCharsets::~KCharsets() [[unknown] @ -1] at 0x69e1a831
kparts.dll!KParts::OpenUrlArguments::reload() [[unknown] @ -1] at 0x6d0be6ea
kparts.dll!KParts::OpenUrlArguments::reload() [[unknown] @ -1] at 0x6d0bee70
kwrite.exe![unknown]() [[unknown] @ -1] at 0x1232163
kwrite.exe!QMap<QString,QString>::unite() [[unknown] @ -1] at 0x123c63b
kwrite.exe!QMap<QString,QString>::unite() [[unknown] @ -1] at 0x123b11e
kwrite.exe!kdemain() [[unknown] @ -1] at 0x123511b
KERNEL32.DLL!BaseThreadInitThunk() [[unknown] @ -1] at 0x7509495d
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398c4
ntdll.dll!RtlCaptureContext() [[unknown] @ -1] at 0x7742e0dd


ntdll.dll!NtWaitForWorkViaWorkerFactory() [[unknown] @ -1] at 0x7742d6ec
KERNEL32.DLL!BaseThreadInitThunk() [[unknown] @ -1] at 0x7509495d
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398ee
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398c4


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x7742c1ac
KERNEL32.DLL!WaitForMultipleObjects() [[unknown] @ -1] at 0x7509a6ee
QtCore4.dll!QString::contains() [[unknown] @ -1] at 0x694e4313
QtCore4.dll!QThread::setTerminationEnabled() [[unknown] @ -1] at 0x69417ddd
QtCore4.dll!QEventDispatcherWin32::`default constructor closure'() [[unknown] @ -1] at 0x694176fd


ntdll.dll!ZwRemoveIoCompletion() [[unknown] @ -1] at 0x7742bc8c
KERNEL32.DLL!BaseThreadInitThunk() [[unknown] @ -1] at 0x7509495d
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398ee
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398c4


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x7742c1ac
KERNEL32.DLL!BaseThreadInitThunk() [[unknown] @ -1] at 0x7509495d
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398ee
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398c4


ntdll.dll!ZwWaitForMultipleObjects() [[unknown] @ -1] at 0x7742c1ac
combase.dll!StringFromCLSID() [[unknown] @ -1] at 0x76a438c8
combase.dll!StringFromCLSID() [[unknown] @ -1] at 0x76a4391e
KERNEL32.DLL!BaseThreadInitThunk() [[unknown] @ -1] at 0x7509495d
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398ee
ntdll.dll!RtlInitializeExceptionChain() [[unknown] @ -1] at 0x774398c4
Comment 1 Christoph Cullmann 2016-01-31 16:47:25 UTC
IMHO this is fixed in the KF5 based Windows version, please try it out, see:

http://kate-editor.org/2016/01/28/kate-on-windows/
Comment 2 fliegenblues 2020-08-08 11:44:18 UTC
I just confirmed that now on Windows kwrite doesn't crash any more when opening an empty file.