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

Crash when scrolling #103

Open
hojjatabdollahi opened this issue Nov 21, 2024 · 7 comments
Open

Crash when scrolling #103

hojjatabdollahi opened this issue Nov 21, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@hojjatabdollahi
Copy link

Scrolling on the list causes a crash. I have some text (mostly code) and an image in the list. I also have some empty screen shots which are because of the new bug in xdg-desktop-portal-cosmic which copies a corrupted image into the clipboard.

Here is what I see in the logs:

Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager: thread 'main' panicked at core/src/slice/sort/shared/smallsort.rs:860:5:
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager: user-provided comparison function does not correctly implement a total order
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager: stack backtrace:
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    0: rust_begin_unwind
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    1: core::panicking::panic_fmt
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    2: core::slice::sort::shared::smallsort::panic_on_ord_violation
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    3: core::slice::sort::shared::smallsort::bidirectional_merge
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    4: core::slice::sort::stable::quicksort::quicksort
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    5: core::slice::sort::stable::drift::sort
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    6: core::slice::sort::stable::driftsort_main
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    7: iced_graphics::damage::group
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    8: <iced_tiny_skia::window::compositor::Compositor as iced_graphics::compositor::Compositor>::present
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:    9: iced_winit::program::run_instance::{{closure}}
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   10: iced_winit::program::run::Runner<Message,F,C>::process_event
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   11: winit::platform_impl::linux::wayland::event_loop::EventLoop::single_iteration
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   12: winit::platform_impl::linux::wayland::event_loop::EventLoop::run_app
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   13: iced_winit::program::run
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   14: cosmic::applet::run
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager:   15: cosmic_ext_applet_clipboard_manager::main
Nov 21 14:45:59 pop-os cosmic-panel[28198]: io.github.wiiznokes.cosmic-ext-applet-clipboard-manager: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@hojjatabdollahi hojjatabdollahi added the bug Something isn't working label Nov 21, 2024
@wiiznokes
Copy link
Collaborator

wiiznokes commented Nov 22, 2024

Could you by any chance attach the db in this github issue ? It should be ~/.cache/cosmic-ext-applet-clipboard-manager/io.github.wiiznokes.cosmic-ext-applet-clipboard-manager-db-4.sqlite.

I will try to fix it even if you can't/don't want to provide it

@wiiznokes
Copy link
Collaborator

hum, i'm starting to think it's an upstream bug. The db would still help to see if i can reproduce tho

@hojjatabdollahi
Copy link
Author

Here is the db.
db.tar.gz

@wiiznokes
Copy link
Collaborator

Thanks! Apparently its an upstream Iced bug that have been fixed. We just need to wait that the pop os fork get rebased on iced master

@wiiznokes
Copy link
Collaborator

In the mean time, ig you could compile the applet with a rust compiler < 1.81.0 to fix this

@hojjatabdollahi
Copy link
Author

Unfortunately can't compile with 1.80.

   Compiling idna v1.0.3
error[E0658]: use of unstable library feature 'error_in_core'
  --> /home/hojjat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/idna-1.0.3/src/lib.rs:78:6
   |
78 | impl core::error::Error for Errors {}

@wiiznokes
Copy link
Collaborator

Hum yeah, ig we will have to wait then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants