[GH-ISSUE #58] Bun crashes when setting selectedDescriptionColor for <tab-select /> #781

Closed
opened 2026-03-14 08:32:19 +03:00 by kerem · 1 comment
Owner

Originally created by @danielvaughn on GitHub (Aug 23, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/58

Environment

  • MacOS Sonoma v14.6
  • Ghostty v1.1.3
  • Bun v1.2.18
  • React v19.1.1
  • @opentui/core v0.1.8
  • @opentui/react v0.1.8

Overview

Bun encounters a segfault when attempting to set selectedDescriptionColor in the <tab-select /> component. Error below:

Image

Anecdotally, once the program crashes, the terminal continues to track my cursor movements and prints out semicolon-delimited codes that look like vector positions at first glance. Not sure if that helps diagnosis, but worth noting:

Image

Steps to reproduce

  1. Create a new Bun project mkdir example && cd example && bun init -y
  2. Install deps bun add @opentui/core @opentui/react react
  3. Save the below file as tab-select-example.tsx
  4. Run: bun run tab-select-example.tsx
  5. Observe the crash
  6. Remove or comment out selectedDescriptionColor and run again
  7. Observe it runs as expected

Test file

import { render } from "@opentui/react";

export const Test = () => {
  const tabOptions = [
    { name: "One", description: "tab one", value: "one" },
    {
      name: "Two",
      description: "tab two",
      value: "two",
    },
  ];

  return (
    <tab-select
      options={tabOptions}
      style={{
        selectedDescriptionColor: "#cccccc",
      }}
    />
  );
};

render(<Test />);
Originally created by @danielvaughn on GitHub (Aug 23, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/58 ## Environment - MacOS Sonoma v14.6 - Ghostty v1.1.3 - Bun v1.2.18 - React v19.1.1 - @opentui/core v0.1.8 - @opentui/react v0.1.8 ## Overview Bun encounters a segfault when attempting to set `selectedDescriptionColor` in the `<tab-select />` component. Error below: <img width="708" height="194" alt="Image" src="https://github.com/user-attachments/assets/882abda8-4fd6-413e-a238-8faa5dd1d29c" /> Anecdotally, once the program crashes, the terminal continues to track my cursor movements and prints out semicolon-delimited codes that look like vector positions at first glance. Not sure if that helps diagnosis, but worth noting: <img width="1794" height="153" alt="Image" src="https://github.com/user-attachments/assets/c4f529fc-49b2-4bdd-aa0a-38a4aa244991" /> ## Steps to reproduce 1. Create a new Bun project `mkdir example && cd example && bun init -y` 2. Install deps `bun add @opentui/core @opentui/react react` 3. Save the below file as `tab-select-example.tsx` 4. Run: `bun run tab-select-example.tsx` 5. Observe the crash 6. Remove or comment out `selectedDescriptionColor` and run again 7. Observe it runs as expected ## Test file ``` import { render } from "@opentui/react"; export const Test = () => { const tabOptions = [ { name: "One", description: "tab one", value: "one" }, { name: "Two", description: "tab two", value: "two", }, ]; return ( <tab-select options={tabOptions} style={{ selectedDescriptionColor: "#cccccc", }} /> ); }; render(<Test />); ```
kerem closed this issue 2026-03-14 08:32:24 +03:00
Author
Owner

@msmps commented on GitHub (Aug 23, 2025):

Thanks for this report @danielvaughn

<!-- gh-comment-id:3217256437 --> @msmps commented on GitHub (Aug 23, 2025): Thanks for this report @danielvaughn
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#781
No description provided.