mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
The TUI log view used an ItemsControl with 5000 max entries and no UI virtualization. Avalonia's composition renderer traverses the entire visual tree on each frame -- with thousands of TextBlock controls, the recursive Render/RenderCore calls exceed the thread stack size on constrained devices (especially ARM where each stack frame is larger due to ABI differences), causing a StackOverflowException in ServerCompositionContainerVisual.Render. Changes: - Enable VirtualizingStackPanel on the log ItemsControl so Avalonia only creates visuals for the rows currently in the viewport. - Add [Console.General] TUI_Log_Scrollback config option so users can control max log lines in TUI mode. Default is 0 (automatic: 3000 on x86/x64, 500 on ARM/ARM64). Made-with: Cursor |
||
|---|---|---|
| .. | ||
| BrewingStandView.cs | ||
| ContainerViewBase.cs | ||
| ContainerViewModel.cs | ||
| CraftingView.cs | ||
| EnchantingTableView.cs | ||
| FurnaceView.cs | ||
| GridContainerView.cs | ||
| GrindstoneView.cs | ||
| HopperView.cs | ||
| IconGridBuilder.cs | ||
| InventoryApp.cs | ||
| InventoryMainView.cs | ||
| InventoryTuiHost.cs | ||
| InventoryViewModel.cs | ||
| MainTuiView.cs | ||
| MccBannerPanelBuilder.cs | ||
| McColorParser.cs | ||
| MccTuiApp.cs | ||
| MinimapBlockColors.json | ||
| MinimapColorMap.cs | ||
| MinimapControl.cs | ||
| MinimapEntityCategories.json | ||
| MinimapEntityClassifier.cs | ||
| ServerStatusPanelBuilder.cs | ||
| SlotViewModel.cs | ||
| TuiConsoleBackend.cs | ||
| TuiTooltipService.cs | ||