Bug 475717 - Kate crashes upon start on Windows
Summary: Kate crashes upon start on Windows
Status: RESOLVED DUPLICATE of bug 363226
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-16 20:34 UTC by magiblot
Modified: 2024-05-03 15:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kate session leading to the crash (66.49 KB, text/plain)
2024-01-13 23:42 UTC, magiblot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description magiblot 2023-10-16 20:34:19 UTC
SUMMARY
I am unable to run Kate 23.400.2015.0 from the Microsoft Store: it crashes upon start. GDB (TDM-GCC) shows the following stacktrace:

> #0    0x00007ffcd2eeb002 in ntdll!RtlDosPathNameToRelativeNtPathName_U_WithStatus () from C:\WINDOWS\SYSTEM32\ntdll.dll
> #1    0x00007ffcd2eea9c3 in ntdll!RtlReleaseRelativeName () from C:\WINDOWS\SYSTEM32\ntdll.dll
> #2    0x00007ffcd2ee7329 in ntdll!RtlDosPathNameToNtPathName_U () from C:\WINDOWS\SYSTEM32\ntdll.dll
> #3    0x00007ffcd0649715 in KERNELBASE!GetDriveTypeW () from C:\WINDOWS\System32\KernelBase.dll
> #4    0x00007ffcd0a331b9 in ucrtbase!_wsplitpath () from C:\WINDOWS\System32\ucrtbase.dll
> #5    0x00007ffcd0a32432 in ucrtbase!_wsplitpath () from C:\WINDOWS\System32\ucrtbase.dll
> #6    0x00007ffcd0a32187 in ucrtbase!_wsplitpath () from C:\WINDOWS\System32\ucrtbase.dll
> #7    0x00007ffcd0a333f6 in ucrtbase!_stat64 () from C:\WINDOWS\System32\ucrtbase.dll
> #8    0x00007ffca0996639 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #9    0x00007ffca099e042 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #10   0x00007ffca099701f in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #11   0x00007ffca0996c84 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #12   0x00007ffca099e042 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #13   0x00007ffca099701f in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #14   0x00007ffca0996c84 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #15   0x00007ffca099e042 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #16   0x00007ffca099701f in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #17   0x00007ffca0996c84 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> [...]
> #3909 0x00007ffca099e042 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3910 0x00007ffca099701f in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3911 0x00007ffca0996c84 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3912 0x00007ffca099e042 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3913 0x00007ffca099701f in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3914 0x00007ffca0996c84 in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3915 0x00007ffca0996f8d in KF5CoreAddons!?setProgramLogo@KAboutData@@QEAAAEAV1@AEBVQVariant@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5CoreAddons.dll
> #3916 0x00007ffc81264ea7 in KF5TextEditor!?currentCompletion@KateCompletionModel@@QEBA?AVQString@@PEAVCodeCompletionModel@KTextEditor@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5TextEditor.dll
> #3917 0x00007ffc8127cd3f in KF5TextEditor!?currentCompletion@KateCompletionModel@@QEBA?AVQString@@PEAVCodeCompletionModel@KTextEditor@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5TextEditor.dll
> #3918 0x00007ffc9edab3e5 in KF5Parts!??1BrowserRun@KParts@@UEAA@XZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5Parts.dll
> #3919 0x00007ffc9edabb5c in KF5Parts!??1BrowserRun@KParts@@UEAA@XZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5Parts.dll
> #3920 0x00007ffc8127e0b4 in KF5TextEditor!?currentCompletion@KateCompletionModel@@QEBA?AVQString@@PEAVCodeCompletionModel@KTextEditor@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5TextEditor.dll
> #3921 0x00007ffc81280cfe in KF5TextEditor!?currentCompletion@KateCompletionModel@@QEBA?AVQString@@PEAVCodeCompletionModel@KTextEditor@@@Z () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\KF5TextEditor.dll
> #3922 0x00007ffc94282e13 in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3923 0x00007ffc94247d0b in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3924 0x00007ffc9424483a in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3925 0x00007ffc942440ea in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3926 0x00007ffc94245817 in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3927 0x00007ffc94265ffb in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3928 0x00007ffc942641ae in kateprivate!?sessionSave@KateSessionManager@@QEAAXXZ () from C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kateprivate.dll
> #3929 0x00007ff7ca49c41f in ?? ()
> #3930 0x00007ff7ca4a47a7 in ?? ()
> #3931 0x00007ff7ca4a350e in ?? ()
> #3932 0x00007ffcd24a7034 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
> #3933 0x00007ffcd2f22651 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
> #3934 0x0000000000000000 in ?? ()

The Windows Event Viewer provides the following information. Note that error code 0xc00000fd is STATUS_STACK_OVERFLOW according to ntstatus.h.

> Nombre de la aplicación con errores: kate.exe, versión: 0.0.0.0, marca de tiempo: 0x644ad63e
> Nombre del módulo con errores: ntdll.dll, versión: 10.0.19041.1806, marca de tiempo: 0x1000a5b9
> Código de excepción: 0xc00000fd
> Desplazamiento de errores: 0x000000000001beac
> Identificador del proceso con errores: 0x1a04
> Hora de inicio de la aplicación con errores: 0x01da006af7cd239b
> Ruta de acceso de la aplicación con errores: C:\Program Files\WindowsApps\KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8\bin\kate.exe
> Ruta de acceso del módulo con errores: C:\WINDOWS\SYSTEM32\ntdll.dll
> Identificador del informe: 0624ce65-2de1-4e56-b8b9-c96829ca3f03
> Nombre completo del paquete con errores: KDEe.V.Kate_23.400.2015.0_x64__7vt06qxq7ptv8
> Identificador de aplicación relativa del paquete con errores: KDEe.V.Kate

STEPS TO REPRODUCE
1. Install Kate in the Microsoft Store.
2. Run Kate.
3. Wonder why Kate isn't showing up.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro 19043.1826

ADDITIONAL INFORMATION
Thank you very much.
Comment 1 Waqar Ahmed 2023-10-17 04:43:35 UTC
Is there a newer version of Kate available on the store? or is this the latest available version?

Latest release is 23.08, you seem to be using 23.04. Unfortunately microsoft store's website doesn't show the available version of the package.
Comment 2 magiblot 2023-10-17 19:00:01 UTC
All I know is that the Microsoft Store is not currently offering me to upgrade to a newer version of Kate.
Comment 3 Christoph Cullmann 2023-12-29 17:45:10 UTC
I tried the current Windows store version and https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Release_win64/2262/

Doesn't crash for me.
Comment 4 magiblot 2024-01-13 23:42:41 UTC
Created attachment 164887 [details]
Kate session leading to the crash

> I tried the current Windows store version and https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Release_win64/2262/

It still crashes for me, even in the currently most recent Kate from Jenkins (https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Release_win64/2276/).

I realized that this is related to the last Session. In '%USERPROFILE%\AppData\Local\kate\sessions' I had just one file, 'last.katesession'. If I remove or rename it, Kate becomes able to start. However, I have been unable to find out which part of the Session file causes the crash.

I am attaching this session file. Cristoph, could you please check if this allows you to reproduce the issue?

Thank you.
Comment 5 magiblot 2024-01-13 23:47:50 UTC
> Cristoph, could you please check if this allows you to reproduce the issue?

Let me remove the "RESOLVED" status for now. I am changing it to "REOPENED", but please correct me if I should set it to something else.
Comment 6 Christoph Cullmann 2024-03-15 19:53:04 UTC

*** This bug has been marked as a duplicate of bug 363226 ***
Comment 7 magiblot 2024-05-03 15:55:27 UTC
(In reply to Christoph Cullmann from comment #6)
> 
> *** This bug has been marked as a duplicate of bug 363226 ***

That's right. The problem were just the entries located in the 'F:' drive, which used to be a USB drive that is currently assigned to a different location. So, in my case, it was enough to replace all the occurrences of 'F:/' with 'D:/' in 'last.katesession' to avoid the crash.