Skip to content

Blank settings window, plugin crash #90

Description

@Psijic

Bug Description

The JetBrains plugin configuration window (Tools -> Cognotik) renders completely empty/blank, and right-click editor menus are restricted solely to "Extract Symbols". This occurs because the plugin's local database layer crashes during UI rendering when the OS hostname cannot be resolved locally.

Steps to Reproduce

  1. Install Cognotik version 2.1.18 in a JetBrains IDE (e.g., Rider / IntelliJ).
  2. Ensure the system hostname (e.g., primarch) is not mapped explicitly within /etc/hosts.
  3. Open IDE Settings -> Tools -> Cognotik.
  4. The window is entirely blank.

Runtime Environment

  • OS: Linux (Kernel 7.1.2-1-default, X86_64)
  • Plugin Version: 2.1.18
  • IDE Build: RD-261.26222.60

Error Stack Trace (idea.log)

[AWT-EventQueue-0] ERROR com.simiacryptus.cognotik.config.UIAdapter -- Error creating component
INFO - STDOUT - org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: jdk.internal.util.Exceptions\$NonSocketInfo@7403d3e9primarch: Name or service not known" [90028-232]
	at com.simiacryptus.cognotik.config.UsageTable.getRowData(UsageTable.kt:29)
	at com.simiacryptus.cognotik.config.UsageTable.checkUsageThreshold(UsageTable.kt:169)
	at com.simiacryptus.cognotik.config.UIAdapter.createComponent(UIAdapter.kt:32)

[  32546]   INFO - #c.i.o.u.i.PluginDownloader - downloading plugin Cognotik - Open Source Agentic Power Tools(com.simiacryptus.cognotik) version 2.1.18 from https://plugins.jetbrains.com/pluginManager?os=Linux%207.1.2-1-default&build=RD-261.26222.60&updatedFrom&id=com.simiacryptus.cognotik&arch=X86_64&uuid=02062
20:46:02.092 [AWT-EventQueue-0] ERROR com.simiacryptus.cognotik.config.UIAdapter -- Error creating component
[  41944]   INFO - STDOUT - org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: jdk.internal.util.Exceptions\$NonSocketInfo@7403d3e9primarch: Name or service not known" [90028-232]

[  41944]   INFO - STDOUT - 20:46:02.092 [AWT-EventQueue-0] ERROR com.simiacryptus.cognotik.config.UIAdapter -- Error creating component
[  41944]   INFO - STDOUT - org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: "java.net.UnknownHostException: jdk.internal.util.Exceptions\$NonSocketInfo@7403d3e9primarch: Name or service not known" [90028-232]

Suggested Fix

Wrap the initialization logic inside UsageTable.kt or AppSettingsComponent.kt in a structured try-catch block. If a UnknownHostException or database IO failure is encountered, the UI should handle the telemetry crash gracefully and fall back to displaying the standard settings configuration fields using localhost or loopback defaults instead of collapsing the entire panel view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions