Skip to content

Segfault on Fedora 43 #1

@HellRok

Description

@HellRok

Hi,

Love the initiative, I've been jealous of these libraries and wished for something like this in Ruby!

I tried the hello world example from https://charm-ruby.dev but it's segfaulting when I try to run it on both Fedora 43 and Debian 13

I've also tried inside of Docker and gotten the same issue with docker run --rm -it --pull always --mount type=bind,src=.,dst=/app --workdir /app ruby:4.0.0 bash

require "bubbletea"
require "lipgloss"

class HelloWorld
  include Bubbletea::Model

  def initialize
    @style = Lipgloss::Style.new
      .border(:rounded)
      .border_foreground("#7D56F4")
      .padding(1, 2)
  end

  def init = [self, nil]

  def update(message)
    case message
    when Bubbletea::KeyMessage
      return [self, Bubbletea.quit] if message.to_s == "q"
    end

    [self, nil]
  end

  def view
    @style.render("Hello, Charm Ruby!\n\nPress q to quit")
  end
end

Bubbletea.run(HelloWorld.new)

crash.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions