name: Crash Bug Report
description: If fastfetch crashes or freezes
title: "[BUG] "
labels: ["bug", "crash", "triage"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to fill out this bug report! We will try hard to solve the issue.
        However since platforms and hardwares vary greatly, it can be hard to find the root cause of an issue.
        Providing the following information may help us greatly. Thanks in advance!
  - type: checkboxes
    attributes:
      label: Read the FAQ first
      description: Please check if the issue is already covered in the FAQ.
      options:
        - label: I have checked the FAQ but the issue is not covered
          required: true
  - type: checkboxes
    attributes:
      label: Not a known issue
      description: Please check if the issue is already known and being worked on.
      options:
        - label: I have checked the existing issues but the issue is not covered
          required: true
        - label: My issue is not about crashing on Fedora and KDE 6.6
          required: true
  - type: markdown
    attributes:
      value: "### General description of the bug"
  - type: textarea
    attributes:
      label: Description
      description: A clear and concise description of what the bug is.
      placeholder: I was trying to [...] but [...]
    validations:
      required: true
  - type: input
    attributes:
      label: Version used
      description: Fastfetch version used. Please use the latest version (found in the [releases](https://github.com/fastfetch-cli/fastfetch/releases)) if possible.
      placeholder: Result of `fastfetch --version`
    validations:
      required: true
  - type: dropdown
    attributes:
      label: Bug prevalence
      description: How often does the bug occur?
      options:
        -
        - Always
        - Sometimes
        - Rarely
        - Once
        - Other
    validations:
      required: true
  - type: dropdown
    attributes:
      label: Regression
      description: Did it work in an older version?
      options:
        -
        - Not sure
        - 'Yes'
        - 'No'
    validations:
      required: true
  - type: dropdown
    attributes:
      label: Installation
      description: Where did you install fastfetch from?
      options:
        -
        - GitHub Releases
        - GitHub Actions (nightly)
        - Built from source
        - Package manager
    validations:
      required: true
  - type: input
    attributes:
      label: Package manager
      description: Which package manager did you use if applicable?
      placeholder: e.g. `apt`, `pacman`, `brew`, `scoop`
  - type: markdown
    attributes:
      value: '### Often helpful information'
  - type: textarea
    attributes:
      label: Screenshots
      description: If applicable, add screenshots to help explain your problem.
  - type: textarea
    attributes:
      label: Configuration
      description: If applicable, paste your configuration file here.
      placeholder: cat ~/.config/fastfetch/config.jsonc
      render: jsonc
  - type: markdown
    attributes:
      value: |
        Paste the stacktrace here. You may get it with:

        ```shell
        # You may need Ctrl+C to stop the process if it freezes
        gdb -q -ex 'set confirm off' -ex run -ex 'bt full' -ex quit --args /path/to/fastfetch
        ```

        If you are able to identify which module crashed, the strace can be helpful too

        ```shell
        strace /path/to/fastfetch --multithreading false -s {MODULE} --pipe
        ```

        If you cannot do the instructions above, please upload the core dump file if available.
  - type: textarea
    attributes:
      label: Stacktrace
      description: Paste the stacktrace or core dump file here.
      render: text
    validations:
      required: true
