Skip to content

v0.12.0

Latest

Choose a tag to compare

@bnorthern42 bnorthern42 released this 03 Dec 05:29

Note from the Brad: I know I have been pushing rapid releases back-to-back lately. v0.12.0 will be the last planned release for a while as I step back to let things settle and wait for community bug reports and feature requests. This release brings new capabilities, deeper stability and resilience testing, UI polish fixes, and performance improvements wherever I could find them. If you run into any issue, big or small, or have ideas for what you would like to see next, please open an issue or discussion.

Added

  • Auto-Focus Next Stopped Rank & Preference Toggle (auto_focus_stopped_rank): Added ConfigManager::autoFocusStoppedRank() / setAutoFocusStoppedRank() persisted under [debugger] auto_focus_stopped_rank in config.toml (default true), exposed #autoFocusStoppedRankCheck in PreferencesDialog (Behavior), and updated MainWindow::onRankStateChanged() so whenever the currently focused rank is Running, Finalizing, or Exited and at least one rank is Stopped, GridLock automatically switches active rank focus across Variables, Registers, Watch, Call Stack, SourceCodeView, DisassemblyView, and ServerRackView to the lowest-index stopped rank without stealing focus from an already-stopped rank.
  • Theme-Driven Fortran, Nix, and JSON/JSONC Syntax Highlighting: Extended EditorSyntaxHighlighter and added EditorSyntaxRules (src/ui/views/editor/EditorSyntaxRules.{hpp,cpp}) with dedicated highlighting for Fortran (.f, .for, .f77 fixed-form column-1 comments and .f90/.f95/.f03/.f08/.fpp free-form keywords, intrinsic types/procedures, !$omp/!$acc directives, dot operators, and _kind numeric literals), Nix (.nix keywords, builtins, attribute paths, relative/search paths, # and multi-line /* ... */ comments, and '' ... '' / "..." strings with ${...} interpolation), and JSON/JSONC (.json/.jsonc distinct object keys vs. string values, \uXXXX escape highlights, numbers, constants, and JSONC comments); unified all editor languages to derive token colors directly from ThemeManager::activePalette() with >= 4.5:1 WCAG-AA contrast enforcement and live ThemeManager::themeModeChanged updates across all 19 dark and light themes (tests/ui/test_syntax_highlighting.cpp).
  • Unsaved-Buffer Crash Recovery Journal & Corrupt Config Fallbacks: Added BufferRecoveryJournal (src/core/utils/BufferRecoveryJournal.{hpp,cpp}) and headless state_recovery_tests (tests/core/test_state_recovery.cpp) persisting atomic 0600 per-buffer recovery snapshots under AppLocalDataLocation/recovery/ (with debounced dirty-buffer snapshotting in EditorTabManager and clean-shutdown marker clearing in MainWindowLifecycle), defensive State_v9 layout blob validation before restoreState(), defensive compile_commands.json parsing, and hardened ConfigManagerToml / ConfigManagerWorkspace loading so truncated, zero-byte, NUL-byte, or wrong-type TOML files fall back cleanly to valid defaults without losing unrelated keys.
  • Filesystem Safety Guardrails (SafeFileLoader): Added SafeFileLoader (src/core/utils/SafeFileLoader.{hpp,cpp}) and headless filesystem_resilience_tests (tests/core/test_filesystem_resilience.cpp) enforcing non-blocking POSIX lstat/stat/fstat regular-file checks (rejecting FIFOs, /dev/zero, sockets, broken symlinks, and ELOOP circular symlinks before opening), configurable 32 MiB text-buffer caps, NUL-byte binary detection, strict stateless UTF-8 decoding (hasInvalidUtf8, hasBom), and atomic QSaveFile checked writes that refuse silent lossy U+FFFD overwrites and preserve original bytes on permission or ENOSPC failures; wired into EditorTabManager, EditorTabManagerSplits, SourceCodeView::saveToFile(), and WorkspaceReplaceEngine.
  • Project Explorer Show Hidden Files Toggle: Added a checkable Show Hidden Files action (#projectExplorerShowHiddenAction) to ProjectExplorerWidget's FILES context menu (for both item and empty-area right-clicks), toggling QDir::Hidden on QFileSystemModel immediately and persisting show_hidden_files under [workspace] in ConfigManager (config.toml, default false).
  • Lightweight Status-Bar VCS Branch Indicator & Preferences Controls: Added WorkspaceGitBranchProbe (src/core/utils/WorkspaceGitBranchProbe.{hpp,cpp}) and #cutterStatusGitBranch in the bottom status bar alongside HOST RAM / CPU for zero-fork .git/HEAD (including gitdir: worktrees/submodules and detached @<sha>), Jujutsu (.jj), Mercurial (.hg), Perforce (.p4config), Subversion (.svn), Sapling (.sl), Fossil (.fslckout/_FOSSIL_), Pijul (.pijul), Plastic SCM (.plastic), and Darcs (_darcs) detection with live QFileSystemWatcher branch-switch updates, non-blocking async dirty/status enrichment, automatic hiding outside repositories, and Preferences -> Behavior controls to toggle the indicator off or configure a custom VCS CLI executable path.
  • MPI_Finalize Wait-State Detection & FINALIZING Rank Badges: Added RankExecutionState::Finalizing (finalizing / FINALIZING) in src/RankState.hpp, extended DeadlockAnalyzer (isFinalizeFrame(), hasFinalizeFrame(), rankFinalizingDetected) to classify ranks parked inside MPI_Finalize, PMPI_Finalize, ompi_mpi_finalize, or MPIR_Finalize as Finalizing wait states without false-positive DEADLOCK alarms when peer ranks are paused at rank-conditional breakpoints (while still flagging true COLL_MISMATCH collective divergence if another rank is simultaneously stuck in a non-finalize collective such as MPI_Bcast or MPI_Barrier), and added theme-aware WCAG-compliant FINALIZING badges and MPI_Finalize telemetry rows in ServerRackView (included in All and Running rack filters) and MpiDiagnosticsWidget.
  • Optional elfutils libdw In-Process DWARF 4/5 Reader: Added -Dlibdw=auto|enabled|disabled in meson_options.txt and meson.build (GRIDLOCK_HAS_LIBDW=1/0), implemented RAII LibdwDwarfReader (src/core/hpc/dwarf/LibdwDwarfReader.{hpp,cpp}) for sub-millisecond in-process .debug_line bidirectional lookups, DW_TAG_inlined_subroutine call-site chain unwinding, and .debug_info struct/class/union/bitfield/inheritance/vptr layout extraction, wired it into ElfBinaryInspector and DwarfStructLayoutAnalyzer::analyzeStructFromBinary() (powering StructLayoutDialog and MemView typed pointer overlays even before GDB attaches), and preserved automatic fallback to objdump --dwarf=decodedline and GDB ptype /o when libdw is disabled or unavailable.
  • Optional Capstone Multi-Architecture Disassembly Backend (x86_64 & aarch64): Added -Dcapstone=auto|enabled|disabled in meson_options.txt and meson.build (with external/capstone.wrap / subprojects/capstone.wrap CMake fallback), implemented RAII CapstoneDecoder (src/core/binary/CapstoneDecoder.{hpp,cpp}) decoding raw x86_64 and aarch64 bytes into structured DecodedInstruction metadata (exact branch targets, call/jump/conditional/return classifications, and normalized explicit/implicit regsRead/regsWritten sets), integrated Capstone into ElfBinaryInspector and DisassemblyCfgBuilder with automatic objdump fallback when disabled or on unsupported architectures, and exposed register read/write metadata in DisassemblyView hover tooltips and header tooltips.

Changed

  • Unified Bottom Panel (Build & Find in Files) and Side-by-Side Build Splitter: Moved BuildDiagnosticsDockWidget (Build / Build (N) live diagnostic count badge) and FindInFilesDockWidget (Find in Files) natively into #BottomConsoleTabs (eliminating the separate BuildOutputDock and FindInFilesDockHost QDockWidget wrappers), added MainWindow::activateBottomTab() to expand collapsed bottom splitters smoothly across all perspectives, switched BuildDiagnosticsDockWidget to a dynamic horizontal QSplitter (#buildContentSplitter: structured diagnostics left, streaming monospace raw build output right, auto-expanding raw log during clean builds, snapping to 55%/45% on diagnostics, and preserving manual user drags), and added a 1-click Open in Find in Files (Ctrl+Shift+H / Alt+Enter) handoff from Search Everywhere Text mode that transfers the query and Aa/W/.* toggles directly into #BottomConsoleTabs.
  • Refreshed Documentation Guides & Offscreen Screenshot Suite: Extracted MainWindow::captureDocumentationScreenshots() into src/ui/mainwindow/MainWindowDocCapture.cpp covering all workstation, theme, tutorial, Build/Find in Files (build_diagnostics_splitter.png, build_menu.png, find_in_files_bottom_tab.png), Memory View typed struct overlay ((Particle*)0x00404000), DWARF/STAT/OpenMP, Package Manager, and Struct Layout Dialog PNGs under docs/screenshots/ via GRIDLOCK_UPDATE_SCREENSHOTS=1 and scripts/capture_ui.sh --docs, added docs/Build-and-Find-in-Files.md, synchronized prose, captions, and shortcuts across README.md and docs/*.md, removed orphaned legacy menu_bar_*.png assets, and fixed EditorBreadcrumbBar::rebuildSegments() so removed segment widgets detach cleanly without overlapping on tab switches.
  • Feature-Focused UI Testing Policy: Codified a strict UI testing scope policy in agent.md, AGENTS.md, and tests/ui/README.md requiring tests to focus on substantive features, multi-component workflows, and crash/data-loss/security regressions rather than trivial version-string, static-label, or cosmetic micro-UI checks.

Security

  • Workspace Security Guardrails (WorkspaceSecurityGuard): Added WorkspaceSecurityGuard (src/core/utils/WorkspaceSecurityGuard.{hpp,cpp}) and headless workspace_security_tests (tests/core/test_workspace_security.cpp) providing POSIX single-quote shell escaping (shellQuotePosix) wired into BuildProfileManager to neutralize $(...)/backtick/metacharacter expansion, Trojan Source (CVE-2021-42574) Unicode bidi override/isolate detection (U+202A-U+202E, U+2066-U+2069) highlighted with warning underlines and tooltips in SourceCodeView, and ANSI/OSC/DCS/BEL escape sequence sanitization (sanitizeProcessOutput) wired into BuildDiagnosticsDockWidget and Program Output.

Performance

  • Pruned Redundant & Trivial Micro-UI Tests (gridlock_ui_tests): Reduced gridlock_ui_tests from 116 to 52 substantive test slots (~55% reduction, removing tests/ui/test_ui_workstation_polish_fonts.cpp and redundant cosmetic/micro-UI slots) while preserving 100% of core debugger, MPI, binary/CFG, split-editor, build/launch, terminal, find/replace, persistence, and safety coverage.

Fixed

  • All 14 Tutorials Exposed in Toolbar Target Selector & Automatic -fopenmp Single-File Builds: Added the 6 missing tutorials (catchpoint_exceptions, deadlock_demo, memview_demo, memview_diff_demo, mpi_mm, and register_demo) to MainWindow::populateDefaultShowcaseTargets() so all 14 source tutorials under tutorial/ are directly selectable from the toolbar dropdown, and added BuildProfileManager::sourceFileUsesOpenMp() (wired into BuildProfileManager::buildCommand(), MainWindowBuild, and MainWindowNavigation) so Fortran (.f90/.f08/.f) and C/C++ files using OpenMP constructs (!$omp, use omp_lib, omp_get_, #pragma omp, <omp.h>) automatically pass -fopenmp and -o <output> during single-file and tutorial compilation (fixing undefined reference to 'omp_get_thread_num_' on tutorial/stencil_omp.f90).
  • End-to-End Conditional Breakpoint & Metadata Persistence Across Restarts, Gutters & GDB Launch: Persisted full BreakpointConfig metadata (condition expressions such as rank == 1, rankFilter, ignoreCount, logMessage, enabled) into .gridlock/workspace.toml and single-file INI storage (with empty-target fallback and symlink-safe pruning), added EditorTabManager::applyPersistedBreakpoints() so reopened primary and split SourceCodeView gutters immediately restore conditional breakpoint markers and metadata while honoring Restore Breakpoints, fixed MainWindowWorkspace metadata lookup order and tutorial launch sync, and updated GdbRankCoordinator::flushCachedBreakpoints() to apply -break-insert -c <condition>, -i <ignoreCount>, -d, and rankFilter routing instead of inserting unconditional breakpoints across all ranks.
  • Immediate Variables Clearing & Stale-PC Eviction on Resume (Continue / *running): Cleared stale stopped PCs and locations immediately on *running (GdbMiParser, GdbRankCoordinator, MainWindowDebugger, MainWindowExecution, DisassemblyView::setActiveSteppingRank()) so running ranks display RUNNING... in ServerRackView and never fall back to prior breakpoint addresses in DisassemblyView, and added VariableTreeModel::showRunningPlaceholder() / VariablesDockWidget::clearForRunningRank() so stale locals clear immediately when the scoped rank resumes without manual Scope dropdown toggling.
  • Reactive ServerRackView Badges/Filters & Sibling MPI_Finalize() Reconciliation: Updated ServerRackView::updateRankState() to re-evaluate active state and rank-subset filters with immediate layout/repaint updates, expanded DeadlockAnalyzer to scan deep libc/libopen-pal/libucp/libfabric/libmpi stacks (including Fortran mpi_finalize_) and probe running sibling ranks (SIGINT + 202-stack-list-frames + silent resume with a 50 ms post-breakpoint settle window) so peer ranks parked in MPI_Finalize() transition cleanly from RUN to FINALIZING, anchored SourceCodeView and DisassemblyView on the user's MPI_Finalize() call site in main (while preserving raw leaf PC telemetry in Call Stack and the status bar), and guarded MainWindow::onRankStateChanged() so stale cached finalize frames never override fresh breakpoint stops.
  • OpenMP Inspector Runtime Gating on Pure MPI / Non-OpenMP Binaries: Added OmpdSnapshot::hasOpenmpRuntime, OmpdInspector::hasOpenMpLibrary(), and OmpdInspector::detectOpenMpRuntimeForTarget() (inspecting /proc/<pid>/maps or ELF dynamic references for libgomp, libomp, or libiomp5) and gated OmpdInspector::inspectFromDebuggerThreads() on verified OpenMP runtime presence or explicit OpenMP runtime/outlined stack symbols so OpenMPI/PMIx background helper pthreads (__syscall_cancel_arch) on non-OpenMP binaries no longer synthesize a false Parallel Region #1 (OMPD: libompd | 3 thread(s)), instead showing a clean "OpenMP Inspector: No OpenMP runtime detected in target" empty state in OpenMpInspectorWidget while preserving genuine OpenMP region, barrier, and task inspection.
  • Global Left-Aligned QComboBox Popups & Refined Selection Highlights: Overrode qt_material's right-offset and blocky cyan QComboBox / QComboBox QAbstractItemView rules across all 19 dark and light themes in ThemePalettes / ThemeManager (bumping QSS cache tag to v15), disabled SH_ComboBox_Popup in WorkstationProxyStyle::styleHint() to eliminate phantom left checkmark gutters, added automatic popup minimum-width expansion (Qt::ElideNone + widest-item text metrics) in WorkstationProxyStyle::polish() / eventFilter() so labels like RelWithDebInfo and All Ranks never clip, and styled dropdown rows with compact left-aligned padding: 5px 12px, border-radius: 4px, subtle accentSoft selection fills, and 2px solid accentHex left indicator bars.
  • Package Manager Explicit Submit Search & Bottom Rail Relocation: Removed live keystroke debounce hotloading from HpcConsoleWidget (#packageSearchInput), added an explicit theme-styled Search submit button (#packageSearchSubmitBtn, alongside Enter key submission) so typing never spawns package-manager queries mid-keystroke, relocated Package Manager from the MPI (Alt+5) bottom rail group to the last (Docs, Alt+7) vertical rail tab in MainWindowDocks / MainWindowDebugger, and updated #bottomToolWindowRail tooltips accordingly.
  • Struct Layout Inspector Window Chrome, Close Button & Type Autocomplete: Restored standard dialog window flags (Qt::Dialog | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint, non-frameless) on StructLayoutDialog, added a visible clickable Close button (#structLayoutCloseBtn, wired to reject() alongside Esc), and added a theme-styled case-insensitive QCompleter (Qt::MatchContains) on #structLayoutNameEdit populated non-blockingly from workspace struct/class/union symbols via setAvailableTypes().
  • Adversarial Parser Limits, Regex Timeout & 256-Rank Burst Backpressure: Added kMaxMiNestingDepth = 64 delimiter-depth enforcement in GdbMiParser.hpp (extractBalancedInterior, extractTopLevelMiTuples), hardened JsonRpcFramer.hpp stream resynchronization after invalid/negative Content-Length headers, added PCRE2 (*LIMIT_MATCH=50000)(*LIMIT_DEPTH=256) plus elapsed timeout / nested-quantifier backtracking guards (regexTimeoutMs, timedOut) in WorkspaceReplaceEngine, added thread-safe bounded RankOutputRingBuffer (src/core/utils/RankOutputRingBuffer.hpp) capping per-rank retention under 256-rank 100,000-message floods, and added deterministic adversarial_parser_tests (tests/hpc/test_adversarial_parsers.cpp) covering 500-payload MI/DAP fuzzing, corrupted ELF/DWARF/Capstone byte streams, catastrophic regex backtracking, and concurrent 256-rank cancellation.
  • Mid-Run GDB Crash Recovery Without UI Freeze: Connected QProcess::errorOccurred and abnormal QProcess::finished (plus broken FIFO pipe EPIPE/POLLHUP) across per-rank GDB workers and mpirun in GdbRankCoordinator, adding idempotent failAllPendingCommandsForRank() and onRankProcessCrashed() to immediately reject in-flight MI callbacks (pluginMemoryChunkReady, pluginMemoryWriteDone, variable child queries, pending catchpoints/breakpoints), remove dead ranks from multi-rank Step All / Continue All coordination so surviving peers stay responsive, log a clear crash alert to GdbConsoleWidget and MpiDiagnosticsWidget, clean stale /dev/shm remnants safely, and reset toolbar execution controls cleanly when all ranks exit or crash.
  • Legible Helper & Redirect Notes in PreferencesDialog: Upgraded addFormNote() (PreferencesFormHelpers.hpp) and helper/subtitle/redirect labels across AppearanceSettingsPage, EditingBehaviorPages, DebuggerSettingsPage, HpcSettingsPages, and PluginSettingsPage from hardcoded 8.5pt / <small> muted text to proportional ThemeManager::uiFont() sizing (>= 9.5pt / full uiPt), high-contrast textHex foregrounds, and 6px top spacing.
  • Active :checked Visual States on Build Diagnostics Filter & Raw Log Toggles: Added explicit theme-aware :checked and :checked:hover QSS rules in BuildDiagnosticsDockWidget::reloadStyle() (semantic error/warning accents on #buildFilterErrorsBtn / #buildFilterWarningsBtn and primary workspace accent fills on #buildFilterAllBtn / #buildToggleRawLogBtn via ThemeManager::activePalette()) and aligned :checked:hover feedback on FindInFilesDockWidget and InlineFindBar filter pills so active toggles remain unmistakable across dark and light themes.
  • Single Build Destination (Zero Terminal Hijacking): Routed 100% of project builds, rebuilds, cleans, reconfigures, single-file MPI compiles, and pre-launch (Run / Debug) compilations exclusively through BuildDiagnosticsDockWidget inside #BottomConsoleTabs, leaving Terminal strictly as an interactive user shell and keeping the Build tab focused with parsed diagnostics and editor squiggles when a pre-run compile fails while transitioning automatically into Program Output / debugger on success.

Full Changelog: v0.11.0...v0.12.0