fix(server plugins): the server card binds ImGui.NET to the engine's cimgui (server plugins +0.0.1)

A second ImGui copy drew the card against the main context in a popped-out Mini Remote and crashed the client (SK on DreamWeave).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-19 20:31:38 -04:00
commit ce99818e17
19 changed files with 60 additions and 32 deletions

View file

@ -0,0 +1,23 @@
# Server plugins: the server card draws through the engine's ImGui (2026-10-20)
All 16 server plugins: patch versions bumped (RynthDreamWeave 0.1.5 -> 0.1.6, the others
0.1.4 -> 0.1.5). Built with the engine fix in RynthCore 2026.10.20.4.
## Why
SK's client on DreamWeave died when the server card was opened in a popped-out Mini Remote
(2026-10-19 20:15 and 20:19). The server card drew with a second copy of ImGui (its own
`cimgui.dll`), whose current context is the main window's. A popped-out window draws in a context
of its own, so the card's first ImGui call faulted outside a frame, and the runtime aborted the
client. Details: RynthCore `Changelog/2026-10-20-popout-plugin-imgui-context-crash-2026.10.20.4.md`.
## Changed
- `Shared/ServerPack/ServerPackPlugin.cs`: `Initialize` calls `ImGuiNativeBinding.Ensure`, as
RynthAi and RynthILT do. The card's ImGui.NET then binds to the engine's `RynthCore.cimgui.dll`
and draws in the engine's current context, a pop-out's included.
- `Shared/ServerPack/ServerPlugin.props` compiles `Shared/ImGuiNativeBinding.cs` into every server
plugin.
The installed server plugins (rynth's 2026.10.19.1 managed builds) are covered by the engine fix
alone: the engine now binds every managed plugin's ImGui.NET to its own module.

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthAChard</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>achard</RynthPluginServerId>
<RynthPluginServerName>AChard</RynthPluginServerName>
<RynthPluginServerHosts>a-chard.ddns.net</RynthPluginServerHosts>

View file

@ -5,8 +5,8 @@
The build is shared (..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthAelrynth</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>aelrynth</RynthPluginServerId>
<RynthPluginServerName>Aelrynth</RynthPluginServerName>
<RynthPluginServerHosts>aelrynth.com|144.217.84.148</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthColdeve</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>coldeve</RynthPluginServerId>
<RynthPluginServerName>Coldeve</RynthPluginServerName>
<RynthPluginServerHosts>play.coldeve.ac</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
(..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthConquest</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>conquest</RynthPluginServerId>
<RynthPluginServerName>Conquest</RynthPluginServerName>
<RynthPluginServerHosts>acconquest.ddns.net</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthDerptide</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>derptide</RynthPluginServerId>
<RynthPluginServerName>Derptide</RynthPluginServerName>
<RynthPluginServerHosts>ac.derptide.net</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthDreamWeave</AssemblyName>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<!-- Previous release: 0.1.5. -->
<Version>0.1.6</Version>
<RynthPluginServerId>dreamweave</RynthPluginServerId>
<RynthPluginServerName>DreamWeave</RynthPluginServerName>
<RynthPluginServerHosts>play.acdreamweave.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthEversong</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>eversong</RynthPluginServerId>
<RynthPluginServerName>Eversong</RynthPluginServerName>
<RynthPluginServerHosts>eversong.abrdns.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
is shared (..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthFrostACE</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>frostace</RynthPluginServerId>
<RynthPluginServerName>FrostACE</RynthPluginServerName>
<RynthPluginServerHosts>172.111.230.127</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthFrostcull</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>frostcull</RynthPluginServerId>
<RynthPluginServerName>Frostcull</RynthPluginServerName>
<RynthPluginServerHosts>frostcull.ddns.net</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
(..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthLeafDawn</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>leafdawn</RynthPluginServerId>
<RynthPluginServerName>LeafDawn</RynthPluginServerName>
<RynthPluginServerHosts>leafdawn.hopto.org</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
(..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthLeafdawning</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>leafdawning</RynthPluginServerId>
<RynthPluginServerName>Leafdawning</RynthPluginServerName>
<RynthPluginServerHosts>leafdawning.duckdns.org</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
(..\Shared\ServerPack\ServerPlugin.props); ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthLevistras</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>levistras</RynthPluginServerId>
<RynthPluginServerName>Levistras</RynthPluginServerName>
<RynthPluginServerHosts>levistras.acportalstorm.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthPortalStorm</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>portalstorm</RynthPluginServerId>
<RynthPluginServerName>PortalStorm</RynthPluginServerName>
<RynthPluginServerHosts>ac.portalstorm.us.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthReefcull</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>reefcull</RynthPluginServerId>
<RynthPluginServerName>Reefcull</RynthPluginServerName>
<RynthPluginServerHosts>reefcull.gdleac.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthSundering</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>sundering</RynthPluginServerId>
<RynthPluginServerName>Sundering</RynthPluginServerName>
<RynthPluginServerHosts>ace.sunderingac.com</RynthPluginServerHosts>

View file

@ -4,8 +4,8 @@
ServerData.cs holds what is known about the server. -->
<PropertyGroup>
<AssemblyName>RynthCore.Plugin.RynthThistlecrown</AssemblyName>
<!-- Previous release: 0.1.2. -->
<Version>0.1.4</Version>
<!-- Previous release: 0.1.4. -->
<Version>0.1.5</Version>
<RynthPluginServerId>thistlecrown</RynthPluginServerId>
<RynthPluginServerName>Thistlecrown</RynthPluginServerName>
<RynthPluginServerHosts>thistlecrown.ddns.net</RynthPluginServerHosts>

View file

@ -85,6 +85,9 @@ public sealed partial class ServerPackPlugin : RynthPluginBase
public override int Initialize()
{
Host.Log($"[{RynthPluginInfo.Name}] Plugin initialized for {Info.Name} ({Info.Id}).");
// The server card draws through the engine's cimgui (and so in its current context, a
// popped-out Mini Remote's included), not a second copy of ImGui (ImGuiNativeBinding.cs).
RynthCore.Plugin.Shared.ImGuiNativeBinding.Ensure(msg => Host.Log($"[{RynthPluginInfo.Name}] {msg}"));
ServerInitialize();
return 0;
}

View file

@ -40,6 +40,8 @@
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)..\SafeImGui.cs" Link="Shared\SafeImGui.cs" />
<!-- ImGui.NET bound to the engine's cimgui (one ImGui, one current context; pop-outs included). -->
<Compile Include="$(MSBuildThisFileDirectory)..\ImGuiNativeBinding.cs" Link="Shared\ImGuiNativeBinding.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ServerPackInfo.cs" Link="ServerPack\ServerPackInfo.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ServerPackModel.cs" Link="ServerPack\ServerPackModel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ServerPackUi.cs" Link="ServerPack\ServerPackUi.cs" />