-
-
Notifications
You must be signed in to change notification settings - Fork 674
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: parallel downloads of the same plugin via web locations break the plugin #3479
Comments
No worries. I rebuild zellij in the main branch and tried to start a layout with the https location, but zellij is not starting anymore. ./target/release/zellij -l crash.kdl Cache is cleared and the layout is the one from the first comment. This is the complete log, that is printed:
Maybe I can pinpoint the commit this weekend, at which the download breaks. Edit: without the http location the layout seems to work. |
Hum... I'm unfortunately not reproducing this. Just a guess: could it be that you compiled Zellij with Could you try with either Thanks for the super quick response! |
I compiled it with |
Alright, I think I might have found the issue. I couldn't reproduce this exactly, but if I deleted the cache folder and started Zellij with this layout I sometimes got a case in which the plugin itself did not load. The difference in error behavior could be due to platform differences... I issued a fix for this in #3665 and merged it to main. Could you give it another spin when you have the time? |
Unfortunately, it still crashes. When bisecting the changes, it comes to this commit, that introduces the crashes: ba2772e Not sure where it exactly comes from. The cache just contains a It dies at the Stack Trace
Edit This is the command I used for running zellij:
|
Hey @dj95 - thanks for following through. I might have to use you a little bit for troubleshooting here, as I am unfortunately not reproducing. I have a suspicion that this can be solved by: #3036 (comment) (i.e. that it's an issue with the curl version that is being vendored during the compilation process). As a first step, could you follow the relevant instructions in the comment and give it a go to see if it helps? |
When a plugin is loaded via http multiple times in parallel, the plugin breaks for zellij. On the first glance, it does not look like a common issue, but it is commonly reproduced with status bar plugins. When a user defines a layout with multiple tabs, on a clean cache zellij will start the download multiple times and corrupts the file.
Basic information
zellij --version
: v0.40.1stty size
: 20 140uname -av
orver
(Windows): Linux 57ffe693fca0 6.5.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 27 00:18:38 UTC 2024 aarch64 GNU/LinuxExcerpt from the zellij log:
Minimal reproduction
Loading the following layout will show the error line at the bottom. Removing all tabs except one, clearing the cache and loading the layout will work.
Other relevant information
I got several reports of plugins not loading via https, which might be caused by this issue:
dj95/zjstatus#72
dj95/zjstatus#73
The text was updated successfully, but these errors were encountered: