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

wl-paste causes a crash #943

Closed
hojjatabdollahi opened this issue Oct 23, 2024 · 7 comments
Closed

wl-paste causes a crash #943

hojjatabdollahi opened this issue Oct 23, 2024 · 7 comments

Comments

@hojjatabdollahi
Copy link

hojjatabdollahi commented Oct 23, 2024

Calling wl-paste in the terminal causes a crash. Here is the error that pops up in the logs:

ct 23 15:55:36 cosmic cosmic-comp[5381]: Toplevel for foreign-toplevel-list not registered for cosmic-toplevel-info.
Oct 23 15:55:36 cosmic cosmic-comp[5381]: thread 'main' panicked at 'Callback creating object zcosmic_toplevel_handle_v1@51[2] did not provide any object data.': /build/cosmic-comp-pj8uhi/cosmic-comp-0.1~1729697706~24.04~9>
                                             0: <unknown>
                                             1: <unknown>
                                             2: <unknown>
                                             3: <unknown>
                                             4: <unknown>
                                             5: <unknown>
                                             6: <unknown>
                                             7: <unknown>
                                             8: <unknown>
                                             9: <unknown>
                                            10: <unknown>
                                            11: <unknown>
                                            12: <unknown>
                                            13: <unknown>
                                            14: __libc_start_main
                                            15: <unknown>
Oct 23 15:55:36 cosmic cosmic-comp[5381]: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }': /build/cosmic-comp-pj8uhi/cosmic-comp-0.1~1729697706~24.04~9a9eddb/vendor/wayland-backe>
                                             0: <unknown>
                                             1: <unknown>
                                             2: <unknown>
                                             3: <unknown>
                                             4: <unknown>
                                             5: <unknown>
                                             6: <unknown>
                                             7: <unknown>
                                             8: <unknown>
                                             9: <unknown>
                                            10: <unknown>
                                            11: <unknown>
                                            12: <unknown>
                                            13: <unknown>
                                            14: <unknown>
                                            15: <unknown>
                                            16: <unknown>
                                            17: <unknown>
                                            18: <unknown>
                                            19: __libc_start_main
                                            20: <unknown>
Oct 23 15:55:36 cosmic cosmic-comp[5381]: thread 'main' panicked at 'panic in a destructor during cleanup': library/core/src/panicking.rs:227
                                             0: <unknown>
                                             1: <unknown>
                                             2: <unknown>
                                             3: <unknown>
                                             4: <unknown>
                                             5: <unknown>
                                             6: <unknown>
                                             7: <unknown>
                                             8: <unknown>
                                             9: <unknown>
                                            10: <unknown>
                                            11: <unknown>
                                            12: <unknown>
                                            13: __libc_start_main
                                            14: <unknown>

details:

Pop OS 24.04
Hardware: Framework AMD
cosmic-comp: 0.1~1729697706~24.04~9a9eddb
linux: 6.9.3-76060903-generic #202405300957~1728589823~24.04~3d61696
wl-clipboard 2.2.1

note: This does not happen on my Bonw15 Nvidia with PopOS 22.04 and the cosmic-comp version. EDIT: Ignore this I had set COSMIC_DATA_CONTROL_ENABLED on that machine, when I removed it it also crashed.

EDIT: It also happens on Linux 6.11.3-76061100-generic #202409151536~1729685807~24.04~ead923e

@fkumro
Copy link

fkumro commented Oct 23, 2024

My system also has this issue:

Pop_OS: 22.04
cosmic-comp: 0.1~1729697706~22.04~9a9eddb
linux: 6.9.3-76060903-generic
wl-clipboard: 2.0.0-1
GPU: [AMD/ATI] Navi 21 [Radeon RX 6900 XT] (rev c0)

@aekobear
Copy link

I recently (within the past week) started experiencing crashes on all my steam games and the error in journalctl is identical to this. Linking my issue in case it's related: #946

@ids1024
Copy link
Member

ids1024 commented Oct 24, 2024

Seems to be reproducible, if I have cosmic-panel running (so there's an applet using the toplevel list protocol) and run wl-paste a couple times.

So there's some bug in the foreign-toplevel-list/cosmic-toplevel-info implementation with the temporary hidden window created by wl-paste.

@rengare
Copy link

rengare commented Oct 24, 2024

I removed nala remove wl-clipboard for now as a temporal workaround

@Drakulix
Copy link
Member

So there's some bug in the foreign-toplevel-list/cosmic-toplevel-info implementation with the temporary hidden window created by wl-paste.

There seems to be a race between the applets calling get_cosmic_toplevel on the already destroyed window of wl-clipboard. We'll probably need to let the call succeed and then immediately tell the client the window was closed.

@Drakulix
Copy link
Member

Could somebody give #949 a try and see if that fixes it?

@hojjatabdollahi
Copy link
Author

Seems to be fixed for me too.

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

6 participants