-
-
Notifications
You must be signed in to change notification settings - Fork 348
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] Crash on pressing a modifier key with focus in tri-state toggle in search dropdown #3456
Comments
This looks like a problem with your Mono installation, since there is no actual CKAN code in the stack trace other than the What distribution do you have? |
I'm on Ubuntu 21.04, Mono version is 6.8.0.105+dfsg-3 |
Here's the function that throws the exception. There's one cast: Form f = source == null ? null : (Form)source.TopLevelControl; Which suggests the problem is that So that part is a clear Mono bug, which we could try to help them fix. But it also means this should be reproducible in any Linux environment. I'm still in Windows currently and can't test that. The most likely related CKAN code is the stuff we had to do to make the search dropdown work: CKAN/GUI/Controls/EditModSearchDetails.cs Lines 21 to 22 in d398f2e
But there's no reason to change that since it isn't doing anything wrong. |
Possible additional Mono bug, it must not be respecting this part of the documentation to throw here:
Somewhat confirmed, Mono's |
Might be easiest to go along with Mono's assumptions here and make |
This may or may not be relevant, but I've just noticed the crash is associated with the highlighting behaviour of CKAN. If I start it, then click on a mod, it is highlighted blue, I can use CTRL to select multiple mods, and no crash occurs. |
I had been trying to reproduce this on Ubuntu unsuccessfully, but I finally have thanks to this part:
(Typing in the text boxes doesn't seem to do it.) So, the steps that reproduce it seem to be:
|
Adding some extra debug output to Mono, the This menu item is almost identical to the many other items in our menus, except for the Ctrl+Q hotkey: CKAN/GUI/Main/Main.Designer.cs Line 220 in 2564dfb
And indeed, if I re-add the Exit item but remove the shortcut key, the crash goes away. I guess Mono is checking whether the key we pressed matches that shortcut key, so it can trigger it if needed? |
That only appears in my debugging output if I remove the hotkey, so it happens after the crash in a separate code flow. The
Maybe |
Important realization: The At a high level, |
Submitted a fix to the Mono team in mono/mono#21285. Hopefully they like it, or give us a better idea. |
Background
Problem
CKAN crashes when holding CTRL or ALT key
highlighting changes from blue to grey (not a problem, but may be relevant)
Steps to reproduce
Start CKAN
change view (e.g. to show all installed mods) WITHOUT typing in the main search box
hold CTRL key to try to select multiple mods, or try to ALT-Tab to another window
Expected behavior
Multiple mods can be selected? Not sure if this is possible normally.
Screenshots (if applicable)
https://cdn.imgchest.com/files/w7pjcbnk67p.png
CKAN error code (if applicable):
The text was updated successfully, but these errors were encountered: