Kate on Windows nightly - Crashes when loading file system plugin

Hello there!

I have been trying to use Kate on my Windows 11 work laptop, and have installed nightly builds from the KDE CDN server.

Unfortunately, Kate crashes immediately when trying to load the file system browser plugin, both via the plugin preference page, and when I manually enable it in the session configuration file.

Is there any way to debug this? I am a C++/Qt developer myself and I would love to help resolve this, but I can’t find where Kate stores crash logs on Windows.

Thanks,
Alex

Could you run Kate in windbg and provide some backtrace? Then we could investigate together what happens.

I can reproduce it and it crash somewhere in KDirOperator::writeConfig for me, but ATM not sure why.

One will need to build a debug build with craft and debug it, the writeConfig stuff is even unit tested in KIO and that test works on Windows…

Sure, I’d like to debug that further for sure.

I did set-up Craft and compiled Kate from source with debug symbols, but yet I struggle to reproduce the crash under WinDbg, what exactly did you do to trigger it again on your machine? The downloaded build crashes, but the debug build does not.

Alex

Hmm, ok, that is already interesting to know.

Perhaps we are missing something in the zip that leads to the crash.

Does the locally build stuff crashes if you copy it in the stuff extracted from the zip?

I could reproduce it with the nightly like you, just turning the plugin on.

Good call, copying my built-from-source debug Kate executable into the nightly distribution enabled me to reproduce the crash every single time, and the call stack is similar to what you have reported - crashing in KF6KIOFileWidgets!KDirOperator::writeConfig.

I do have source information and symbols in WinDbg now, I can actually try to figure out whats going on here now.

1 Like

Cool, just dump any hints here, perhaps I can help, too.

Would be good to have that fixed.