Skip to content

Core dump due to db query #395

Description

@xorander00

Describe the bug
Application is able to create and show the main window, but then immediately core dumps. Used to work properly, but don't remember which version that was as it was a while ago. Updated to 0.9.0 and tried launching it again when it core dumped. I don't know Vala, but looking at the logs below it seems like a quoting issue with the db queries.

To Reproduce
Steps to reproduce the behavior:

  1. Launch application.

Expected behavior
Application launches and functions as expected.

Screenshots
See stdout/stderr logs below.

System Information

  • OS: FreeBSD 14-STABLE (1401501)
  • Desktop environment: Hyperland or Niri (happens on both)
  • Font Manager version: 0.9.0
  • Font Manager installation method: FreeBSD port at x11-fonts/font-manager

Additional context

(font-manager:56782): [font-manager]-CRITICAL **: 19:10:05.444: font_manager_get_matching_families_and_fonts: assertion 'error == NULL || *error == NULL' failed

(font-manager:56782): [font-manager]-WARNING **: 19:10:05.446: Category.vala:56: Database Error : (SELECT DISTINCT Fonts.family, Fonts.description FROM Fonts JOIN Metadata USING (filepath, findex) WHERE owner!=0 AND filepath LIKE '/usr;) [1] - unrecognized token: "'/usr;"

(font-manager:56782): [font-manager]-CRITICAL **: 19:10:05.449: font_manager_get_matching_families_and_fonts: assertion 'error == NULL || *error == NULL' failed

(font-manager:56782): [font-manager]-WARNING **: 19:10:05.451: Category.vala:56: Database Error : (SELECT DISTINCT family, description FROM Fonts WHERE filepath LIKE "/home/me/.local/share/fonts";) [1] - no such column: "/home/me/.local/share/fonts" - should this be a string literal in single-quotes?

(font-manager:56782): Gtk-WARNING **: 19:10:06.631: GtkGizmo 0x303ce08a8450 (progress) reported min width -2, but sizes must be >= 0

(font-manager:56782): [font-manager]-CRITICAL **: 19:10:06.927: font_manager_get_matching_families_and_fonts: assertion 'error == NULL || *error == NULL' failed

(font-manager:56782): [font-manager]-WARNING **: 19:10:06.929: Category.vala:56: Database Error : (SELECT DISTINCT Fonts.family, Fonts.description FROM Fonts JOIN Metadata USING (filepath, findex) WHERE owner!=0 AND filepath LIKE '/usr;) [1] - unrecognized token: "'/usr;"

(font-manager:56782): [font-manager]-CRITICAL **: 19:10:06.931: font_manager_get_matching_families_and_fonts: assertion 'error == NULL || *error == NULL' failed

(font-manager:56782): [font-manager]-WARNING **: 19:10:06.933: Category.vala:56: Database Error : (SELECT DISTINCT family, description FROM Fonts WHERE filepath LIKE "/home/me/.local/share/fonts";) [1] - no such column: "/home/me/.local/share/fonts" - should this be a string literal in single-quotes?
fish: Job 1, 'font-manager' terminated by signal SIGABRT (Abort)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions