Coder Social home page Coder Social logo

Segmentation fault on Ubuntu about tofi HOT 6 CLOSED

myrrc avatar myrrc commented on June 24, 2024
Segmentation fault on Ubuntu

from tofi.

Comments (6)

myrrc avatar myrrc commented on June 24, 2024

Meson build log

The Meson build system
Version: 1.0.1
Source dir: /home/myrrc/tofi
Build dir: /home/myrrc/tofi/build
Build type: native build
Project name: tofi
Project version: 0.8.1
C compiler for the host machine: clang-15 (clang 15.0.7 "Ubuntu clang version 15.0.7")
C linker for the host machine: clang-15 ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library rt found: YES
Library m found: YES
Checking for function "fts_read" : YES
Library fts found: NO
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency freetype2 found: YES 23.1.17
Run-time dependency harfbuzz found: YES 2.6.4
Run-time dependency cairo found: YES 1.16.0
Run-time dependency pangocairo found: YES 1.44.7
Run-time dependency wayland-client found: YES 1.18.0
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Build-time dependency wayland-protocols found: YES 1.20
Build-time dependency wayland-scanner found: YES 1.18.0
Run-time dependency xkbcommon found: YES 0.10.0
Run-time dependency glib-2.0 found: YES 2.64.6
Run-time dependency gio-unix-2.0 found: YES 2.64.6
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Program scdoc found: YES (/usr/bin/scdoc)
Program sed found: YES (/usr/bin/sed)
Program sh found: YES (/usr/bin/sh)
Build targets in project: 14

tofi 0.8.1

  User defined options
    prefix: /home/myrrc/.local

Found ninja-1.10.0 at /usr/bin/ninja

from tofi.

myrrc avatar myrrc commented on June 24, 2024

According to the log

[WARNING]: Using an outdated compositor, screen anchoring may not work.
[0.000295, 0.007042,  5484 KB][DEBUG]:     Bound to zwlr_layer_shell_v1 12.
[0.000301, 0.007048,  5484 KB][DEBUG]:     Bound to seat 28.

branch at

tofi/src/main.c

Line 703 in e6b9b57

} else if (!strcmp(interface, wp_viewporter_interface.name)) {

is not taken, wp_vieporter is not set, but then

tofi/src/main.c

Line 1584 in e6b9b57

tofi.window.wp_viewport = wp_viewporter_get_viewport(

is invoked with null wp_viewporter

from tofi.

myrrc avatar myrrc commented on June 24, 2024

git bisect rm -fr build; CC=clang-15 meson build -Dbuildtype=debug --prefix ~/.local; ninja -C build install; tofi-run showed that the bad commit is
8287

from tofi.

philj56 avatar philj56 commented on June 24, 2024

Hey, thanks for the detailed report! I had assumed viewporter would be available on Ubuntu 20.04, as the protocol was made stable in 2016, but apparently Sway didn't implement it until 2020. Should be a quick fix.

from tofi.

philj56 avatar philj56 commented on June 24, 2024

Alright, should be fixed in c6f539e.

from tofi.

myrrc avatar myrrc commented on June 24, 2024

Fixed, thanks!

from tofi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.