https://bugs.kde.org/show_bug.cgi?id=473982

            Bug ID: 473982
           Summary: Regression: LSP/Java crash
    Classification: Applications
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: matthew.li...@gmail.com
  Target Milestone: ---

Created attachment 161298
  --> https://bugs.kde.org/attachment.cgi?id=161298&action=edit
Trace of the crash

SUMMARY
Kate (master branch in git) crashes if LSP client is enabled and connected to a
Java LSP server


STEPS TO REPRODUCE
1. Install and configure a Java LSP server
2. Setup the Java LSP client in Kate
3. Open a Java document

OBSERVED RESULT
After a couple of seconds (while the LSP server starts up) Kate Crashes

EXPECTED RESULT
Do not crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Used Java LSP server: https://github.com/georgewfraser/java-language-server.git
Kate version  23.07.70 does not suffer from this problem.

Printed on terminal:
kate:
/mnt/kde/src/kde/applications/kate/addons/lspclient/rapidjson/include/rapidjson/document.h:1630:
rapidjson::GenericValue<Encoding, Allocator>::ConstObject
rapidjson::GenericValue<Encoding, Allocator>::GetObject() const [with Encoding
= rapidjson::UTF8<>; Allocator =
rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>;
rapidjson::GenericValue<Encoding, Allocator>::ConstObject =
rapidjson::GenericObject<true, rapidjson::GenericValue<rapidjson::UTF8<> > >]:
Assertion `IsObject()' failed.
/home/pozsgai/bin/kate: line 4: 19040 Aborted                 (core dumped)
~/projects/kde/build/kde/applications/kate/bin/kate "$@"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to