Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: predictor-eDP-1 panicked at 'assertion failed: (left == right) #61

Closed
pmatos opened this issue Nov 6, 2022 · 1 comment
Closed

Comments

@pmatos
Copy link

pmatos commented Nov 6, 2022

Steps for reproducing the issue

I installed wluma in archlinux/sway 1.7 and run wluma without any further or initial configuration and got the crash.

What is the buggy behavior?

~ RUST_BACKTRACE=full wluma
[2022-11-06T08:56:34Z INFO  wluma] Continue adjusting brightness and wluma will learn your preference over time.
thread 'predictor-eDP-1' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `3`: Frames with multiple objects are not supported yet', src/frame/vulkan.rs:145:9
stack backtrace:
   0:     0x5585a997c8bd - <unknown>
   1:     0x5585a999ecfc - <unknown>
   2:     0x5585a997a061 - <unknown>
   3:     0x5585a997e2e5 - <unknown>
   4:     0x5585a997e001 - <unknown>
   5:     0x5585a9812aae - <unknown>
   6:     0x5585a997e92a - <unknown>
   7:     0x5585a997e767 - <unknown>
   8:     0x5585a997cdb4 - <unknown>
   9:     0x5585a997e499 - <unknown>
  10:     0x5585a97ee433 - <unknown>
  11:     0x5585a999cffe - <unknown>
  12:     0x5585a97e4e2b - <unknown>
  13:     0x5585a98410fc - <unknown>
  14:     0x5585a9834a6a - <unknown>
  15:     0x5585a9835783 - <unknown>
  16:     0x5585a98272c5 - <unknown>
  17:     0x5585a98f7db0 - <unknown>
  18:     0x5585a98f68ba - <unknown>
  19:     0x5585a98fa736 - <unknown>
  20:     0x7f26c8ea2d65 - <unknown>
  21:     0x7f26c8ea2ffc - wl_display_dispatch_queue_pending
  22:     0x5585a9830485 - <unknown>
  23:     0x5585a984bf6b - <unknown>
  24:     0x5585a9813372 - <unknown>
  25:     0x5585a981f8aa - <unknown>
  26:     0x5585a9981703 - <unknown>
  27:     0x7f26c8b688fd - <unknown>
  28:     0x7f26c8beaa60 - <unknown>
  29:                0x0 - <unknown>

What is the expected behavior?

expected things to work :)

Logs

~ RUST_LOG=debug wluma
[2022-11-06T08:58:55Z DEBUG wluma] Using Config {
        als: Iio {
            path: "/sys/bus/iio/devices",
            thresholds: {
                500: "bright",
                20: "dark",
                0: "night",
                80: "dim",
                250: "normal",
                800: "outdoors",
            },
        },
        output: [
            Backlight(
                BacklightOutput {
                    name: "eDP-1",
                    path: "/sys/class/backlight/intel_backlight",
                    capturer: Wlroots,
                    min_brightness: 1,
                },
            ),
            Backlight(
                BacklightOutput {
                    name: "keyboard-dell",
                    path: "/sys/bus/platform/devices/dell-laptop/leds/dell::kbd_backlight",
                    capturer: None,
                    min_brightness: 0,
                },
            ),
        ],
    }
[2022-11-06T08:58:55Z INFO  wluma] Continue adjusting brightness and wluma will learn your preference over time.
[2022-11-06T08:58:56Z DEBUG wluma::frame::capturer::wlroots] Using output 'Unknown 0x06B3 0x00000000 (eDP-1)' for config 'eDP-1'
thread 'predictor-eDP-1' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `3`: Frames with multiple objects are not supported yet', src/frame/vulkan.rs:145:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Version

[Aur:1] wluma-4.1.2-1

Environment

~ lsb_release -a; uname -a; pgrep -l sway; pacman -Q | egrep "(wlroots|vulkan|sway|clang|rust)"; dpkg -l | egrep "(wlroots|vulkan|sway|clang|rust)"
LSB Version:	n/a
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a
Linux butterfly 6.0.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 29 Oct 2022 14:08:39 +0000 x86_64 GNU/Linux
5696 sway
clang 14.0.6-3
lib32-vulkan-icd-loader 1.3.226-1
lib32-vulkan-intel 22.2.1-1
rust 1:1.64.0-1
sway 1:1.7-9
swaybg 1.1.1-1
vulkan-headers 1:1.3.227-1
vulkan-icd-loader 1.3.226-1
vulkan-intel 22.2.1-1
vulkan-tools 1.3.226-1
wlroots 0.15.1-6
zsh: command not found: dpkg
@maximbaz
Copy link
Owner

maximbaz commented Nov 6, 2022

Hi, thank you for taking the time to make a bug report! This is a known issue and is tracked in #8. I am looking for help with this, there's a simple workaround as you'll see in #8, but implementing a proper fix is not trivial...

@maximbaz maximbaz closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants