-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Widget got deallocated #992
Comments
Related to #750 ? |
I have the same issue. I have managed to find a simple reproducer:
After the first second, this will print the following:
After the second second, it will print the same error twice. After the third second, three times, and so on. |
Looks like for me, commit 0cccd9d fixes the problem. It's from 2022 but there has been no new release since then. |
seems to be fixed since there has been a release. can this issue be closed now? |
Good that you bumped this issue, I some time ago found a new reproducer that I never got around to posting here.
The script defines a variable Then the script defines a widget When the window
For comparison, the window I had some notes on my analysis at the time, but I managed to mislay them while moving in the time between. From what I recall, I think the root cause is related to the fact that the children (i.e. the text element that prints |
update: i think i found what might be causing this (very unsure): that's a very detailed report nonetheless, thank you! if i find something, i'll ping you so that you can try breaking it again if that's fine ^^ this todo is referring to this exact issue. i'm currently evaluating whether self.evaluate_simplexpr_in_scope, as called in notify_value_changed could be of interest. it errors in the broken example, but not in the working one here's a solution that fixes the symptoms, not the cause: scope
.listeners
.entry(required_var.clone())
.and_modify(|ls| ls.retain(|l| Rc::strong_count(l) > 1))
.or_default()
.push(listener.clone()); instead of this line however, it might be worth adding this while the root cause is unknown here's a smaller reproducible example:
|
i've opened #1189. since this should be tested very well, i'd appreciate it a lot if you (the person reading this) could help out and report there. actively trying to break things is encouraged |
Since starting using eww, I've always had the error message "Couldn't upgrade reference, widget got deallocated" filling the log, but I never bothered with it because it didn't stop it working and it didn't cause any problems, but after having my laptop running for an extending period of time, I noticed sddm's wayland-session log (eww is launched via hyprland running
eww daemon
on start)taking up all of my disk space
What's causing this error message and is there any way I can get rid of it
The text was updated successfully, but these errors were encountered: