Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Process segfaults when a theme cannot be found #408

@raszi

Description

@raszi

Defect

Make sure that these boxes are checked before submitting your issue -- thank you!

  • Included the relevant configuration snippet
  • Included the relevant process-compose log (log location: process-compose info)
  • Included a [Minimal, Complete, and Verifiable example] (https://stackoverflow.com/help/mcve)

Version of process-compose:

Process Compose
Version:        v1.46.0
Commit:         6a1799e
Date (UTC):     2024-12-20T22:09:30Z
License:        Apache-2.0
Discord:        https://discord.gg/S4xgmRSHdC

Written by Eugene Berger

OS environment:

Darwin Istvans-MacBook-Air 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:51 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T8112 arm64 arm Darwin

Steps or code to reproduce the issue:

process-compose --theme Foo

Expected result:

Throw a warning and exit with an error code

Actual result:

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x100dc998c]

goroutine 15 [running]:
github.com/rivo/tview.(*Application).Run.func1()
        github.com/rivo/[email protected]/application.go:297 +0x4c
panic({0x1010390a0?, 0x101eda590?})
        runtime/panic.go:785 +0x124
github.com/f1bonacc1/process-compose/src/config.(*Styles).ProcTable(...)
        github.com/f1bonacc1/process-compose/src/config/styles.go:218
github.com/f1bonacc1/process-compose/src/tui.(*pcView).getIconForState(0x1400035d3b0?, {{0x1400035d568, 0x8}, {0x100e22d12, 0x7}, {0x100e22ce1, 0x7}, {0x1400133b27a, 0x2}, 0x1a122c9, ...})
        github.com/f1bonacc1/process-compose/src/tui/proc-table.go:353 +0x38c
github.com/f1bonacc1/process-compose/src/tui.(*pcView).getTableRowValues(_, {{0x1400035d568, 0x8}, {0x100e22d12, 0x7}, {0x100e22ce1, 0x7}, {0x1400133b27a, 0x2}, 0x1a122c9, ...})
        github.com/f1bonacc1/process-compose/src/tui/proc-table.go:435 +0x5c
github.com/f1bonacc1/process-compose/src/tui.(*pcView).fillTableData(0x1400024cf20)
        github.com/f1bonacc1/process-compose/src/tui/proc-table.go:65 +0x254
github.com/f1bonacc1/process-compose/src/tui.(*pcView).updateTable.func1()
        github.com/f1bonacc1/process-compose/src/tui/proc-table.go:250 +0x24
github.com/f1bonacc1/process-compose/src/tui.(*pcView).updateTable.(*Application).QueueUpdateDraw.func3()
        github.com/rivo/[email protected]/application.go:862 +0x2c
github.com/rivo/tview.(*Application).Run(0x14000310380)
        github.com/rivo/[email protected]/application.go:485 +0xc18
github.com/f1bonacc1/process-compose/src/tui.RunTUIAsync.func1()
        github.com/f1bonacc1/process-compose/src/tui/view.go:576 +0x28
created by github.com/f1bonacc1/process-compose/src/tui.RunTUIAsync in goroutine 1
        github.com/f1bonacc1/process-compose/src/tui/view.go:575 +0x34

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdoneDone, awaiting release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions