-
Notifications
You must be signed in to change notification settings - Fork 59
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
Completion entry causes crashing #76
Comments
Perhaps the widget is assuming the renderer will always be the same? |
Sorry for the (very) late response. I'm not gonna lie, I'm not entirely sure what you mean by this and was hoping you could help clarify. I'm going to sound pretty ignorant, but please know it's not intentional. You say you support cleaning up renderers (not even sure what a renderer is) when not needed, but in this case, its still needed, its just hidden because we're in another app tab. By widget contract, I assume that this is the base behavior you expect the widgets to have? I'm sorry, but I'm a bit clueless on the inner workings of Fyne. It seems, from my limited knowledge, that the maxSize function isn't accounting for arguments that could be nil. Would it not be better to be safe and include a check for nil to prevent this from happening? |
What I mean is that the renderer for a widget can be nil - we may clean up the render state of a widget that is invisible - and then re-create it when it will be shown again.
That may be the case, I was just trying to explain where the nil may be coming from instead of the suspicion that it was a Go GC bug. |
Hey, so I was wondering if you'd consider adding this nil check to the code. It's been months and I've been hoping that the issue would have been resolved by now, but I need to go in and re-patch this every time fyne-x gets updated. If this seems like a safe fix to you, could you consider adding it? I've been using it for months and I've yet to see a negative side effect from it. Would you consider adding this nil check to the official repo? |
I have been experiencing a bug with Fyne-X regarding the completion widget. I am utilizing Fynes app tab to display a completion entry. It seems once text is entered in the completion widget, then going to another tab for a few minutes (presumably for how long it takes Go's garbage collection to clean up), then switching back to the tab with the completion entry in it, it causes my application to panic with this stack trace:
Upon going to this section of the completionentry.go file, it seems I can resolve the issue by adding this right after we populate the cnv variable:
In my opinion, it seems like Go's garbage collection is cleaning up something it shouldn't, and when I switch back to the app tab with the completion entry, it tries to reference it but it's no longer there, causing the application to panic.
The text was updated successfully, but these errors were encountered: